public interface RedisAdvancedClusterAsyncCommands<K,V> extends RedisClusterAsyncCommands<K,V>, RedisAdvancedClusterAsyncConnection<K,V>
Modifier and Type | Method and Description |
---|---|
default AsyncNodeSelection<K,V> |
all()
Select all known cluster nodes.
|
RedisFuture<String> |
clientSetname(K name)
Set the current connection name on all cluster nodes with pipelining.
|
RedisFuture<Long> |
dbsize()
Return the number of keys in the selected database on all cluster masters.
|
RedisFuture<Long> |
del(K... keys)
Delete one or more keys with pipelining.
|
RedisFuture<Long> |
exists(K... keys)
Determine how many keys exist with pipelining.
|
RedisFuture<String> |
flushall()
Remove all keys from all databases on all cluster masters with pipelining.
|
RedisFuture<String> |
flushdb()
Remove all keys from the current database on all cluster masters with pipelining.
|
RedisClusterAsyncCommands<K,V> |
getConnection(String nodeId)
Retrieve a connection to the specified cluster node using the nodeId.
|
RedisClusterAsyncCommands<K,V> |
getConnection(String host,
int port)
Retrieve a connection to the specified cluster node using host and port.
|
StatefulRedisClusterConnection<K,V> |
getStatefulConnection() |
RedisFuture<List<K>> |
keys(K pattern)
Find all keys matching the given pattern on all cluster masters.
|
RedisFuture<Long> |
keys(KeyStreamingChannel<K> channel,
K pattern)
Find all keys matching the given pattern on all cluster masters.
|
default AsyncNodeSelection<K,V> |
masters()
Select all masters.
|
RedisFuture<List<V>> |
mget(K... keys)
Get the values of all the given keys with pipelining.
|
RedisFuture<String> |
mset(Map<K,V> map)
Set multiple keys to multiple values with pipelining.
|
RedisFuture<Boolean> |
msetnx(Map<K,V> map)
Set multiple keys to multiple values, only if none of the keys exist with pipelining.
|
AsyncNodeSelection<K,V> |
nodes(Predicate<RedisClusterNode> predicate)
Select nodes by a predicate and keeps a static selection.
|
AsyncNodeSelection<K,V> |
nodes(Predicate<RedisClusterNode> predicate,
boolean dynamic)
Select nodes by a predicate
|
RedisFuture<V> |
randomkey()
Return a random key from the keyspace on a random master.
|
AsyncNodeSelection<K,V> |
readonly(Predicate<RedisClusterNode> predicate)
Select slave nodes by a predicate and keeps a static selection.
|
RedisFuture<KeyScanCursor<K>> |
scan()
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanArgs scanArgs)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanCursor scanCursor)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<KeyScanCursor<K>> |
scan(ScanArgs scanArgs)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<KeyScanCursor<K>> |
scan(ScanCursor scanCursor)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<KeyScanCursor<K>> |
scan(ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate the keys space over the whole Cluster.
|
RedisFuture<String> |
scriptFlush()
Remove all the scripts from the script cache on all cluster nodes.
|
RedisFuture<String> |
scriptKill()
Kill the script currently in execution on all cluster nodes.
|
RedisFuture<String> |
scriptLoad(V script)
Load the specified Lua script into the script cache on all cluster nodes.
|
void |
shutdown(boolean save)
Synchronously save the dataset to disk and then shut down all nodes of the cluster.
|
default AsyncNodeSelection<K,V> |
slaves()
Select all slaves.
|
default AsyncNodeSelection<K,V> |
slaves(Predicate<RedisClusterNode> predicate)
Select all slaves.
|
RedisFuture<Long> |
touch(K... keys)
Touch one or more keys with pipelining.
|
RedisFuture<Long> |
unlink(K... keys)
Unlink one or more keys with pipelining.
|
asking, auth, clusterAddSlots, clusterBumpepoch, clusterCountFailureReports, clusterCountKeysInSlot, clusterDelSlots, clusterFailover, clusterFlushslots, clusterForget, clusterGetKeysInSlot, clusterInfo, clusterKeyslot, clusterMeet, clusterMyId, clusterNodes, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterSlaves, clusterSlots, readOnly, readWrite, setTimeout
geoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymember
hdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hsetnx, hstrlen, hvals, hvals
pfadd, pfcount, pfmerge
dump, expire, expireat, expireat, migrate, migrate, move, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pttl, rename, renamenx, restore, restore, sort, sort, sort, sort, sortStore, ttl, type
blpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpush, lpushx, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, rpushx
digest, eval, eval, evalsha, evalsha, scriptExists
bgrewriteaof, bgsave, clientGetname, clientKill, clientKill, clientList, clientPause, clientUnblock, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, flushallAsync, flushdbAsync, info, info, lastsave, save, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, sync, time
sadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sinterstore, sismember, smembers, smembers, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstore
bzpopmax, bzpopmin, zadd, zadd, zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zcount, zincrby, zinterstore, zinterstore, zlexcount, zlexcount, zpopmax, zpopmax, zpopmin, zpopmin, zrange, zrange, zrangebylex, zrangebylex, zrangebylex, zrangebylex, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangeWithScores, zrangeWithScores, zrank, zrem, zremrangebylex, zremrangebylex, zremrangebyrank, zremrangebyscore, zremrangebyscore, zremrangebyscore, zrevrange, zrevrange, zrevrangebylex, zrevrangebylex, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunionstore, zunionstore
xack, xadd, xadd, xadd, xadd, xclaim, xclaim, xdel, xgroupCreate, xgroupDelconsumer, xgroupDestroy, xgroupSetid, xlen, xpending, xpending, xpending, xrange, xrange, xread, xread, xreadgroup, xreadgroup, xrevrange, xrevrange, xtrim, xtrim
append, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, psetex, set, set, setbit, setex, setnx, setrange, strlen
discard, exec, multi, unwatch, watch
hdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hsetnx, hstrlen, hvals, hvals
dump, exists, expire, expireat, expireat, migrate, migrate, move, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pttl, rename, renamenx, restore, sort, sort, sort, sort, sortStore, ttl, type
append, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, psetex, set, set, setbit, setex, setnx, setrange, strlen
blpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpush, lpushx, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, rpushx
sadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sinterstore, sismember, smembers, smembers, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstore
zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zincrby, zinterstore, zinterstore, zlexcount, zrange, zrange, zrangebylex, zrangebylex, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangeWithScores, zrangeWithScores, zrank, zrem, zremrangebylex, zremrangebyrank, zremrangebyscore, zremrangebyscore, zrevrange, zrevrange, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunionstore, zunionstore
eval, eval, evalsha, evalsha, scriptExists
bgrewriteaof, bgsave, clientGetname, clientKill, clientKill, clientList, clientPause, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, debugHtstats, debugObject, debugOom, debugSegfault, flushallAsync, flushdbAsync, info, info, lastsave, save, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, sync, time
pfadd, pfcount, pfmerge
geoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymember
close, digest, discard, dispatch, dispatch, echo, exec, flushCommands, isOpen, multi, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, role, setAutoFlushCommands, unwatch, waitForReplication, watch
reset
RedisClusterAsyncCommands<K,V> getConnection(String nodeId)
RedisAdvancedClusterAsyncCommands
, node-connections do not route commands to other cluster
nodesgetConnection
in interface RedisAdvancedClusterAsyncConnection<K,V>
nodeId
- the node IdRedisClusterAsyncCommands<K,V> getConnection(String host, int port)
RedisAdvancedClusterAsyncCommands
, node-connections do not route commands to other cluster nodes. Host and port
connections are verified by default for cluster membership, see
ClusterClientOptions.isValidateClusterNodeMembership()
.getConnection
in interface RedisAdvancedClusterAsyncConnection<K,V>
host
- the hostport
- the portStatefulRedisClusterConnection<K,V> getStatefulConnection()
getStatefulConnection
in interface RedisAdvancedClusterAsyncConnection<K,V>
default AsyncNodeSelection<K,V> masters()
default AsyncNodeSelection<K,V> slaves()
default AsyncNodeSelection<K,V> slaves(Predicate<RedisClusterNode> predicate)
predicate
- Predicate to filter nodesdefault AsyncNodeSelection<K,V> all()
AsyncNodeSelection<K,V> readonly(Predicate<RedisClusterNode> predicate)
NodeSelectionSupport
does not change when the cluster view changes.predicate
- Predicate to filter nodespredicate
AsyncNodeSelection<K,V> nodes(Predicate<RedisClusterNode> predicate)
NodeSelectionSupport
does
not change when the cluster view changes.predicate
- Predicate to filter nodespredicate
AsyncNodeSelection<K,V> nodes(Predicate<RedisClusterNode> predicate, boolean dynamic)
predicate
- Predicate to filter nodesdynamic
- Defines, whether the set of nodes within the NodeSelectionSupport
can change when the cluster view
changes.predicate
RedisFuture<Long> del(K... keys)
del
in interface RedisClusterAsyncCommands<K,V>
del
in interface RedisKeyAsyncCommands<K,V>
del
in interface RedisKeysAsyncConnection<K,V>
keys
- the keysRedisKeyAsyncCommands.del(Object[])
RedisFuture<Long> unlink(K... keys)
unlink
in interface RedisKeyAsyncCommands<K,V>
unlink
in interface RedisKeysAsyncConnection<K,V>
keys
- the keysRedisKeyAsyncCommands.unlink(Object[])
RedisFuture<Long> exists(K... keys)
exists
in interface RedisKeyAsyncCommands<K,V>
exists
in interface RedisKeysAsyncConnection<K,V>
keys
- the keysRedisFuture<List<V>> mget(K... keys)
mget
in interface RedisClusterAsyncCommands<K,V>
mget
in interface RedisStringAsyncCommands<K,V>
mget
in interface RedisStringsAsyncConnection<K,V>
keys
- the keyRedisStringAsyncCommands.mget(Object[])
RedisFuture<String> mset(Map<K,V> map)
mset
in interface RedisClusterAsyncCommands<K,V>
mset
in interface RedisStringAsyncCommands<K,V>
mset
in interface RedisStringsAsyncConnection<K,V>
map
- the mapOK
since MSET
can't fail.RedisStringAsyncCommands.mset(Map)
RedisFuture<Boolean> msetnx(Map<K,V> map)
msetnx
in interface RedisClusterAsyncCommands<K,V>
msetnx
in interface RedisStringAsyncCommands<K,V>
msetnx
in interface RedisStringsAsyncConnection<K,V>
map
- the null1
if the all the keys were set. 0
if no key was set (at least one key already existed).RedisStringAsyncCommands.msetnx(Map)
RedisFuture<String> clientSetname(K name)
clientSetname
in interface RedisServerAsyncCommands<K,V>
clientSetname
in interface RedisServerAsyncConnection<K,V>
name
- the client nameOK
if the connection name was successfully set.RedisServerAsyncCommands.clientSetname(Object)
RedisFuture<String> flushall()
flushall
in interface RedisServerAsyncCommands<K,V>
flushall
in interface RedisServerAsyncConnection<K,V>
RedisServerAsyncCommands.flushall()
RedisFuture<String> flushdb()
flushdb
in interface RedisServerAsyncCommands<K,V>
flushdb
in interface RedisServerAsyncConnection<K,V>
RedisServerAsyncCommands.flushdb()
RedisFuture<Long> dbsize()
dbsize
in interface RedisServerAsyncCommands<K,V>
dbsize
in interface RedisServerAsyncConnection<K,V>
RedisServerAsyncCommands.dbsize()
RedisFuture<List<K>> keys(K pattern)
keys
in interface RedisKeyAsyncCommands<K,V>
keys
in interface RedisKeysAsyncConnection<K,V>
pattern
- the pattern type: patternkey (pattern)pattern
.RedisKeyAsyncCommands.keys(Object)
RedisFuture<Long> keys(KeyStreamingChannel<K> channel, K pattern)
keys
in interface RedisKeyAsyncCommands<K,V>
keys
in interface RedisKeysAsyncConnection<K,V>
channel
- the channelpattern
- the patternpattern
.RedisKeyAsyncCommands.keys(KeyStreamingChannel, Object)
RedisFuture<V> randomkey()
randomkey
in interface RedisKeyAsyncCommands<K,V>
randomkey
in interface RedisKeysAsyncConnection<K,V>
RedisKeyAsyncCommands.randomkey()
RedisFuture<String> scriptFlush()
scriptFlush
in interface RedisScriptingAsyncCommands<K,V>
scriptFlush
in interface RedisScriptingAsyncConnection<K,V>
RedisScriptingAsyncCommands.scriptFlush()
RedisFuture<String> scriptKill()
scriptKill
in interface RedisScriptingAsyncCommands<K,V>
scriptKill
in interface RedisScriptingAsyncConnection<K,V>
RedisScriptingAsyncCommands.scriptKill()
RedisFuture<String> scriptLoad(V script)
scriptLoad
in interface RedisScriptingAsyncCommands<K,V>
scriptLoad
in interface RedisScriptingAsyncConnection<K,V>
script
- script contentvoid shutdown(boolean save)
shutdown
in interface RedisServerAsyncCommands<K,V>
shutdown
in interface RedisServerAsyncConnection<K,V>
save
- true force save operationRedisServerAsyncCommands.shutdown(boolean)
RedisFuture<KeyScanCursor<K>> scan()
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
RedisKeyAsyncCommands.scan()
RedisFuture<KeyScanCursor<K>> scan(ScanArgs scanArgs)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
scanArgs
- scan argumentsRedisKeyAsyncCommands.scan(ScanArgs)
RedisFuture<KeyScanCursor<K>> scan(ScanCursor scanCursor, ScanArgs scanArgs)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
scanCursor
- cursor to resume the scan. It's required to reuse the scanCursor
instance from the previous
scan()
call.scanArgs
- scan argumentsRedisKeyAsyncCommands.scan(ScanCursor, ScanArgs)
RedisFuture<KeyScanCursor<K>> scan(ScanCursor scanCursor)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
scanCursor
- cursor to resume the scan. It's required to reuse the scanCursor
instance from the previous
scan()
call.RedisKeyAsyncCommands.scan(ScanCursor)
RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
channel
- streaming channel that receives a call for every keyRedisKeyAsyncCommands.scan(KeyStreamingChannel)
RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanArgs scanArgs)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
channel
- streaming channel that receives a call for every keyscanArgs
- scan argumentsRedisKeyAsyncCommands.scan(KeyStreamingChannel, ScanArgs)
RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
channel
- streaming channel that receives a call for every keyscanCursor
- cursor to resume the scan. It's required to reuse the scanCursor
instance from the previous
scan()
call.scanArgs
- scan argumentsRedisKeyAsyncCommands.scan(KeyStreamingChannel, ScanCursor, ScanArgs)
RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor)
scan
in interface RedisKeyAsyncCommands<K,V>
scan
in interface RedisKeysAsyncConnection<K,V>
channel
- streaming channel that receives a call for every keyscanCursor
- cursor to resume the scan. It's required to reuse the scanCursor
instance from the previous
scan()
call.RedisKeyAsyncCommands.scan(ScanCursor, ScanArgs)
RedisFuture<Long> touch(K... keys)
touch
in interface RedisKeyAsyncCommands<K,V>
touch
in interface RedisKeysAsyncConnection<K,V>
keys
- the keysCopyright © 2018 lettuce.io. All rights reserved.