|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.crazycake.shiro.BaseRedisManager
public abstract class BaseRedisManager
Abstract class of RedisManager.
| 字段摘要 | |
|---|---|
protected static int |
DEFAULT_COUNT
Default value of count. |
protected static int |
DEFAULT_EXPIRE
Expire time in seconds. |
| 构造方法摘要 | |
|---|---|
BaseRedisManager()
|
|
| 方法摘要 | |
|---|---|
Long |
dbSize(byte[] pattern)
Return the size of redis db. |
void |
del(byte[] key)
Delete a key-value pair. |
byte[] |
get(byte[] key)
get value from redis |
int |
getCount()
|
protected abstract redis.clients.jedis.Jedis |
getJedis()
We are going to operate redis by acquiring Jedis object. |
redis.clients.jedis.JedisPoolConfig |
getJedisPoolConfig()
|
Set<byte[]> |
keys(byte[] pattern)
Return all the keys of Redis db. |
byte[] |
set(byte[] key,
byte[] value,
int exipreTime)
set |
void |
setCount(int count)
|
void |
setJedisPoolConfig(redis.clients.jedis.JedisPoolConfig jedisPoolConfig)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected static final int DEFAULT_EXPIRE
protected static final int DEFAULT_COUNT
| 构造方法详细信息 |
|---|
public BaseRedisManager()
| 方法详细信息 |
|---|
protected abstract redis.clients.jedis.Jedis getJedis()
public byte[] get(byte[] key)
IRedisManager 中的 getkey -
public byte[] set(byte[] key,
byte[] value,
int exipreTime)
IRedisManager 中的 setkey - value - exipreTime -
public void del(byte[] key)
IRedisManager 中的 delkey - public Long dbSize(byte[] pattern)
IRedisManager 中的 dbSizepublic Set<byte[]> keys(byte[] pattern)
IRedisManager 中的 keyspattern -
public int getCount()
public void setCount(int count)
public redis.clients.jedis.JedisPoolConfig getJedisPoolConfig()
public void setJedisPoolConfig(redis.clients.jedis.JedisPoolConfig jedisPoolConfig)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||