类 MemoryCacheEntity<K,V>
java.lang.Object
com.publiccms.common.cache.MemoryCacheEntity<K,V>
- 类型参数:
K
-V
-
- 所有已实现的接口:
CacheEntity<K,
,V> Serializable
MemoryCacheEntity
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private Map<K,
CacheValue<V>> private ReentrantReadWriteLock
protected final org.apache.commons.logging.Log
private static final long
private int
-
构造器概要
构造器 -
方法概要
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
size
private int size -
log
protected final transient org.apache.commons.logging.Log log -
cachedMap
-
lock
-
-
构造器详细资料
-
MemoryCacheEntity
public MemoryCacheEntity()
-
-
方法详细资料
-
put
- 指定者:
put
在接口中CacheEntity<K,
V> - 参数:
key
-value
-- 返回:
- values list
-
put
- 指定者:
put
在接口中CacheEntity<K,
V> - 参数:
key
-value
-expiryInSeconds
-
-
get
- 指定者:
get
在接口中CacheEntity<K,
V> - 参数:
key
-- 返回:
- value
-
clear
- 指定者:
clear
在接口中CacheEntity<K,
V> - 参数:
recycling
-- 返回:
- values list
-
remove
- 指定者:
remove
在接口中CacheEntity<K,
V> - 参数:
key
-- 返回:
- value
-
clearCache
-
setSize
public void setSize(int size) - 参数:
size
-
-
contains
- 指定者:
contains
在接口中CacheEntity<K,
V> - 参数:
key
-- 返回:
- whether it is included
-
init
- 指定者:
init
在接口中CacheEntity<K,
V> - 参数:
region
-properties
-- 返回:
- entity
-