public class LettuceConnection extends AbstractLettuceConnection implements RedisConnection, MutableDatabase
EMPTY_STRING| 构造器和说明 |
|---|
LettuceConnection(ConnectionPool pool) |
LettuceConnection(ConnectionPool pool,
BatchOptions options,
Duration timeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
byte[] |
del(byte[] key) |
byte[] |
get(byte[] key) |
protected io.lettuce.core.api.sync.RedisCommands<byte[],byte[]> |
getCommandExecutor() |
Optional<Integer> |
getDatabase() |
io.lettuce.core.api.StatefulRedisConnection<byte[],byte[]> |
getNativeConnection() |
BatchOptions |
getOptions() |
Duration |
getTimeout() |
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) |
scanKeysbatchDeleteOnCluster, batchDeleteOnStandalone, batchGetOnCluster, batchGetOnStandalone, defaultExecutor, distributionScanKeys, getClassifiedKeys, getExecutor, parseServerVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisClusterConnectionsizepublic LettuceConnection(ConnectionPool pool)
public LettuceConnection(ConnectionPool pool, BatchOptions options, Duration timeout)
public void setDatabase(Integer database)
setDatabase 在接口中 MutableDatabasepublic BatchOptions getOptions()
public Duration getTimeout()
public io.lettuce.core.api.StatefulRedisConnection<byte[],byte[]> getNativeConnection()
protected io.lettuce.core.api.sync.RedisCommands<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 void close()
close 在接口中 RedisConnectionCopyright © 2021. All rights reserved.