类 RedisClient
java.lang.Object
com.publiccms.common.redis.RedisClient
RedisClient
-
字段概要
字段修饰符和类型字段说明static final int
private redis.clients.jedis.JedisPool
protected final org.apache.commons.logging.Log
private Map<String,
RedisCacheEntity<Object, Object>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clearRegion
(String region) createOrGetCache
(String region) long
dbSize()
boolean
<T> T
boolean
void
removeRegion
(String region) void
void
void
shutdown()
-
字段详细资料
-
DEFAULT_EXPIRY_IN_SECONDS
public static final int DEFAULT_EXPIRY_IN_SECONDS- 另请参阅:
-
log
protected final org.apache.commons.logging.Log log -
jedisPool
private redis.clients.jedis.JedisPool jedisPool -
regionMap
-
-
构造器详细资料
-
RedisClient
public RedisClient(redis.clients.jedis.JedisPool jedisPool) - 参数:
jedisPool
-
-
-
方法详细资料
-
dbSize
public long dbSize()- 返回:
-
exists
- 参数:
region
-key
-- 返回:
-
get
- 参数:
region
-key
-- 返回:
-
set
- 参数:
region
-key
-value
-
-
set
- 参数:
region
-key
-value
-expiry
-
-
del
- 参数:
region
-key
-- 返回:
-
clearRegion
- 参数:
region
-
-
removeRegion
- 参数:
region
-
-
createOrGetCache
- 参数:
region
-- 返回:
-
isShutdown
public boolean isShutdown()- 返回:
-
shutdown
public void shutdown()
-