public final class UtilSoftCache<V> extends Object implements Cache<V>
内存缓存,一种软缓存,内存吃紧时,会自动释放内存
static <V> UtilSoftCache<V>
createUtilCache(String cacheName)
V
get(String key)
String
getCacheName()
void
put(String key, V value)
putIfAbsent(String cacheKey, V v)
remove(String cacheKey)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void put(String key, V value)
put
Cache<V>
public V get(String key)
get
public static <V> UtilSoftCache<V> createUtilCache(String cacheName)
public V putIfAbsent(String cacheKey, V v)
putIfAbsent
public V remove(String cacheKey)
remove
public String getCacheName()
getCacheName
Copyright © 2019. All rights reserved.