public class LettuceClusterConnection extends LettuceConnection implements RedisClusterConnection
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
LettuceClusterConnection.LettuceClusterCommandCallback<T>
Lettuce specific implementation of
ClusterCommandExecutor.ClusterCommandCallback. |
protected static interface |
LettuceClusterConnection.LettuceMultiKeyClusterCommandCallback<T>
Lettuce specific implementation of
ClusterCommandExecutor.MultiKeyClusterCommandCallback. |
RedisStringCommands.BitOperation, RedisStringCommands.SetOptionRedisListCommands.PositionRedisZSetCommands.Aggregate, RedisZSetCommands.Limit, RedisZSetCommands.Range, RedisZSetCommands.TupleRedisServerCommands.MigrateOption, RedisServerCommands.ShutdownOptionRedisGeoCommands.DistanceUnit, RedisGeoCommands.GeoLocation<T>, RedisGeoCommands.GeoRadiusCommandArgsRedisClusterCommands.AddSlots| Constructor and Description |
|---|
LettuceClusterConnection(com.lambdaworks.redis.cluster.RedisClusterClient clusterClient)
Creates new
LettuceClusterConnection using RedisClusterClient with default
timeout and a fresh ClusterCommandExecutor that gets destroyed on close. |
LettuceClusterConnection(com.lambdaworks.redis.cluster.RedisClusterClient clusterClient,
ClusterCommandExecutor executor)
Creates new
LettuceClusterConnection with default timeout using
RedisClusterClient running commands across the cluster via given ClusterCommandExecutor. |
LettuceClusterConnection(com.lambdaworks.redis.cluster.RedisClusterClient clusterClient,
long timeout,
ClusterCommandExecutor executor)
Creates new
LettuceClusterConnection with given command timeout using RedisClusterClient
running commands across the cluster via given ClusterCommandExecutor. |
| Modifier and Type | Method and Description |
|---|---|
void |
bgReWriteAof(RedisClusterNode node) |
void |
bgSave(RedisClusterNode node) |
List<byte[]> |
bLPop(int timeout,
byte[]... keys)
Removes and returns first element from lists stored at
keys. |
List<byte[]> |
bRPop(int timeout,
byte[]... keys)
Removes and returns last element from lists stored at
keys. |
byte[] |
bRPopLPush(int timeout,
byte[] srcKey,
byte[] dstKey)
Remove the last element from list at
srcKey, append it to dstKey and return its value. |
void |
close()
Closes (or quits) the connection.
|
void |
clusterAddSlots(RedisClusterNode node,
int... slots)
Assign slots to given
RedisClusterNode. |
void |
clusterAddSlots(RedisClusterNode node,
RedisClusterNode.SlotRange range)
Assign
RedisClusterNode.SlotRange.getSlotsArray() to given RedisClusterNode. |
Long |
clusterCountKeysInSlot(int slot)
Count the number of keys assigned to one slot.
|
void |
clusterDeleteSlots(RedisClusterNode node,
int... slots)
Remove slots from
RedisClusterNode. |
void |
clusterDeleteSlotsInRange(RedisClusterNode node,
RedisClusterNode.SlotRange range)
Removes
RedisClusterNode.SlotRange.getSlotsArray() from given RedisClusterNode. |
void |
clusterForget(RedisClusterNode node)
Remove given node from cluster.
|
ClusterInfo |
clusterGetClusterInfo()
Get cluster information.
|
List<byte[]> |
clusterGetKeysInSlot(int slot,
Integer count)
Get keys served by slot.
|
Map<RedisClusterNode,Collection<RedisClusterNode>> |
clusterGetMasterSlaveMap()
Retrieve information about masters and their connected slaves.
|
RedisClusterNode |
clusterGetNodeForKey(byte[] key)
Find the
RedisClusterNode serving given key. |
RedisClusterNode |
clusterGetNodeForSlot(int slot)
Find the
RedisClusterNode serving given slot. |
List<RedisClusterNode> |
clusterGetNodes()
Retrieve cluster node information such as id, host, port and slots.
|
Set<RedisClusterNode> |
clusterGetSlaves(RedisClusterNode master)
Retrieve information about connected slaves for given master node.
|
Integer |
clusterGetSlotForKey(byte[] key)
Find the slot for a given
key. |
void |
clusterMeet(RedisClusterNode node)
Add given node to cluster.
|
void |
clusterReplicate(RedisClusterNode master,
RedisClusterNode slave)
Assign a slave to given master.
|
void |
clusterSetSlot(RedisClusterNode node,
int slot,
RedisClusterCommands.AddSlots mode) |
Long |
dbSize()
Get the total number of available keys in currently selected database.
|
Long |
dbSize(RedisClusterNode node) |
Long |
del(byte[]... keys)
Delete given
keys. |
protected com.lambdaworks.redis.api.StatefulConnection<byte[],byte[]> |
doGetAsyncDedicatedConnection() |
void |
flushAll()
Delete all all keys from all databases.
|
void |
flushAll(RedisClusterNode node) |
void |
flushDb()
Delete all keys of the currently selected database.
|
void |
flushDb(RedisClusterNode node) |
List<RedisClientInfo> |
getClientList()
Request information and statistics about connected clients.
|
List<RedisClientInfo> |
getClientList(RedisClusterNode node) |
List<String> |
getConfig(RedisClusterNode node,
String pattern) |
List<String> |
getConfig(String pattern)
Load configuration parameters for given
pattern from server. |
Properties |
info()
Load default server information like
memory
cpu utilization
replication
|
Properties |
info(RedisClusterNode node) |
Properties |
info(RedisClusterNode node,
String section) |
Properties |
info(String section)
Load server information for given
selection. |
Set<byte[]> |
keys(byte[] pattern)
Find all keys matching the given
pattern. |
Set<byte[]> |
keys(RedisClusterNode node,
byte[] pattern) |
Long |
lastSave(RedisClusterNode node) |
List<byte[]> |
mGet(byte[]... keys)
Get multiple
keys. |
Boolean |
move(byte[] key,
int dbIndex)
Move given
key to database with index. |
void |
mSet(Map<byte[],byte[]> tuples)
Set multiple keys to multiple values using key-value pairs provided in
tuple. |
Boolean |
mSetNX(Map<byte[],byte[]> tuples)
Set multiple keys to multiple values using key-value pairs provided in
tuple only if the provided key does
not exist. |
void |
multi()
Mark the start of a transaction block.
|
Long |
pfCount(byte[]... keys)
Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).
|
void |
pfMerge(byte[] destinationKey,
byte[]... sourceKeys)
Merge N different HyperLogLogs at sourceKeys into a single destinationKey.
|
String |
ping()
Test connection.
|
String |
ping(RedisClusterNode node) |
byte[] |
randomKey()
Return a random key from the keyspace.
|
byte[] |
randomKey(RedisClusterNode node) |
void |
rename(byte[] oldName,
byte[] newName)
Rename key
oldName to newName. |
Boolean |
renameNX(byte[] oldName,
byte[] newName)
Rename key
oldName to newName only if newName does not exist. |
void |
resetConfigStats()
Reset statistic counters on server.
|
void |
resetConfigStats(RedisClusterNode node) |
byte[] |
rPopLPush(byte[] srcKey,
byte[] dstKey)
Remove the last element from list at
srcKey, append it to dstKey and return its value. |
void |
save(RedisClusterNode node) |
Cursor<byte[]> |
scan(long cursorId,
ScanOptions options) |
Set<byte[]> |
sDiff(byte[]... keys)
Diff all sets for given
keys. |
Long |
sDiffStore(byte[] destKey,
byte[]... keys)
Diff all sets for given
keys and store result in destKey. |
void |
select(int dbIndex)
Select the DB with given positive
dbIndex. |
void |
setConfig(RedisClusterNode node,
String param,
String value) |
void |
setConfig(String param,
String value)
Set server configuration for
param to value. |
void |
shutdown(RedisClusterNode node) |
Set<byte[]> |
sInter(byte[]... keys)
Returns the members intersecting all given sets at
keys. |
Long |
sInterStore(byte[] destKey,
byte[]... keys)
Intersect all given sets at
keys and store result in destKey. |
Boolean |
sMove(byte[] srcKey,
byte[] destKey,
byte[] value)
Move
value from srcKey to destKey |
Long |
sort(byte[] key,
SortParameters params,
byte[] storeKey)
Sort the elements for
key and store result in storeKey. |
Set<byte[]> |
sUnion(byte[]... keys)
Union all sets at given
keys. |
Long |
sUnionStore(byte[] destKey,
byte[]... keys)
Union all sets at given
keys and store result in destKey. |
Long |
time()
Request server timestamp using
TIME command. |
Long |
time(RedisClusterNode node) |
void |
unwatch()
Flushes all the previously
#watch(byte[]...) keys. |
void |
watch(byte[]... keys)
Watch given
keys for modifications during transaction started with RedisTxCommands.multi(). |
append, bgReWriteAof, bgSave, bgWriteAof, bitCount, bitCount, bitOp, closePipeline, convertLettuceAccessException, decr, decrBy, discard, dump, echo, eval, evalSha, evalSha, exec, execute, execute, exists, expire, expireAt, geoAdd, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRadiusByMember, geoRemove, get, getAsyncDedicatedConnection, getBit, getClientName, getConnection, getNativeConnection, getRange, getSentinelConnection, getSet, getSubscription, hDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hScan, hScan, hSet, hSetNX, hVals, incr, incrBy, incrBy, isActive, isClosed, isPipelined, isQueueing, isSubscribed, killClient, lastSave, lIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, migrate, migrate, openPipeline, persist, pExpire, pExpireAt, pfAdd, pSetEx, pSubscribe, pTtl, pTtl, publish, restore, rPop, rPush, rPushX, sAdd, save, scan, scan, sCard, scriptExists, scriptFlush, scriptKill, scriptLoad, set, set, setBit, setClientName, setConvertPipelineAndTxResults, setEx, setNX, setRange, shutdown, shutdown, sIsMember, slaveOf, slaveOfNoOne, sMembers, sort, sPop, sRandMember, sRandMember, sRem, sScan, sScan, strLen, subscribe, ttl, ttl, type, zAdd, zAdd, zCard, zCount, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByScore, zRemRangeByScore, zRevRange, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScan, zScore, zUnionStore, zUnionStoregetSentinelConnection, hasRedisSentinelConfigured, setSentinelConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosePipeline, getNativeConnection, getSentinelConnection, isClosed, isPipelined, isQueueing, openPipelineexecutedump, exists, expire, expireAt, persist, pExpire, pExpireAt, pTtl, pTtl, restore, scan, sort, ttl, ttl, typeappend, bitCount, bitCount, bitOp, decr, decrBy, get, getBit, getRange, getSet, incr, incrBy, incrBy, pSetEx, set, set, setBit, setEx, setNX, setRange, strLenlIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, rPop, rPush, rPushXsAdd, sCard, sIsMember, sMembers, sPop, sRandMember, sRandMember, sRem, sScanzAdd, zAdd, zCard, zCount, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByScore, zRemRangeByScore, zRevRange, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnionStore, zUnionStorehDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hScan, hSet, hSetNX, hValsdiscard, execgetSubscription, isSubscribed, pSubscribe, publish, subscribeechobgReWriteAof, bgSave, bgWriteAof, getClientName, killClient, lastSave, migrate, migrate, save, setClientName, shutdown, shutdown, slaveOf, slaveOfNoOneeval, evalSha, evalSha, scriptExists, scriptFlush, scriptKill, scriptLoadgeoAdd, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRadiusByMember, geoRemovepfAddpublic LettuceClusterConnection(com.lambdaworks.redis.cluster.RedisClusterClient clusterClient)
LettuceClusterConnection using RedisClusterClient with default
timeout and a fresh ClusterCommandExecutor that gets destroyed on close.clusterClient - must not be null.public LettuceClusterConnection(com.lambdaworks.redis.cluster.RedisClusterClient clusterClient,
ClusterCommandExecutor executor)
LettuceClusterConnection with default timeout using
RedisClusterClient running commands across the cluster via given ClusterCommandExecutor.clusterClient - must not be null.executor - must not be null.public LettuceClusterConnection(com.lambdaworks.redis.cluster.RedisClusterClient clusterClient,
long timeout,
ClusterCommandExecutor executor)
LettuceClusterConnection with given command timeout using RedisClusterClient
running commands across the cluster via given ClusterCommandExecutor.clusterClient - must not be null.timeout - command timeout (in milliseconds)executor - must not be null.public Cursor<byte[]> scan(long cursorId, ScanOptions options)
scan in class LettuceConnectionpublic Set<byte[]> keys(byte[] pattern)
RedisKeyCommandspattern.keys in interface RedisKeyCommandskeys in class LettuceConnectionpattern - must not be null.public void flushAll()
RedisServerCommandsflushAll in interface RedisServerCommandsflushAll in class LettuceConnectionpublic void flushDb()
RedisServerCommandsflushDb in interface RedisServerCommandsflushDb in class LettuceConnectionpublic Long dbSize()
RedisServerCommandsdbSize in interface RedisServerCommandsdbSize in class LettuceConnectionpublic Properties info()
RedisServerCommandsinfo in interface RedisServerCommandsinfo in class LettuceConnectionpublic Properties info(String section)
RedisServerCommandsselection.info in interface RedisServerCommandsinfo in class LettuceConnectionpublic Properties info(RedisClusterNode node, String section)
info in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.info(String)public Boolean move(byte[] key, int dbIndex)
RedisKeyCommandskey to database with index.move in interface RedisKeyCommandsmove in class LettuceConnectionkey - must not be null.public Long del(byte[]... keys)
RedisKeyCommandskeys.del in interface RedisKeyCommandsdel in class LettuceConnectionkeys - must not be null.public Set<RedisClusterNode> clusterGetSlaves(RedisClusterNode master)
RedisClusterCommandsclusterGetSlaves in interface RedisClusterCommandsmaster - must not be null.public Integer clusterGetSlotForKey(byte[] key)
RedisClusterCommandskey.clusterGetSlotForKey in interface RedisClusterCommandskey - must not be null.public RedisClusterNode clusterGetNodeForSlot(int slot)
RedisClusterCommandsRedisClusterNode serving given slot.clusterGetNodeForSlot in interface RedisClusterCommandspublic RedisClusterNode clusterGetNodeForKey(byte[] key)
RedisClusterCommandsRedisClusterNode serving given key.clusterGetNodeForKey in interface RedisClusterCommandskey - must not be null.public ClusterInfo clusterGetClusterInfo()
RedisClusterCommandsclusterGetClusterInfo in interface RedisClusterCommandspublic void clusterAddSlots(RedisClusterNode node, int... slots)
RedisClusterCommandsRedisClusterNode.clusterAddSlots in interface RedisClusterCommandsnode - must not be null.public void clusterAddSlots(RedisClusterNode node, RedisClusterNode.SlotRange range)
RedisClusterCommandsRedisClusterNode.SlotRange.getSlotsArray() to given RedisClusterNode.clusterAddSlots in interface RedisClusterCommandsnode - must not be null.range - must not be null.public void clusterDeleteSlots(RedisClusterNode node, int... slots)
RedisClusterCommandsRedisClusterNode.clusterDeleteSlots in interface RedisClusterCommandsnode - must not be null.public void clusterDeleteSlotsInRange(RedisClusterNode node, RedisClusterNode.SlotRange range)
RedisClusterCommandsRedisClusterNode.SlotRange.getSlotsArray() from given RedisClusterNode.clusterDeleteSlotsInRange in interface RedisClusterCommandsnode - must not be null.range - must not be null.public void clusterForget(RedisClusterNode node)
RedisClusterCommandsclusterForget in interface RedisClusterCommandsnode - must not be null.public void clusterMeet(RedisClusterNode node)
RedisClusterCommandsclusterMeet in interface RedisClusterCommandsnode - must contain host and RedisNode.getPort() and must
not be null.public void clusterSetSlot(RedisClusterNode node, int slot, RedisClusterCommands.AddSlots mode)
clusterSetSlot in interface RedisClusterCommandsnode - must not be null.mode - must not benull.public List<byte[]> clusterGetKeysInSlot(int slot, Integer count)
RedisClusterCommandsclusterGetKeysInSlot in interface RedisClusterCommandscount - must not be null.public Long clusterCountKeysInSlot(int slot)
RedisClusterCommandsclusterCountKeysInSlot in interface RedisClusterCommandspublic void clusterReplicate(RedisClusterNode master, RedisClusterNode slave)
RedisClusterCommandsclusterReplicate in interface RedisClusterCommandsmaster - must not be null.slave - must not be null.public String ping()
RedisConnectionCommandsping in interface RedisConnectionCommandsping in class LettuceConnectionpublic String ping(RedisClusterNode node)
ping in interface RedisClusterConnectionnode - must not be null.RedisConnectionCommands.ping()public void bgReWriteAof(RedisClusterNode node)
bgReWriteAof in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.bgReWriteAof()public void bgSave(RedisClusterNode node)
bgSave in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.bgSave()public Long lastSave(RedisClusterNode node)
lastSave in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.lastSave()public void save(RedisClusterNode node)
save in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.save()public Long dbSize(RedisClusterNode node)
dbSize in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.dbSize()public void flushDb(RedisClusterNode node)
flushDb in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.flushDb()public void flushAll(RedisClusterNode node)
flushAll in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.flushAll()public Properties info(RedisClusterNode node)
info in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.info()public Set<byte[]> keys(RedisClusterNode node, byte[] pattern)
keys in interface RedisClusterConnectionnode - must not be null.pattern - must not be null.RedisKeyCommands.keys(byte[])public byte[] randomKey(RedisClusterNode node)
randomKey in interface RedisClusterConnectionnode - must not be null.RedisKeyCommands.randomKey()public byte[] randomKey()
RedisKeyCommandsrandomKey in interface RedisKeyCommandsrandomKey in class LettuceConnectionpublic void rename(byte[] oldName,
byte[] newName)
RedisKeyCommandsoldName to newName.rename in interface RedisKeyCommandsrename in class LettuceConnectionoldName - must not be null.newName - must not be null.public Boolean renameNX(byte[] oldName, byte[] newName)
RedisKeyCommandsoldName to newName only if newName does not exist.renameNX in interface RedisKeyCommandsrenameNX in class LettuceConnectionoldName - must not be null.newName - must not be null.public void shutdown(RedisClusterNode node)
shutdown in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.shutdown()public Long sort(byte[] key, SortParameters params, byte[] storeKey)
RedisKeyCommandskey and store result in storeKey.sort in interface RedisKeyCommandssort in class LettuceConnectionkey - must not be null.params - must not be null.storeKey - must not be null.public List<byte[]> mGet(byte[]... keys)
RedisStringCommandskeys. Values are returned in the order of the requested keys.mGet in interface RedisStringCommandsmGet in class LettuceConnectionkeys - must not be null.public void mSet(Map<byte[],byte[]> tuples)
RedisStringCommandstuple.mSet in interface RedisStringCommandsmSet in class LettuceConnectiontuples - must not be null.public Boolean mSetNX(Map<byte[],byte[]> tuples)
RedisStringCommandstuple only if the provided key does
not exist.mSetNX in interface RedisStringCommandsmSetNX in class LettuceConnectiontuples - must not be null.public List<byte[]> bLPop(int timeout, byte[]... keys)
RedisListCommandskeys. timeout reached.bLPop in interface RedisListCommandsbLPop in class LettuceConnectionkeys - must not be null.RedisListCommands.lPop(byte[])public List<byte[]> bRPop(int timeout, byte[]... keys)
RedisListCommandskeys. timeout reached.bRPop in interface RedisListCommandsbRPop in class LettuceConnectionkeys - must not be null.RedisListCommands.rPop(byte[])public byte[] rPopLPush(byte[] srcKey,
byte[] dstKey)
RedisListCommandssrcKey, append it to dstKey and return its value.rPopLPush in interface RedisListCommandsrPopLPush in class LettuceConnectionsrcKey - must not be null.dstKey - must not be null.public byte[] bRPopLPush(int timeout,
byte[] srcKey,
byte[] dstKey)
RedisListCommandssrcKey, append it to dstKey and return its value.
timeout reached.bRPopLPush in interface RedisListCommandsbRPopLPush in class LettuceConnectionsrcKey - must not be null.dstKey - must not be null.RedisListCommands.rPopLPush(byte[], byte[])public void select(int dbIndex)
RedisConnectionCommandsdbIndex.select in interface RedisConnectionCommandsselect in class LettuceConnectiondbIndex - the database index.public Boolean sMove(byte[] srcKey, byte[] destKey, byte[] value)
RedisSetCommandsvalue from srcKey to destKeysMove in interface RedisSetCommandssMove in class LettuceConnectionsrcKey - must not be null.destKey - must not be null.public Set<byte[]> sInter(byte[]... keys)
RedisSetCommandskeys.sInter in interface RedisSetCommandssInter in class LettuceConnectionkeys - must not be null.public Long sInterStore(byte[] destKey, byte[]... keys)
RedisSetCommandskeys and store result in destKey.sInterStore in interface RedisSetCommandssInterStore in class LettuceConnectiondestKey - must not be null.keys - must not be null.public Set<byte[]> sUnion(byte[]... keys)
RedisSetCommandskeys.sUnion in interface RedisSetCommandssUnion in class LettuceConnectionkeys - must not be null.public Long sUnionStore(byte[] destKey, byte[]... keys)
RedisSetCommandskeys and store result in destKey.sUnionStore in interface RedisSetCommandssUnionStore in class LettuceConnectiondestKey - must not be null.keys - must not be null.public Set<byte[]> sDiff(byte[]... keys)
RedisSetCommandskeys.sDiff in interface RedisSetCommandssDiff in class LettuceConnectionkeys - must not be null.public Long sDiffStore(byte[] destKey, byte[]... keys)
RedisSetCommandskeys and store result in destKey.sDiffStore in interface RedisSetCommandssDiffStore in class LettuceConnectiondestKey - must not be null.keys - must not be null.protected com.lambdaworks.redis.api.StatefulConnection<byte[],byte[]> doGetAsyncDedicatedConnection()
doGetAsyncDedicatedConnection in class LettuceConnectionpublic List<RedisClusterNode> clusterGetNodes()
RedisClusterCommandsclusterGetNodes in interface RedisClusterCommandspublic Long pfCount(byte[]... keys)
HyperLogLogCommandspfCount in interface HyperLogLogCommandspfCount in class LettuceConnectionkeys - must not be null.public void pfMerge(byte[] destinationKey,
byte[]... sourceKeys)
HyperLogLogCommandspfMerge in interface HyperLogLogCommandspfMerge in class LettuceConnectiondestinationKey - must not be null.sourceKeys - must not be null.public void watch(byte[]... keys)
RedisTxCommandskeys for modifications during transaction started with RedisTxCommands.multi().watch in interface RedisTxCommandswatch in class LettuceConnectionkeys - must not be null.public void unwatch()
RedisTxCommands#watch(byte[]...) keys.unwatch in interface RedisTxCommandsunwatch in class LettuceConnectionpublic void multi()
RedisTxCommandsRedisTxCommands.exec() or rolled back using RedisTxCommands.discard()
multi in interface RedisTxCommandsmulti in class LettuceConnectionpublic List<String> getConfig(String pattern)
RedisServerCommandspattern from server.getConfig in interface RedisServerCommandsgetConfig in class LettuceConnectionpublic List<String> getConfig(RedisClusterNode node, String pattern)
getConfig in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.getConfig(String)public void setConfig(String param, String value)
RedisServerCommandsparam to value.setConfig in interface RedisServerCommandssetConfig in class LettuceConnectionpublic void setConfig(RedisClusterNode node, String param, String value)
setConfig in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.setConfig(String, String)public void resetConfigStats()
RedisServerCommandsRedisServerCommands.info().resetConfigStats in interface RedisServerCommandsresetConfigStats in class LettuceConnectionpublic void resetConfigStats(RedisClusterNode node)
resetConfigStats in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.resetConfigStats()public Long time()
RedisServerCommandsTIME command.time in interface RedisServerCommandstime in class LettuceConnectionpublic Long time(RedisClusterNode node)
time in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.time()public List<RedisClientInfo> getClientList()
RedisServerCommandsgetClientList in interface RedisServerCommandsgetClientList in class LettuceConnectionList of RedisClientInfo objects.public List<RedisClientInfo> getClientList(RedisClusterNode node)
getClientList in interface RedisClusterConnectionnode - must not be null.RedisServerCommands.getClientList()public Map<RedisClusterNode,Collection<RedisClusterNode>> clusterGetMasterSlaveMap()
RedisClusterCommandsclusterGetMasterSlaveMap in interface RedisClusterCommandspublic void close()
throws DataAccessException
RedisConnectionclose in interface RedisConnectionclose in class LettuceConnectionDataAccessExceptionCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.