public class RedisCacheProxy extends Object implements Closeable
| 构造器和说明 |
|---|
RedisCacheProxy(RedisClientFactoryAdapter redisClientFactoryAdapter) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
del(byte[] key) |
void |
del(String key) |
RedisClient |
getResource() |
void |
hdel(byte[] key,
byte[]... fieldKey) |
byte[] |
hget(byte[] key,
byte[] fieldKey) |
Set<byte[]> |
hkeys(byte[] key) |
Set<String> |
hkeys(String key) |
void |
hset(byte[] key,
byte[] fieldKey,
byte[] val) |
void |
hset(byte[] key,
byte[] fieldKey,
byte[] val,
int expireInSec) |
void |
publish(byte[] channel,
byte[] message) |
void |
returnResource(RedisClient redisClient) |
void |
subscribe(redis.clients.jedis.BinaryJedisPubSub binaryJedisPubSub,
byte[]... channels) |
public RedisCacheProxy(RedisClientFactoryAdapter redisClientFactoryAdapter)
public RedisClient getResource()
public void returnResource(RedisClient redisClient)
public byte[] hget(byte[] key,
byte[] fieldKey)
public void hset(byte[] key,
byte[] fieldKey,
byte[] val)
public void hset(byte[] key,
byte[] fieldKey,
byte[] val,
int expireInSec)
public void hdel(byte[] key,
byte[]... fieldKey)
public Set<byte[]> hkeys(byte[] key)
public void del(String key)
public void del(byte[] key)
public void subscribe(redis.clients.jedis.BinaryJedisPubSub binaryJedisPubSub,
byte[]... channels)
public void publish(byte[] channel,
byte[] message)
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2018. All rights reserved.