K - Key type.V - Value type.public class RedisAdvancedClusterAsyncCommandsImpl<K,V> extends AbstractRedisAsyncCommands<K,V> implements RedisAdvancedClusterAsyncCommands<K,V>
| Constructor and Description |
|---|
RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnection<K,V> connection,
RedisCodec<K,V> codec)
Initialize a new connection.
|
RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnection<K,V> connection,
RedisCodec<K,V> codec,
Supplier<JsonParser> parser)
Initialize a new connection.
|
RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnectionImpl<K,V> connection,
RedisCodec<K,V> codec)
Deprecated.
|
RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnectionImpl<K,V> connection,
RedisCodec<K,V> codec,
Supplier<JsonParser> parser)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RedisFuture<String> |
clientSetname(K name)
Set the current connection name.
|
RedisFuture<Long> |
clusterCountKeysInSlot(int slot)
Returns the number of keys in the specified Redis Cluster hash
slot. |
RedisFuture<List<K>> |
clusterGetKeysInSlot(int slot,
int count)
Retrieve the list of keys within the
slot. |
RedisFuture<Long> |
dbsize()
Return the number of keys in the selected database.
|
RedisFuture<Long> |
del(Iterable<K> keys) |
RedisFuture<Long> |
del(K... keys)
Delete one or more keys.
|
protected <T> Map<String,CompletableFuture<T>> |
executeOnNodes(Function<RedisClusterAsyncCommands<K,V>,RedisFuture<T>> function,
Function<RedisClusterNode,Boolean> filter)
Run a command on all available nodes that match
filter. |
protected <T> Map<String,CompletableFuture<T>> |
executeOnUpstream(Function<RedisClusterAsyncCommands<K,V>,RedisFuture<T>> function)
Run a command on all available masters,
|
RedisFuture<Long> |
exists(Iterable<K> keys) |
RedisFuture<Long> |
exists(K... keys)
Determine how many keys exist.
|
RedisFuture<String> |
flushall()
Remove all keys from all databases.
|
RedisFuture<String> |
flushall(FlushMode flushMode)
Remove all keys from all databases using the specified
FlushMode. |
RedisFuture<String> |
flushallAsync()
Remove all keys asynchronously from all databases.
|
RedisFuture<String> |
flushdb()
Remove all keys from the current database.
|
RedisFuture<String> |
flushdb(FlushMode flushMode)
Remove all keys from the current database using the specified
FlushMode. |
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<JsonValue>> |
jsonMGet(JsonPath jsonPath,
K... keys)
Return the values at the specified path from multiple key arguments.
|
RedisFuture<String> |
jsonMSet(List<JsonMsetArgs<K,V>> arguments)
Set or update one or more JSON values according to the specified
JsonMsetArgs
JSON.MSET is atomic, hence, all given additions or updates are either applied or not. |
RedisFuture<List<K>> |
keys(K pattern)
Find all keys matching the given pattern.
|
RedisFuture<Long> |
keys(KeyStreamingChannel<K> channel,
K pattern)
Find all keys matching the given pattern.
|
RedisFuture<List<KeyValue<K,V>>> |
mget(Iterable<K> keys) |
RedisFuture<List<KeyValue<K,V>>> |
mget(K... keys)
Get the values of all the given keys.
|
RedisFuture<Long> |
mget(KeyValueStreamingChannel<K,V> channel,
Iterable<K> keys) |
RedisFuture<Long> |
mget(KeyValueStreamingChannel<K,V> channel,
K... keys)
Stream over the values of all the given keys.
|
RedisFuture<String> |
mset(Map<K,V> map)
Set multiple keys to multiple values.
|
RedisFuture<Boolean> |
msetnx(Map<K,V> map)
Set multiple keys to multiple values, only if none of the keys exist.
|
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
|
protected AsyncNodeSelection<K,V> |
nodes(Predicate<RedisClusterNode> predicate,
ConnectionIntent connectionIntent,
boolean dynamic) |
RedisFuture<K> |
randomkey()
Return a random key from the keyspace.
|
AsyncNodeSelection<K,V> |
readonly(Predicate<RedisClusterNode> predicate)
Select replica nodes by a predicate and keeps a static selection.
|
RedisFuture<KeyScanCursor<K>> |
scan()
Incrementally iterate the keys space.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel)
Incrementally iterate the keys space.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanArgs scanArgs)
Incrementally iterate the keys space.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanCursor scanCursor)
Incrementally iterate the keys space.
|
RedisFuture<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate the keys space.
|
RedisFuture<KeyScanCursor<K>> |
scan(ScanArgs scanArgs)
Incrementally iterate the keys space.
|
RedisFuture<KeyScanCursor<K>> |
scan(ScanCursor scanCursor)
Incrementally iterate the keys space.
|
RedisFuture<KeyScanCursor<K>> |
scan(ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate the keys space.
|
RedisFuture<String> |
scriptFlush()
Remove all the scripts from the script cache.
|
RedisFuture<String> |
scriptKill()
Kill the script currently in execution.
|
RedisFuture<String> |
scriptLoad(byte[] script)
Load the specified Lua script into the script cache.
|
void |
shutdown(boolean save)
Synchronously save the dataset to disk and then shut down the server.
|
RedisFuture<Long> |
touch(Iterable<K> keys) |
RedisFuture<Long> |
touch(K... keys)
Touch one or more keys.
|
RedisFuture<Long> |
unlink(Iterable<K> keys) |
RedisFuture<Long> |
unlink(K... keys)
Unlink one or more keys (non blocking DEL).
|
aclCat, aclCat, aclDeluser, aclDryRun, aclDryRun, aclGenpass, aclGenpass, aclGetuser, aclList, aclLoad, aclLog, aclLog, aclLogReset, aclSave, aclSetuser, aclUsers, aclWhoami, append, asking, auth, auth, auth, auth, bgrewriteaof, bgsave, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, blmove, blmove, blmpop, blmpop, blpop, blpop, brpop, brpop, brpoplpush, brpoplpush, bzmpop, bzmpop, bzmpop, bzmpop, bzpopmax, bzpopmax, bzpopmin, bzpopmin, clientCaching, clientGetname, clientGetredir, clientId, clientInfo, clientKill, clientKill, clientList, clientList, clientNoEvict, clientPause, clientSetinfo, clientTracking, clientTrackinginfo, clientUnblock, clusterAddSlots, clusterAddSlotsRange, clusterBumpepoch, clusterCountFailureReports, clusterDelSlots, clusterDelSlotsRange, clusterFailover, clusterFailover, clusterFlushslots, clusterForget, clusterInfo, clusterKeyslot, clusterLinks, clusterMeet, clusterMyId, clusterMyShardId, clusterNodes, clusterReplicas, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterShards, clusterSlaves, clusterSlots, command, commandCount, commandInfo, commandInfo, configGet, configGet, configResetstat, configRewrite, configSet, configSet, copy, copy, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, decr, decrby, digest, digest, discard, dispatch, dispatch, dispatch, dispatch, dispatch, dump, echo, eval, eval, eval, eval, evalReadOnly, evalReadOnly, evalsha, evalsha, evalshaReadOnly, exec, expire, expire, expire, expire, expireat, expireat, expireat, expireat, expireat, expireat, expiretime, fcall, fcall, fcallReadOnly, fcallReadOnly, flushCommands, flushdbAsync, functionDump, functionFlush, functionKill, functionList, functionList, functionLoad, functionLoad, functionRestore, functionRestore, geoadd, geoadd, geoadd, geoadd, geoadd, geoadd, geodist, geohash, geopos, georadius_ro, georadius_ro, georadius, georadius, georadius, georadiusbymember_ro, georadiusbymember_ro, georadiusbymember, georadiusbymember, georadiusbymember, geosearch, geosearch, geosearchstore, get, getbit, getConnection, getdel, getex, getJsonParser, getrange, getset, hdel, hexists, hexpire, hexpire, hexpire, hexpire, hexpireat, hexpireat, hexpireat, hexpireat, hexpireat, hexpireat, hexpiretime, hget, hgetall, hgetall, hgetdel, hgetdel, hgetex, hgetex, hgetex, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hpersist, hpexpire, hpexpire, hpexpire, hpexpire, hpexpireat, hpexpireat, hpexpireat, hpexpireat, hpexpireat, hpexpireat, hpexpiretime, hpttl, hrandfield, hrandfield, hrandfieldWithvalues, hrandfieldWithvalues, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hset, hset, hsetex, hsetex, hsetnx, hstrlen, httl, hvals, hvals, incr, incrby, incrbyfloat, info, info, isOpen, jsonArrappend, jsonArrappend, jsonArrindex, jsonArrindex, jsonArrinsert, jsonArrlen, jsonArrlen, jsonArrpop, jsonArrpop, jsonArrpop, jsonArrtrim, jsonClear, jsonClear, jsonDel, jsonDel, jsonGet, jsonGet, jsonMerge, jsonNumincrby, jsonObjkeys, jsonObjkeys, jsonObjlen, jsonObjlen, jsonSet, jsonSet, jsonStrappend, jsonStrappend, jsonStrlen, jsonStrlen, jsonToggle, jsonType, jsonType, lastsave, lcs, lindex, linsert, llen, lmove, lmpop, lpop, lpop, lpos, lpos, lpos, lpos, lpush, lpushx, lrange, lrange, lrem, lset, ltrim, memoryUsage, migrate, migrate, move, multi, objectEncoding, objectFreq, objectIdletime, objectRefcount, persist, pexpire, pexpire, pexpire, pexpire, pexpireat, pexpireat, pexpireat, pexpireat, pexpireat, pexpireat, pexpiretime, pfadd, pfcount, pfmerge, ping, psetex, pttl, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, pubsubShardChannels, pubsubShardChannels, pubsubShardNumsub, quit, readOnly, readWrite, rename, renamenx, replicaof, replicaofNoOne, reset, restore, restore, role, rpop, rpop, rpoplpush, rpush, rpushx, sadd, save, scard, scriptExists, scriptFlush, scriptLoad, sdiff, sdiff, sdiffstore, select, set, set, setAutoFlushCommands, setbit, setex, setGet, setGet, setnx, setrange, setTimeout, shutdown, sinter, sinter, sintercard, sintercard, sinterstore, sismember, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, smembers, smembers, smismember, smove, sort, sort, sort, sort, sortReadOnly, sortReadOnly, sortReadOnly, sortReadOnly, sortStore, spop, spop, spublish, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, stralgoLcs, strlen, sunion, sunion, sunionstore, swapdb, time, ttl, type, unwatch, waitForReplication, watch, xack, xadd, xadd, xadd, xadd, xautoclaim, xclaim, xclaim, xdel, xgroupCreate, xgroupCreate, xgroupCreateconsumer, xgroupDelconsumer, xgroupDestroy, xgroupSetid, xinfoConsumers, xinfoGroups, xinfoStream, xlen, xpending, xpending, xpending, xpending, xrange, xrange, xread, xread, xreadgroup, xreadgroup, xrevrange, xrevrange, xtrim, xtrim, xtrim, zadd, zadd, zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zcount, zdiff, zdiffstore, zdiffWithScores, zincrby, zinter, zinter, zintercard, zintercard, zinterstore, zinterstore, zinterWithScores, zinterWithScores, zlexcount, zlexcount, zmpop, zmpop, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrandmember, zrandmember, zrandmemberWithScores, zrandmemberWithScores, 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, zrangestore, zrangestorebylex, zrangestorebyscore, zrangeWithScores, zrangeWithScores, zrank, zrankWithScore, 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, zrevrangestore, zrevrangestorebylex, zrevrangestorebyscore, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zrevrankWithScore, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunion, zunion, zunionstore, zunionstore, zunionWithScores, zunionWithScoresclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitall, masters, replicas, replicas, scriptLoad, slaves, slaves, upstreamasking, auth, auth, clusterAddSlots, clusterAddSlotsRange, clusterBumpepoch, clusterCountFailureReports, clusterDelSlots, clusterDelSlotsRange, clusterFailover, clusterFailover, clusterFlushslots, clusterForget, clusterInfo, clusterKeyslot, clusterLinks, clusterMeet, clusterMyId, clusterMyShardId, clusterNodes, clusterReplicas, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterShards, clusterSlaves, clusterSlots, getJsonParser, readOnly, readWrite, setTimeoutdispatch, dispatch, echo, flushCommands, isOpen, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, pubsubShardChannels, pubsubShardChannels, pubsubShardNumsub, quit, reset, role, setAutoFlushCommands, spublish, waitForReplicationaclCat, aclCat, aclDeluser, aclDryRun, aclDryRun, aclGenpass, aclGenpass, aclGetuser, aclList, aclLoad, aclLog, aclLog, aclLogReset, aclSave, aclSetuser, aclUsers, aclWhoamifcall, fcall, fcallReadOnly, fcallReadOnly, functionDump, functionFlush, functionKill, functionList, functionList, functionLoad, functionLoad, functionRestore, functionRestoregeoadd, geoadd, geoadd, geoadd, geoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymember, geosearch, geosearch, geosearchstorehdel, hexists, hexpire, hexpire, hexpire, hexpire, hexpireat, hexpireat, hexpireat, hexpireat, hexpireat, hexpireat, hexpiretime, hget, hgetall, hgetall, hgetdel, hgetdel, hgetex, hgetex, hgetex, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hpersist, hpexpire, hpexpire, hpexpire, hpexpire, hpexpireat, hpexpireat, hpexpireat, hpexpireat, hpexpireat, hpexpireat, hpexpiretime, hpttl, hrandfield, hrandfield, hrandfieldWithvalues, hrandfieldWithvalues, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hscanNovalues, hset, hset, hsetex, hsetex, hsetnx, hstrlen, httl, hvals, hvalspfadd, pfcount, pfmergecopy, copy, dump, expire, expire, expire, expire, expireat, expireat, expireat, expireat, expireat, expireat, expiretime, migrate, migrate, move, objectEncoding, objectFreq, objectIdletime, objectRefcount, persist, pexpire, pexpire, pexpire, pexpire, pexpireat, pexpireat, pexpireat, pexpireat, pexpireat, pexpireat, pexpiretime, pttl, rename, renamenx, restore, restore, sort, sort, sort, sort, sortReadOnly, sortReadOnly, sortReadOnly, sortReadOnly, sortStore, ttl, typeblmove, blmove, blmpop, blmpop, blpop, blpop, brpop, brpop, brpoplpush, brpoplpush, lindex, linsert, llen, lmove, lmpop, lpop, lpop, lpos, lpos, lpos, lpos, lpush, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpop, rpoplpush, rpush, rpushxdigest, digest, eval, eval, eval, eval, evalReadOnly, evalReadOnly, evalsha, evalsha, evalshaReadOnly, scriptExists, scriptFlushbgrewriteaof, bgsave, clientCaching, clientGetname, clientGetredir, clientId, clientInfo, clientKill, clientKill, clientList, clientList, clientNoEvict, clientPause, clientSetinfo, clientTracking, clientTrackinginfo, clientUnblock, command, commandCount, commandInfo, commandInfo, configGet, configGet, configResetstat, configRewrite, configSet, configSet, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, flushdbAsync, info, info, lastsave, memoryUsage, replicaof, replicaofNoOne, save, shutdown, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, timesadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sintercard, sintercard, sinterstore, sismember, smembers, smembers, smismember, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstorebzmpop, bzmpop, bzmpop, bzmpop, bzpopmax, bzpopmax, bzpopmin, bzpopmin, zadd, zadd, zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zcount, zdiff, zdiffstore, zdiffWithScores, zincrby, zinter, zinter, zintercard, zintercard, zinterstore, zinterstore, zinterWithScores, zinterWithScores, zlexcount, zlexcount, zmpop, zmpop, zmscore, zpopmax, zpopmax, zpopmin, zpopmin, zrandmember, zrandmember, zrandmemberWithScores, zrandmemberWithScores, 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, zrangestore, zrangestorebylex, zrangestorebyscore, zrangeWithScores, zrangeWithScores, zrank, zrankWithScore, 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, zrevrangestore, zrevrangestorebylex, zrevrangestorebyscore, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zrevrankWithScore, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunion, zunion, zunionstore, zunionstore, zunionWithScores, zunionWithScoresxack, xadd, xadd, xadd, xadd, xautoclaim, xclaim, xclaim, xdel, xgroupCreate, xgroupCreate, xgroupCreateconsumer, xgroupDelconsumer, xgroupDestroy, xgroupSetid, xinfoConsumers, xinfoGroups, xinfoStream, xlen, xpending, xpending, xpending, xpending, xrange, xrange, xread, xread, xreadgroup, xreadgroup, xrevrange, xrevrange, xtrim, xtrim, xtrimappend, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, decr, decrby, get, getbit, getdel, getex, getrange, getset, incr, incrby, incrbyfloat, lcs, psetex, set, set, setbit, setex, setGet, setGet, setnx, setrange, stralgoLcs, strlenjsonArrappend, jsonArrappend, jsonArrindex, jsonArrindex, jsonArrinsert, jsonArrlen, jsonArrlen, jsonArrpop, jsonArrpop, jsonArrpop, jsonArrtrim, jsonClear, jsonClear, jsonDel, jsonDel, jsonGet, jsonGet, jsonMerge, jsonNumincrby, jsonObjkeys, jsonObjkeys, jsonObjlen, jsonObjlen, jsonSet, jsonSet, jsonStrappend, jsonStrappend, jsonStrlen, jsonStrlen, jsonToggle, jsonType, jsonType@Deprecated public RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnectionImpl<K,V> connection, RedisCodec<K,V> codec, Supplier<JsonParser> parser)
RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnection, RedisCodec, Supplier).connection - the stateful connectioncodec - Codec used to encode/decode keys and values.parser - the implementation of the JsonParser to use@Deprecated public RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnectionImpl<K,V> connection, RedisCodec<K,V> codec)
RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnection, RedisCodec, Supplier).connection - the stateful connectioncodec - Codec used to encode/decode keys and values.public RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnection<K,V> connection, RedisCodec<K,V> codec, Supplier<JsonParser> parser)
connection - the stateful connectioncodec - Codec used to encode/decode keys and values.parser - the implementation of the JsonParser to usepublic RedisAdvancedClusterAsyncCommandsImpl(StatefulRedisClusterConnection<K,V> connection, RedisCodec<K,V> codec)
connection - the stateful connectioncodec - Codec used to encode/decode keys and values.public RedisFuture<String> clientSetname(K name)
RedisServerAsyncCommandsclientSetname in interface RedisServerAsyncCommands<K,V>clientSetname in interface RedisAdvancedClusterAsyncCommands<K,V>clientSetname in class AbstractRedisAsyncCommands<K,V>name - the client name.OK if the connection name was successfully set.RedisServerAsyncCommands.clientSetname(Object)public RedisFuture<Long> clusterCountKeysInSlot(int slot)
RedisClusterAsyncCommandsslot.clusterCountKeysInSlot in interface RedisClusterAsyncCommands<K,V>clusterCountKeysInSlot in class AbstractRedisAsyncCommands<K,V>slot - the slotpublic RedisFuture<List<K>> clusterGetKeysInSlot(int slot, int count)
RedisClusterAsyncCommandsslot.clusterGetKeysInSlot in interface RedisClusterAsyncCommands<K,V>clusterGetKeysInSlot in class AbstractRedisAsyncCommands<K,V>slot - the slotcount - maximal number of keyspublic RedisFuture<Long> dbsize()
RedisServerAsyncCommandsdbsize in interface RedisServerAsyncCommands<K,V>dbsize in interface RedisAdvancedClusterAsyncCommands<K,V>dbsize in class AbstractRedisAsyncCommands<K,V>RedisServerAsyncCommands.dbsize()public RedisFuture<Long> del(K... keys)
RedisKeyAsyncCommandsdel in interface RedisKeyAsyncCommands<K,V>del in interface RedisAdvancedClusterAsyncCommands<K,V>del in class AbstractRedisAsyncCommands<K,V>keys - the keys.RedisKeyAsyncCommands.del(Object[])public RedisFuture<Long> del(Iterable<K> keys)
del in class AbstractRedisAsyncCommands<K,V>public RedisFuture<Long> exists(K... keys)
RedisKeyAsyncCommandsexists in interface RedisKeyAsyncCommands<K,V>exists in interface RedisAdvancedClusterAsyncCommands<K,V>exists in class AbstractRedisAsyncCommands<K,V>keys - the keys.public RedisFuture<Long> exists(Iterable<K> keys)
exists in class AbstractRedisAsyncCommands<K,V>public RedisFuture<String> flushall()
RedisServerAsyncCommandsflushall in interface RedisServerAsyncCommands<K,V>flushall in interface RedisAdvancedClusterAsyncCommands<K,V>flushall in class AbstractRedisAsyncCommands<K,V>RedisServerAsyncCommands.flushall()public RedisFuture<String> flushall(FlushMode flushMode)
RedisServerAsyncCommandsFlushMode.flushall in interface RedisServerAsyncCommands<K,V>flushall in class AbstractRedisAsyncCommands<K,V>flushMode - the flush mode (sync/async).public RedisFuture<String> flushallAsync()
RedisServerAsyncCommandsflushallAsync in interface RedisServerAsyncCommands<K,V>flushallAsync in interface RedisAdvancedClusterAsyncCommands<K,V>flushallAsync in class AbstractRedisAsyncCommands<K,V>RedisServerAsyncCommands.flushallAsync()public RedisFuture<String> flushdb()
RedisServerAsyncCommandsflushdb in interface RedisServerAsyncCommands<K,V>flushdb in interface RedisAdvancedClusterAsyncCommands<K,V>flushdb in class AbstractRedisAsyncCommands<K,V>RedisServerAsyncCommands.flushdb()public RedisFuture<String> flushdb(FlushMode flushMode)
RedisServerAsyncCommandsFlushMode.flushdb in interface RedisServerAsyncCommands<K,V>flushdb in class AbstractRedisAsyncCommands<K,V>flushMode - the flush mode (sync/async).public RedisFuture<List<K>> keys(K pattern)
RedisKeyAsyncCommandskeys in interface RedisKeyAsyncCommands<K,V>keys in interface RedisAdvancedClusterAsyncCommands<K,V>keys in class AbstractRedisAsyncCommands<K,V>pattern - the pattern type: patternkey (pattern).pattern.RedisKeyAsyncCommands.keys(Object)public RedisFuture<Long> keys(KeyStreamingChannel<K> channel, K pattern)
RedisKeyAsyncCommandskeys in interface RedisKeyAsyncCommands<K,V>keys in interface RedisAdvancedClusterAsyncCommands<K,V>keys in class AbstractRedisAsyncCommands<K,V>channel - the channel.pattern - the pattern.pattern.RedisKeyAsyncCommands.keys(KeyStreamingChannel, Object)public RedisFuture<List<JsonValue>> jsonMGet(JsonPath jsonPath, K... keys)
RedisJsonAsyncCommandsjsonMGet in interface RedisJsonAsyncCommands<K,V>jsonMGet in class AbstractRedisAsyncCommands<K,V>jsonPath - the JsonPath pointing to the value to fetch.keys - the keys holding the JsonValues to fetch.public RedisFuture<List<KeyValue<K,V>>> mget(K... keys)
RedisStringAsyncCommandsmget in interface RedisStringAsyncCommands<K,V>mget in interface RedisAdvancedClusterAsyncCommands<K,V>mget in class AbstractRedisAsyncCommands<K,V>keys - the key.RedisStringAsyncCommands.mget(Object[])public RedisFuture<List<KeyValue<K,V>>> mget(Iterable<K> keys)
mget in class AbstractRedisAsyncCommands<K,V>public RedisFuture<Long> mget(KeyValueStreamingChannel<K,V> channel, K... keys)
RedisStringAsyncCommandsmget in interface RedisStringAsyncCommands<K,V>mget in class AbstractRedisAsyncCommands<K,V>channel - the channel.keys - the keys.public RedisFuture<Long> mget(KeyValueStreamingChannel<K,V> channel, Iterable<K> keys)
mget in class AbstractRedisAsyncCommands<K,V>public RedisFuture<String> jsonMSet(List<JsonMsetArgs<K,V>> arguments)
RedisJsonAsyncCommandsJsonMsetArgs
JSON.MSET is atomic, hence, all given additions or updates are either applied or not. It is not possible for clients to see that some keys were updated while others are unchanged.
A JSON value is a hierarchical structure. If you change a value in a specific path - nested values are affected.
jsonMSet in interface RedisJsonAsyncCommands<K,V>jsonMSet in class AbstractRedisAsyncCommands<K,V>arguments - the JsonMsetArgs specifying the values to change.public RedisFuture<String> mset(Map<K,V> map)
RedisStringAsyncCommandsmset in interface RedisStringAsyncCommands<K,V>mset in interface RedisAdvancedClusterAsyncCommands<K,V>mset in class AbstractRedisAsyncCommands<K,V>map - the map.OK since MSET can't fail.RedisStringAsyncCommands.mset(Map)public RedisFuture<Boolean> msetnx(Map<K,V> map)
RedisStringAsyncCommandsmsetnx in interface RedisStringAsyncCommands<K,V>msetnx in interface RedisAdvancedClusterAsyncCommands<K,V>msetnx in interface RedisClusterAsyncCommands<K,V>msetnx in class AbstractRedisAsyncCommands<K,V>map - the map.1 if the all the keys were set. 0 if no key was set (at least one key already existed).RedisStringAsyncCommands.msetnx(Map)public RedisFuture<K> randomkey()
RedisKeyAsyncCommandsrandomkey in interface RedisKeyAsyncCommands<K,V>randomkey in interface RedisAdvancedClusterAsyncCommands<K,V>randomkey in class AbstractRedisAsyncCommands<K,V>null when the database is empty.RedisKeyAsyncCommands.randomkey()public RedisFuture<String> scriptFlush()
RedisScriptingAsyncCommandsscriptFlush in interface RedisScriptingAsyncCommands<K,V>scriptFlush in interface RedisAdvancedClusterAsyncCommands<K,V>scriptFlush in class AbstractRedisAsyncCommands<K,V>RedisScriptingAsyncCommands.scriptFlush()public RedisFuture<String> scriptKill()
RedisScriptingAsyncCommandsscriptKill in interface RedisScriptingAsyncCommands<K,V>scriptKill in interface RedisAdvancedClusterAsyncCommands<K,V>scriptKill in class AbstractRedisAsyncCommands<K,V>RedisScriptingAsyncCommands.scriptKill()public RedisFuture<String> scriptLoad(byte[] script)
RedisScriptingAsyncCommandsscriptLoad in interface RedisScriptingAsyncCommands<K,V>scriptLoad in interface RedisAdvancedClusterAsyncCommands<K,V>scriptLoad in class AbstractRedisAsyncCommands<K,V>script - script content.public void shutdown(boolean save)
RedisServerAsyncCommandsshutdown in interface RedisServerAsyncCommands<K,V>shutdown in interface RedisAdvancedClusterAsyncCommands<K,V>shutdown in class AbstractRedisAsyncCommands<K,V>save - true force save operation.RedisServerAsyncCommands.shutdown(boolean)public RedisFuture<Long> touch(K... keys)
RedisKeyAsyncCommandstouch in interface RedisKeyAsyncCommands<K,V>touch in interface RedisAdvancedClusterAsyncCommands<K,V>touch in class AbstractRedisAsyncCommands<K,V>keys - the keys.public RedisFuture<Long> touch(Iterable<K> keys)
touch in class AbstractRedisAsyncCommands<K,V>public RedisFuture<Long> unlink(K... keys)
RedisKeyAsyncCommandsunlink in interface RedisKeyAsyncCommands<K,V>unlink in interface RedisAdvancedClusterAsyncCommands<K,V>unlink in class AbstractRedisAsyncCommands<K,V>keys - the keys.RedisKeyAsyncCommands.unlink(Object[])public RedisFuture<Long> unlink(Iterable<K> keys)
unlink in class AbstractRedisAsyncCommands<K,V>public RedisClusterAsyncCommands<K,V> getConnection(String nodeId)
RedisAdvancedClusterAsyncCommandsRedisAdvancedClusterAsyncCommands, node-connections do not route commands to other cluster
nodesgetConnection in interface RedisAdvancedClusterAsyncCommands<K,V>nodeId - the node Idpublic RedisClusterAsyncCommands<K,V> getConnection(String host, int port)
RedisAdvancedClusterAsyncCommandsRedisAdvancedClusterAsyncCommands, 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 RedisAdvancedClusterAsyncCommands<K,V>host - the hostport - the portpublic StatefulRedisClusterConnection<K,V> getStatefulConnection()
getStatefulConnection in interface RedisAdvancedClusterAsyncCommands<K,V>public AsyncNodeSelection<K,V> nodes(Predicate<RedisClusterNode> predicate)
RedisAdvancedClusterAsyncCommandsNodeSelectionSupport does
not change when the cluster view changes.nodes in interface RedisAdvancedClusterAsyncCommands<K,V>predicate - Predicate to filter nodespredicatepublic AsyncNodeSelection<K,V> readonly(Predicate<RedisClusterNode> predicate)
RedisAdvancedClusterAsyncCommandsNodeSelectionSupport does not change when the cluster view changes.readonly in interface RedisAdvancedClusterAsyncCommands<K,V>predicate - Predicate to filter nodespredicatepublic AsyncNodeSelection<K,V> nodes(Predicate<RedisClusterNode> predicate, boolean dynamic)
RedisAdvancedClusterAsyncCommandsnodes in interface RedisAdvancedClusterAsyncCommands<K,V>predicate - Predicate to filter nodesdynamic - Defines, whether the set of nodes within the NodeSelectionSupport can change when the cluster view
changes.predicateprotected AsyncNodeSelection<K,V> nodes(Predicate<RedisClusterNode> predicate, ConnectionIntent connectionIntent, boolean dynamic)
public RedisFuture<KeyScanCursor<K>> scan()
RedisKeyAsyncCommandsscan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>RedisKeyAsyncCommands.scan()public RedisFuture<KeyScanCursor<K>> scan(ScanArgs scanArgs)
RedisKeyAsyncCommandsKeyScanArgs to specify SCAN-specific arguments.scan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>scanArgs - scan arguments.KeyScanArgspublic RedisFuture<KeyScanCursor<K>> scan(ScanCursor scanCursor, ScanArgs scanArgs)
RedisKeyAsyncCommandsKeyScanArgs to specify SCAN-specific arguments.scan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>scanCursor - cursor to resume from a previous scan, must not be null.scanArgs - scan arguments.KeyScanArgspublic RedisFuture<KeyScanCursor<K>> scan(ScanCursor scanCursor)
RedisKeyAsyncCommandsscan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>scanCursor - cursor to resume from a previous scan, must not be null.RedisKeyAsyncCommands.scan(ScanCursor)public RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel)
RedisKeyAsyncCommandsscan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>channel - streaming channel that receives a call for every key.RedisKeyAsyncCommands.scan(KeyStreamingChannel)public RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanArgs scanArgs)
RedisKeyAsyncCommandsKeyScanArgs to specify SCAN-specific arguments.scan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>channel - streaming channel that receives a call for every key.scanArgs - scan arguments.KeyScanArgspublic RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)
RedisKeyAsyncCommandsKeyScanArgs to specify SCAN-specific arguments.scan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>channel - streaming channel that receives a call for every key.scanCursor - cursor to resume from a previous scan, must not be null.scanArgs - scan arguments.KeyScanArgspublic RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor)
RedisKeyAsyncCommandsscan in interface RedisKeyAsyncCommands<K,V>scan in interface RedisAdvancedClusterAsyncCommands<K,V>scan in class AbstractRedisAsyncCommands<K,V>channel - streaming channel that receives a call for every key.scanCursor - cursor to resume from a previous scan, must not be null.RedisKeyAsyncCommands.scan(ScanCursor, ScanArgs)protected <T> Map<String,CompletableFuture<T>> executeOnUpstream(Function<RedisClusterAsyncCommands<K,V>,RedisFuture<T>> function)
T - result typefunction - function producing the commandprotected <T> Map<String,CompletableFuture<T>> executeOnNodes(Function<RedisClusterAsyncCommands<K,V>,RedisFuture<T>> function, Function<RedisClusterNode,Boolean> filter)
filter.T - result typefunction - function producing the commandfilter - filter function for the node selectionCopyright © 2025 lettuce.io. All rights reserved.