public class CompatibleRedisConnection extends AbstractRedisConnection implements RedisConnection
RedisConnectionEMPTY_STRING| 构造器和说明 |
|---|
CompatibleRedisConnection(org.springframework.data.redis.connection.RedisConnection redisConnection) |
CompatibleRedisConnection(org.springframework.data.redis.connection.RedisConnection redisConnection,
BatchOptions options) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
byte[] |
del(byte[] key) |
byte[] |
get(byte[] key) |
protected Set<byte[]> |
getClusterKeys(byte[] pattern) |
protected Set<byte[]> |
getKeys(byte[] pattern) |
org.springframework.data.redis.connection.RedisConnection |
getNativeConnection() |
BatchOptions |
getOptions() |
boolean |
isClusterConnection() |
protected boolean |
isJedisClusterConnection() |
Set<byte[]> |
keys(byte[] pattern) |
Long |
mdel(byte[]... keys) |
List<byte[]> |
mget(byte[]... keys) |
protected List<byte[]> |
mgetOnCluster(byte[]... keys) |
byte[] |
set(byte[] key,
byte[] value,
Duration expired) |
batchDeleteOnCluster, batchDeleteOnStandalone, batchGetOnCluster, batchGetOnStandalone, defaultExecutor, distributionScanKeys, getClassifiedKeys, getExecutor, parseServerVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizepublic CompatibleRedisConnection(org.springframework.data.redis.connection.RedisConnection redisConnection)
public CompatibleRedisConnection(org.springframework.data.redis.connection.RedisConnection redisConnection,
BatchOptions options)
public BatchOptions getOptions()
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 在接口中 RedisCacheCommandsprotected List<byte[]> mgetOnCluster(byte[]... keys)
public byte[] del(byte[] key)
del 在接口中 RedisCacheCommandspublic Set<byte[]> keys(byte[] pattern)
keys 在接口中 RedisCacheCommandspublic boolean isClusterConnection()
isClusterConnection 在接口中 RedisConnectionpublic void close()
close 在接口中 RedisConnectionprotected boolean isJedisClusterConnection()
public org.springframework.data.redis.connection.RedisConnection getNativeConnection()
protected Set<byte[]> getKeys(byte[] pattern)
protected Set<byte[]> getClusterKeys(byte[] pattern)
Copyright © 2021. All rights reserved.