public class RedissonConnection extends AbstractRedissonConnection implements RedisConnection
EMPTY_STRING| 构造器和说明 |
|---|
RedissonConnection(org.redisson.api.RedissonClient client) |
RedissonConnection(org.redisson.api.RedissonClient client,
BatchOptions options) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
byte[] |
del(byte[] key) |
byte[] |
get(byte[] key) |
protected org.redisson.command.CommandExecutor |
getCommandExecutor() |
Optional<Integer> |
getDatabase() |
BatchOptions |
getOptions() |
org.redisson.Redisson |
getRedisson() |
protected boolean |
isSwitchDb() |
Set<byte[]> |
keys(byte[] pattern) |
Long |
mdel(byte[]... keys) |
List<byte[]> |
mget(byte[]... keys) |
byte[] |
set(byte[] key,
byte[] value,
Duration expired) |
void |
setDatabase(Integer database) |
scanKeys, scanKeysOnDbbatchDeleteOnCluster, batchDeleteOnStandalone, batchGetOnCluster, batchGetOnStandalone, defaultExecutor, distributionScanKeys, getClassifiedKeys, getExecutor, parseServerVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClusterConnectionsizepublic RedissonConnection(org.redisson.api.RedissonClient client)
public RedissonConnection(org.redisson.api.RedissonClient client,
BatchOptions options)
public void setDatabase(Integer database)
protected boolean isSwitchDb()
public org.redisson.Redisson getRedisson()
public BatchOptions getOptions()
protected org.redisson.command.CommandExecutor getCommandExecutor()
public byte[] get(byte[] key)
get 在接口中 RedisCacheCommandspublic byte[] set(byte[] key,
byte[] value,
Duration expired)
set 在接口中 RedisCacheCommandspublic Long mdel(byte[]... keys)
mdel 在接口中 RedisCacheCommandspublic List<byte[]> mget(byte[]... keys)
mget 在接口中 RedisCacheCommandspublic byte[] del(byte[] key)
del 在接口中 RedisCacheCommandspublic Set<byte[]> keys(byte[] pattern)
keys 在接口中 RedisCacheCommandspublic void close()
close 在接口中 RedisConnectionCopyright © 2020. All rights reserved.