- java.lang.Object
-
- org.redkale.cached.spi.CachedLocalSource.CacheMap
-
- 封闭类:
- CachedLocalSource
protected static class CachedLocalSource.CacheMap extends Object
-
-
字段概要
字段 修饰符和类型 字段 说明 protected int
limit
protected ReentrantLock
lock
protected ConcurrentHashMap<String,CachedLocalSource.CacheItem>
map
-
构造器概要
构造器 构造器 说明 CacheMap(int limit)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
checkLimit()
CachedLocalSource.CacheItem
computeIfAbsent(String key, String json)
void
forEach(BiConsumer<String,CachedLocalSource.CacheItem> action)
CachedLocalSource.CacheItem
get(String key)
CachedLocalSource.CacheItem
remove(String key)
int
size()
-
-
-
字段详细资料
-
lock
protected final ReentrantLock lock
-
map
protected final ConcurrentHashMap<String,CachedLocalSource.CacheItem> map
-
limit
protected int limit
-
-
方法详细资料
-
forEach
public void forEach(BiConsumer<String,CachedLocalSource.CacheItem> action)
-
remove
public CachedLocalSource.CacheItem remove(String key)
-
get
public CachedLocalSource.CacheItem get(String key)
-
computeIfAbsent
public CachedLocalSource.CacheItem computeIfAbsent(String key, String json)
-
size
public int size()
-
checkLimit
protected void checkLimit()
-
-