public class RedisCache extends Object
Constructor and Description |
---|
RedisCache(String namespace,
net.oschina.j2cache.session.RedisClient client)
缓存构造
|
Modifier and Type | Method and Description |
---|---|
void |
clear(String session_id) |
void |
close() |
void |
evict(String session_id,
String... keys) |
boolean |
exists(String session_id) |
boolean |
exists(String session_id,
String key) |
List<byte[]> |
getBytes(String session_id,
Collection<String> keys) |
byte[] |
getBytes(String session_id,
String key) |
List<String> |
keys(String session_id) |
void |
setBytes(String session_id,
Map<String,byte[]> bytes,
int expireInSeconds) |
void |
setBytes(String session_id,
String key,
byte[] bytes) |
long |
ttl(String session_id,
int ttl) |
public RedisCache(String namespace, net.oschina.j2cache.session.RedisClient client)
namespace
- 命名空间,用于在多个实例中避免 key 的重叠client
- 缓存客户端接口Copyright © 2018. All rights reserved.