K - Key type.V - Value type.public class RedisAdvancedClusterReactiveCommandsImpl<K,V> extends AbstractRedisReactiveCommands<K,V> implements RedisAdvancedClusterReactiveCommands<K,V>
| Constructor and Description |
|---|
RedisAdvancedClusterReactiveCommandsImpl(StatefulRedisClusterConnection<K,V> connection,
RedisCodec<K,V> codec)
Initialize a new connection.
|
RedisAdvancedClusterReactiveCommandsImpl(StatefulRedisClusterConnectionImpl<K,V> connection,
RedisCodec<K,V> codec)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<String> |
clientSetname(K name)
Set the current connection name.
|
Mono<Long> |
clusterCountKeysInSlot(int slot)
Returns the number of keys in the specified Redis Cluster hash
slot. |
Flux<K> |
clusterGetKeysInSlot(int slot,
int count)
Retrieve the list of keys within the
slot. |
Mono<Long> |
dbsize()
Return the number of keys in the selected database.
|
Mono<Long> |
del(Iterable<K> keys) |
Mono<Long> |
del(K... keys)
Delete one or more keys.
|
protected <T> Map<String,org.reactivestreams.Publisher<T>> |
executeOnMasters(Function<RedisClusterReactiveCommands<K,V>,? extends org.reactivestreams.Publisher<T>> function)
Run a command on all available masters,.
|
protected <T> Map<String,org.reactivestreams.Publisher<T>> |
executeOnNodes(Function<RedisClusterReactiveCommands<K,V>,? extends org.reactivestreams.Publisher<T>> function,
Predicate<RedisClusterNode> filter)
Run a command on all available nodes that match
filter. |
Mono<Long> |
exists(Iterable<K> keys) |
Mono<Long> |
exists(K... keys)
Determine how many keys exist.
|
Mono<String> |
flushall()
Remove all keys from all databases.
|
Mono<String> |
flushallAsync()
Remove all keys asynchronously from all databases.
|
Mono<String> |
flushdb()
Remove all keys from the current database.
|
Flux<V> |
georadius(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit)
Retrieve members selected by distance with the center of
longitude and latitude. |
Flux<GeoWithin<V>> |
georadius(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
longitude and latitude. |
Flux<V> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit)
Retrieve members selected by distance with the center of
member. |
Flux<GeoWithin<V>> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
member. |
RedisClusterReactiveCommands<K,V> |
getConnection(String nodeId)
Retrieve a connection to the specified cluster node using the nodeId.
|
RedisClusterReactiveCommands<K,V> |
getConnection(String host,
int port)
Retrieve a connection to the specified cluster node using host and port.
|
StatefulRedisClusterConnection<K,V> |
getStatefulConnection() |
Flux<K> |
keys(K pattern)
Find all keys matching the given pattern.
|
Mono<Long> |
keys(KeyStreamingChannel<K> channel,
K pattern)
Find all keys matching the given pattern.
|
Flux<KeyValue<K,V>> |
mget(Iterable<K> keys) |
Flux<KeyValue<K,V>> |
mget(K... keys)
Get the values of all the given keys.
|
Mono<Long> |
mget(KeyValueStreamingChannel<K,V> channel,
Iterable<K> keys) |
Mono<Long> |
mget(KeyValueStreamingChannel<K,V> channel,
K... keys)
Stream over the values of all the given keys.
|
Mono<String> |
mset(Map<K,V> map)
Set multiple keys to multiple values.
|
Mono<Boolean> |
msetnx(Map<K,V> map)
Set multiple keys to multiple values, only if none of the keys exist.
|
Mono<K> |
randomkey()
Return a random key from the keyspace.
|
Mono<KeyScanCursor<K>> |
scan()
Incrementally iterate the keys space.
|
Mono<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel)
Incrementally iterate the keys space.
|
Mono<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanArgs scanArgs)
Incrementally iterate the keys space.
|
Mono<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanCursor scanCursor)
Incrementally iterate the keys space.
|
Mono<StreamScanCursor> |
scan(KeyStreamingChannel<K> channel,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate the keys space.
|
Mono<KeyScanCursor<K>> |
scan(ScanArgs scanArgs)
Incrementally iterate the keys space.
|
Mono<KeyScanCursor<K>> |
scan(ScanCursor scanCursor)
Incrementally iterate the keys space.
|
Mono<KeyScanCursor<K>> |
scan(ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate the keys space.
|
Mono<String> |
scriptFlush()
Remove all the scripts from the script cache.
|
Mono<String> |
scriptKill()
Kill the script currently in execution.
|
Mono<String> |
scriptLoad(V script)
Load the specified Lua script into the script cache.
|
Mono<Void> |
shutdown(boolean save)
Synchronously save the dataset to disk and then shut down the server.
|
Mono<Long> |
touch(Iterable<K> keys) |
Mono<Long> |
touch(K... keys)
Touch one or more keys.
|
Mono<Long> |
unlink(Iterable<K> keys) |
Mono<Long> |
unlink(K... keys)
Unlink one or more keys (non blocking DEL).
|
append, asking, auth, bgrewriteaof, bgsave, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, blpop, brpop, brpoplpush, bzpopmax, bzpopmin, clientGetname, clientId, clientKill, clientKill, clientList, clientPause, clientUnblock, close, clusterAddSlots, clusterBumpepoch, clusterCountFailureReports, clusterDelSlots, clusterFailover, clusterFlushslots, clusterForget, clusterInfo, clusterKeyslot, clusterMeet, clusterMyId, clusterNodes, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterSlaves, clusterSlots, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, createDissolvingFlux, createFlux, createMono, createMono, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, decr, decrby, digest, discard, dispatch, dispatch, dump, echo, eval, eval, evalsha, evalsha, exec, exists, expire, expireat, expireat, flushCommands, flushdbAsync, geoadd, geoadd, geodist, geohash, geopos, georadius_ro, georadius_ro, georadius, georadiusbymember_ro, georadiusbymember_ro, georadiusbymember, get, getbit, getConnection, getrange, getset, hdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hset, hsetnx, hstrlen, hvals, hvals, incr, incrby, incrbyfloat, info, info, isOpen, lastsave, lindex, linsert, llen, lpop, lpos, lpos, lpos, lpos, lpush, lpushx, lrange, lrange, lrem, lset, ltrim, memoryUsage, mget, migrate, migrate, move, multi, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pfadd, pfadd, pfcount, pfcount, pfmerge, pfmerge, ping, psetex, pttl, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, readOnly, readWrite, rename, renamenx, reset, restore, restore, role, rpop, rpoplpush, rpush, rpushx, sadd, save, scard, scriptExists, sdiff, sdiff, sdiffstore, select, set, set, setAutoFlushCommands, setbit, setex, setnx, setrange, setTimeout, setTimeout, sinter, sinter, sinterstore, sismember, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, smembers, smembers, smove, sort, sort, sort, sort, sortStore, spop, spop, 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, xclaim, xclaim, xdel, xgroupCreate, xgroupCreate, xgroupDelconsumer, xgroupDestroy, xgroupSetid, xinfoConsumers, xinfoGroups, xinfoStream, xlen, xpending, xpending, xpending, xrange, xrange, xread, xread, xreadgroup, xreadgroup, xrevrange, xrevrange, xtrim, xtrim, 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, zunionstoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasking, auth, clusterAddSlots, clusterBumpepoch, clusterCountFailureReports, clusterDelSlots, clusterFailover, clusterFlushslots, clusterForget, clusterInfo, clusterKeyslot, clusterMeet, clusterMyId, clusterNodes, clusterReplicate, clusterReset, clusterSaveconfig, clusterSetConfigEpoch, clusterSetSlotImporting, clusterSetSlotMigrating, clusterSetSlotNode, clusterSetSlotStable, clusterSlaves, clusterSlots, readOnly, readWrite, setTimeout, setTimeoutdispatch, dispatch, echo, flushCommands, isOpen, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, reset, role, setAutoFlushCommands, waitForReplicationgeoadd, geoadd, geodist, geohash, geopos, georadius, georadiusbymemberhdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hset, hsetnx, hstrlen, hvals, hvalspfadd, pfcount, pfmergedump, expire, expireat, expireat, migrate, migrate, move, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pttl, rename, renamenx, restore, restore, sort, sort, sort, sort, sortStore, ttl, typeblpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpos, lpos, lpos, lpos, lpush, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushxdigest, eval, eval, evalsha, evalsha, scriptExistsbgrewriteaof, bgsave, clientGetname, clientId, clientKill, clientKill, clientList, clientPause, clientUnblock, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, debugCrashAndRecover, debugHtstats, debugObject, debugOom, debugReload, debugRestart, debugSdslen, debugSegfault, flushdbAsync, info, info, lastsave, memoryUsage, save, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, timesadd, 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, sunionstorebzpopmax, 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, zunionstorexack, xadd, xadd, xadd, xadd, xclaim, xclaim, xdel, xgroupCreate, xgroupCreate, xgroupDelconsumer, xgroupDestroy, xgroupSetid, xinfoConsumers, xinfoGroups, xinfoStream, xlen, xpending, xpending, xpending, xrange, xrange, xread, xread, xreadgroup, xreadgroup, xrevrange, xrevrange, xtrim, xtrimappend, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, psetex, set, set, setbit, setex, setnx, setrange, stralgoLcs, strlen@Deprecated public RedisAdvancedClusterReactiveCommandsImpl(StatefulRedisClusterConnectionImpl<K,V> connection, RedisCodec<K,V> codec)
RedisAdvancedClusterReactiveCommandsImpl(StatefulRedisClusterConnection, RedisCodec).connection - the stateful connection.codec - Codec used to encode/decode keys and values.public RedisAdvancedClusterReactiveCommandsImpl(StatefulRedisClusterConnection<K,V> connection, RedisCodec<K,V> codec)
connection - the stateful connection.codec - Codec used to encode/decode keys and values.public Mono<String> clientSetname(K name)
RedisServerReactiveCommandsclientSetname in interface RedisServerReactiveCommands<K,V>clientSetname in interface RedisAdvancedClusterReactiveCommands<K,V>clientSetname in class AbstractRedisReactiveCommands<K,V>name - the client name.OK if the connection name was successfully set.RedisServerReactiveCommands.clientSetname(Object)public Mono<Long> clusterCountKeysInSlot(int slot)
RedisClusterReactiveCommandsslot.clusterCountKeysInSlot in interface RedisClusterReactiveCommands<K,V>clusterCountKeysInSlot in class AbstractRedisReactiveCommands<K,V>slot - the slot.public Flux<K> clusterGetKeysInSlot(int slot, int count)
RedisClusterReactiveCommandsslot.clusterGetKeysInSlot in interface RedisClusterReactiveCommands<K,V>clusterGetKeysInSlot in class AbstractRedisReactiveCommands<K,V>slot - the slot.count - maximal number of keys.public Mono<Long> dbsize()
RedisServerReactiveCommandsdbsize in interface RedisServerReactiveCommands<K,V>dbsize in interface RedisAdvancedClusterReactiveCommands<K,V>dbsize in class AbstractRedisReactiveCommands<K,V>RedisServerReactiveCommands.dbsize()public Mono<Long> del(K... keys)
RedisKeyReactiveCommandsdel in interface RedisKeyReactiveCommands<K,V>del in interface RedisAdvancedClusterReactiveCommands<K,V>del in interface RedisClusterReactiveCommands<K,V>del in class AbstractRedisReactiveCommands<K,V>keys - the keys.RedisKeyReactiveCommands.del(Object[])public Mono<Long> del(Iterable<K> keys)
del in class AbstractRedisReactiveCommands<K,V>public Mono<Long> exists(K... keys)
RedisKeyReactiveCommandsexists in interface RedisKeyReactiveCommands<K,V>exists in interface RedisAdvancedClusterReactiveCommands<K,V>exists in class AbstractRedisReactiveCommands<K,V>keys - the keys.public Mono<Long> exists(Iterable<K> keys)
exists in class AbstractRedisReactiveCommands<K,V>public Mono<String> flushall()
RedisServerReactiveCommandsflushall in interface RedisServerReactiveCommands<K,V>flushall in interface RedisAdvancedClusterReactiveCommands<K,V>flushall in class AbstractRedisReactiveCommands<K,V>RedisServerReactiveCommands.flushall()public Mono<String> flushallAsync()
RedisServerReactiveCommandsflushallAsync in interface RedisServerReactiveCommands<K,V>flushallAsync in interface RedisAdvancedClusterReactiveCommands<K,V>flushallAsync in class AbstractRedisReactiveCommands<K,V>RedisServerReactiveCommands.flushallAsync()public Mono<String> flushdb()
RedisServerReactiveCommandsflushdb in interface RedisServerReactiveCommands<K,V>flushdb in interface RedisAdvancedClusterReactiveCommands<K,V>flushdb in class AbstractRedisReactiveCommands<K,V>RedisServerReactiveCommands.flushdb()public Flux<V> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)
RedisGeoReactiveCommandslongitude and latitude.georadius in interface RedisGeoReactiveCommands<K,V>georadius in class AbstractRedisReactiveCommands<K,V>key - the key of the geo set.longitude - the longitude coordinate according to WGS84.latitude - the latitude coordinate according to WGS84.distance - radius distance.unit - distance unit.public Flux<GeoWithin<V>> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
RedisGeoReactiveCommandslongitude and latitude.georadius in interface RedisGeoReactiveCommands<K,V>georadius in class AbstractRedisReactiveCommands<K,V>key - the key of the geo set.longitude - the longitude coordinate according to WGS84.latitude - the latitude coordinate according to WGS84.distance - radius distance.unit - distance unit.geoArgs - args to control the result.GeoWithin contains only fields which were requested by GeoArgs.public Flux<V> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit)
RedisGeoReactiveCommandsmember. The member itself is always contained in the
results.georadiusbymember in interface RedisGeoReactiveCommands<K,V>georadiusbymember in class AbstractRedisReactiveCommands<K,V>key - the key of the geo set.member - reference member.distance - radius distance.unit - distance unit.public Flux<GeoWithin<V>> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
RedisGeoReactiveCommandsmember. The member itself is always contained in the
results.georadiusbymember in interface RedisGeoReactiveCommands<K,V>georadiusbymember in class AbstractRedisReactiveCommands<K,V>key - the key of the geo set.member - reference member.distance - radius distance.unit - distance unit.geoArgs - args to control the result.GeoWithin contains only fields which were requested by GeoArgs.public Flux<K> keys(K pattern)
RedisKeyReactiveCommandskeys in interface RedisKeyReactiveCommands<K,V>keys in interface RedisAdvancedClusterReactiveCommands<K,V>keys in class AbstractRedisReactiveCommands<K,V>pattern - the pattern type: patternkey (pattern).pattern.RedisKeyReactiveCommands.keys(Object)public Mono<Long> keys(KeyStreamingChannel<K> channel, K pattern)
RedisKeyReactiveCommandskeys in interface RedisKeyReactiveCommands<K,V>keys in interface RedisAdvancedClusterReactiveCommands<K,V>keys in class AbstractRedisReactiveCommands<K,V>channel - the channel.pattern - the pattern.pattern.RedisKeyReactiveCommands.keys(KeyStreamingChannel, Object)public Flux<KeyValue<K,V>> mget(K... keys)
RedisStringReactiveCommandsmget in interface RedisStringReactiveCommands<K,V>mget in interface RedisAdvancedClusterReactiveCommands<K,V>mget in interface RedisClusterReactiveCommands<K,V>mget in class AbstractRedisReactiveCommands<K,V>keys - the key.RedisStringReactiveCommands.mget(Object[])public Flux<KeyValue<K,V>> mget(Iterable<K> keys)
mget in class AbstractRedisReactiveCommands<K,V>public Mono<Long> mget(KeyValueStreamingChannel<K,V> channel, K... keys)
RedisStringReactiveCommandsmget in interface RedisStringReactiveCommands<K,V>mget in class AbstractRedisReactiveCommands<K,V>channel - the channel.keys - the keys.public Mono<Long> mget(KeyValueStreamingChannel<K,V> channel, Iterable<K> keys)
mget in class AbstractRedisReactiveCommands<K,V>public Mono<Boolean> msetnx(Map<K,V> map)
RedisStringReactiveCommandsmsetnx in interface RedisStringReactiveCommands<K,V>msetnx in interface RedisAdvancedClusterReactiveCommands<K,V>msetnx in interface RedisClusterReactiveCommands<K,V>msetnx in class AbstractRedisReactiveCommands<K,V>map - the null.1 if the all the keys were set. 0 if no key was set (at least one key already existed).RedisStringReactiveCommands.msetnx(Map)public Mono<String> mset(Map<K,V> map)
RedisStringReactiveCommandsmset in interface RedisStringReactiveCommands<K,V>mset in interface RedisAdvancedClusterReactiveCommands<K,V>mset in interface RedisClusterReactiveCommands<K,V>mset in class AbstractRedisReactiveCommands<K,V>map - the null.OK since MSET can't fail.RedisStringReactiveCommands.mset(Map)public Mono<K> randomkey()
RedisKeyReactiveCommandsrandomkey in interface RedisKeyReactiveCommands<K,V>randomkey in interface RedisAdvancedClusterReactiveCommands<K,V>randomkey in class AbstractRedisReactiveCommands<K,V>null when the database is empty.RedisKeyReactiveCommands.randomkey()public Mono<String> scriptFlush()
RedisScriptingReactiveCommandsscriptFlush in interface RedisScriptingReactiveCommands<K,V>scriptFlush in interface RedisAdvancedClusterReactiveCommands<K,V>scriptFlush in class AbstractRedisReactiveCommands<K,V>RedisScriptingReactiveCommands.scriptFlush()public Mono<String> scriptKill()
RedisScriptingReactiveCommandsscriptKill in interface RedisScriptingReactiveCommands<K,V>scriptKill in interface RedisAdvancedClusterReactiveCommands<K,V>scriptKill in class AbstractRedisReactiveCommands<K,V>RedisScriptingReactiveCommands.scriptKill()public Mono<String> scriptLoad(V script)
RedisScriptingReactiveCommandsscriptLoad in interface RedisScriptingReactiveCommands<K,V>scriptLoad in interface RedisAdvancedClusterReactiveCommands<K,V>scriptLoad in class AbstractRedisReactiveCommands<K,V>script - script content.public Mono<Void> shutdown(boolean save)
RedisServerReactiveCommandsshutdown in interface RedisServerReactiveCommands<K,V>shutdown in interface RedisAdvancedClusterReactiveCommands<K,V>shutdown in class AbstractRedisReactiveCommands<K,V>save - true force save operation.RedisServerReactiveCommands.shutdown(boolean)public Mono<Long> touch(K... keys)
RedisKeyReactiveCommandstouch in interface RedisKeyReactiveCommands<K,V>touch in interface RedisAdvancedClusterReactiveCommands<K,V>touch in class AbstractRedisReactiveCommands<K,V>keys - the keys.public Mono<Long> touch(Iterable<K> keys)
touch in class AbstractRedisReactiveCommands<K,V>public Mono<Long> unlink(K... keys)
RedisKeyReactiveCommandsunlink in interface RedisKeyReactiveCommands<K,V>unlink in interface RedisAdvancedClusterReactiveCommands<K,V>unlink in class AbstractRedisReactiveCommands<K,V>keys - the keys.RedisKeyReactiveCommands.unlink(Object[])public Mono<Long> unlink(Iterable<K> keys)
unlink in class AbstractRedisReactiveCommands<K,V>public RedisClusterReactiveCommands<K,V> getConnection(String nodeId)
RedisAdvancedClusterReactiveCommandsRedisAdvancedClusterReactiveCommands, node-connections do not route commands to other cluster
nodesgetConnection in interface RedisAdvancedClusterReactiveCommands<K,V>nodeId - the node Id.public RedisClusterReactiveCommands<K,V> getConnection(String host, int port)
RedisAdvancedClusterReactiveCommandsRedisAdvancedClusterReactiveCommands, 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 RedisAdvancedClusterReactiveCommands<K,V>host - the host.port - the port.public StatefulRedisClusterConnection<K,V> getStatefulConnection()
getStatefulConnection in interface RedisAdvancedClusterReactiveCommands<K,V>public Mono<KeyScanCursor<K>> scan()
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>RedisKeyReactiveCommands.scan(ScanArgs)public Mono<KeyScanCursor<K>> scan(ScanArgs scanArgs)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>scanArgs - scan arguments.RedisKeyReactiveCommands.scan(ScanArgs)public Mono<KeyScanCursor<K>> scan(ScanCursor scanCursor, ScanArgs scanArgs)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>scanCursor - cursor to resume from a previous scan, must not be null.scanArgs - scan arguments.RedisKeyReactiveCommands.scan(ScanCursor, ScanArgs)public Mono<KeyScanCursor<K>> scan(ScanCursor scanCursor)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>scanCursor - cursor to resume from a previous scan, must not be null.RedisKeyReactiveCommands.scan(ScanCursor)public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>channel - streaming channel that receives a call for every key.RedisKeyReactiveCommands.scan(KeyStreamingChannel)public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanArgs scanArgs)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>channel - streaming channel that receives a call for every key.scanArgs - scan arguments.RedisKeyReactiveCommands.scan(KeyStreamingChannel, ScanArgs)public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<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.RedisKeyReactiveCommands.scan(KeyStreamingChannel, ScanCursor, ScanArgs)public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor)
RedisKeyReactiveCommandsscan in interface RedisKeyReactiveCommands<K,V>scan in interface RedisAdvancedClusterReactiveCommands<K,V>scan in class AbstractRedisReactiveCommands<K,V>channel - streaming channel that receives a call for every key.scanCursor - cursor to resume from a previous scan, must not be null.RedisKeyReactiveCommands.scan(ScanCursor, ScanArgs)protected <T> Map<String,org.reactivestreams.Publisher<T>> executeOnMasters(Function<RedisClusterReactiveCommands<K,V>,? extends org.reactivestreams.Publisher<T>> function)
T - result type.function - function producing the command.protected <T> Map<String,org.reactivestreams.Publisher<T>> executeOnNodes(Function<RedisClusterReactiveCommands<K,V>,? extends org.reactivestreams.Publisher<T>> function, Predicate<RedisClusterNode> filter)
filter.T - result type.function - function producing the command.filter - filter function for the node selection.Copyright © 2020 lettuce.io. All rights reserved.