K
- V
- public class RedisCacheEntity<K,V> extends java.lang.Object implements CacheEntity<K,V>, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CACHE_PREFIX |
private redis.clients.jedis.JedisPool |
jedisPool |
private java.lang.String |
region |
private static long |
serialVersionUID |
private static StringSerializer |
stringSerializer |
private Serializer<V> |
valueSerializer |
构造器和说明 |
---|
RedisCacheEntity() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<V> |
clear(boolean recycling) |
boolean |
contains(K key) |
V |
get(K key) |
private byte[] |
getKey(K key) |
java.lang.String |
getRegion() |
RedisCacheEntity<K,V> |
init(java.lang.String region,
redis.clients.jedis.JedisPool pool) |
RedisCacheEntity<K,V> |
init(java.lang.String region,
java.util.Properties properties) |
java.util.List<V> |
put(K key,
V value) |
void |
put(K key,
V value,
java.lang.Long expiryInSeconds) |
V |
remove(K key) |
private static final long serialVersionUID
private redis.clients.jedis.JedisPool jedisPool
private java.lang.String region
private static final StringSerializer stringSerializer
private final Serializer<V> valueSerializer
public static final java.lang.String CACHE_PREFIX
public java.util.List<V> clear(boolean recycling)
clear
在接口中 CacheEntity<K,V>
public boolean contains(K key)
contains
在接口中 CacheEntity<K,V>
private byte[] getKey(K key)
public RedisCacheEntity<K,V> init(java.lang.String region, java.util.Properties properties)
init
在接口中 CacheEntity<K,V>
public RedisCacheEntity<K,V> init(java.lang.String region, redis.clients.jedis.JedisPool pool)
public java.lang.String getRegion()