public class LettuceClusterConnection extends AbstractLettuceConnection implements RedisConnection
EMPTY_STRING| 构造器和说明 |
|---|
LettuceClusterConnection(ConnectionPool pool) |
LettuceClusterConnection(ConnectionPool pool,
BatchOptions options,
Duration timeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
byte[] |
del(byte[] key) |
byte[] |
get(byte[] key) |
protected io.lettuce.core.cluster.api.sync.RedisAdvancedClusterCommands<byte[],byte[]> |
getCommandExecutor() |
protected io.lettuce.core.cluster.api.StatefulRedisClusterConnection<byte[],byte[]> |
getNativeConnection() |
BatchOptions |
getOptions() |
Duration |
getTimeout() |
boolean |
isClusterConnection() |
Set<byte[]> |
keys(byte[] pattern) |
Long |
mdel(byte[]... keys) |
List<byte[]> |
mget(byte[]... keys) |
byte[] |
set(byte[] key,
byte[] value,
Duration expired) |
scanKeysbatchDeleteOnCluster, batchDeleteOnStandalone, batchGetOnCluster, batchGetOnStandalone, defaultExecutor, distributionScanKeys, getClassifiedKeys, getExecutor, parseServerVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizepublic LettuceClusterConnection(ConnectionPool pool)
public LettuceClusterConnection(ConnectionPool pool, BatchOptions options, Duration timeout)
public BatchOptions getOptions()
public Duration getTimeout()
protected io.lettuce.core.cluster.api.StatefulRedisClusterConnection<byte[],byte[]> getNativeConnection()
protected io.lettuce.core.cluster.api.sync.RedisAdvancedClusterCommands<byte[],byte[]> 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 boolean isClusterConnection()
isClusterConnection 在接口中 RedisConnectionpublic void close()
close 在接口中 RedisConnectionCopyright © 2021. All rights reserved.