类 RedisCacheEntity<K,V>
java.lang.Object
com.publiccms.common.redis.RedisCacheEntity<K,V>
- 类型参数:
K
-V
-
- 所有已实现的接口:
CacheEntity<K,
,V> Serializable
RedisCacheEntity
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final String
private redis.clients.jedis.JedisPool
private String
private static final long
private static final StringSerializer
private final Serializer<V>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clear
(boolean recycling) boolean
private byte[]
init
(String region, Properties properties) void
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
jedisPool
private redis.clients.jedis.JedisPool jedisPool -
region
-
stringSerializer
-
valueSerializer
-
CACHE_PREFIX
- 另请参阅:
-
-
构造器详细资料
-
RedisCacheEntity
public RedisCacheEntity()
-
-
方法详细资料
-
put
- 指定者:
put
在接口中CacheEntity<K,
V> - 参数:
key
-value
-- 返回:
- values list
-
put
- 指定者:
put
在接口中CacheEntity<K,
V> - 参数:
key
-value
-expiryInSeconds
-
-
get
- 指定者:
get
在接口中CacheEntity<K,
V> - 参数:
key
-- 返回:
- value
-
remove
- 指定者:
remove
在接口中CacheEntity<K,
V> - 参数:
key
-- 返回:
- value
-
clear
- 指定者:
clear
在接口中CacheEntity<K,
V> - 参数:
recycling
-- 返回:
- values list
-
contains
- 指定者:
contains
在接口中CacheEntity<K,
V> - 参数:
key
-- 返回:
- whether it is included
-
getKey
-
init
- 指定者:
init
在接口中CacheEntity<K,
V> - 参数:
region
-properties
-- 返回:
- entity
-
init
-
getRegion
-