K
- Key type.V
- Value type.public abstract class AbstractRedisReactiveCommands<K,V> extends Object implements RedisAclReactiveCommands<K,V>, RedisHashReactiveCommands<K,V>, RedisKeyReactiveCommands<K,V>, RedisStringReactiveCommands<K,V>, RedisListReactiveCommands<K,V>, RedisSetReactiveCommands<K,V>, RedisSortedSetReactiveCommands<K,V>, RedisScriptingReactiveCommands<K,V>, RedisServerReactiveCommands<K,V>, RedisHLLReactiveCommands<K,V>, BaseRedisReactiveCommands<K,V>, RedisTransactionalReactiveCommands<K,V>, RedisGeoReactiveCommands<K,V>, RedisClusterReactiveCommands<K,V>, RedisJsonReactiveCommands<K,V>
Constructor and Description |
---|
AbstractRedisReactiveCommands(StatefulConnection<K,V> connection,
RedisCodec<K,V> codec,
Mono<JsonParser> parser)
Initialize a new instance.
|
Modifier and Type | Method and Description |
---|---|
Mono<Set<AclCategory>> |
aclCat()
The command shows the available ACL categories if called without arguments.
|
Mono<Set<CommandType>> |
aclCat(AclCategory category)
The command shows all the Redis commands in the specified category.
|
Mono<Long> |
aclDeluser(String... usernames)
Delete all the specified ACL users and terminate all the connections that are authenticated with such users.
|
Mono<String> |
aclDryRun(String username,
RedisCommand<K,V,?> command)
Simulate the execution of a given command by a given user.
|
Mono<String> |
aclDryRun(String username,
String command,
String... args)
Simulate the execution of a given command by a given user.
|
Mono<String> |
aclGenpass()
The command generates a password.
|
Mono<String> |
aclGenpass(int bits)
The command generates a password.
|
Mono<List<Object>> |
aclGetuser(String username)
The command returns all the rules defined for an existing ACL user.
|
Flux<String> |
aclList()
The command shows the currently active ACL rules in the Redis server.
|
Mono<String> |
aclLoad()
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will reload the ACLs
from the file, replacing all the current ACL rules with the ones defined in the file.
|
Flux<Map<String,Object>> |
aclLog()
The command shows a list of recent ACL security events.
|
Flux<Map<String,Object>> |
aclLog(int count)
The command shows a list of recent ACL security events.
|
Mono<String> |
aclLogReset()
The command clears ACL security events.
|
Mono<String> |
aclSave()
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will save the currently
defined ACLs from the server memory to the ACL file.
|
Mono<String> |
aclSetuser(String username,
AclSetuserArgs args)
Create an ACL user with the specified rules or modify the rules of an existing user.
|
Flux<String> |
aclUsers()
The command shows a list of all the usernames of the currently configured users in the Redis ACL system.
|
Mono<String> |
aclWhoami()
The command shows a list of all the usernames of the currently configured users in the Redis ACL system.
|
Mono<Long> |
append(K key,
V value)
Append a value to a key.
|
Mono<String> |
asking()
The asking command is required after a
-ASK redirection. |
Mono<String> |
auth(CharSequence password)
Authenticate to the server.
|
Mono<String> |
auth(String username,
CharSequence password)
Authenticate to the server with username and password.
|
Mono<String> |
bgrewriteaof()
Asynchronously rewrite the append-only file.
|
Mono<String> |
bgsave()
Asynchronously save the dataset to disk.
|
Mono<Long> |
bitcount(K key)
Count set bits in a string.
|
Mono<Long> |
bitcount(K key,
long start,
long end)
Count set bits in a string.
|
Flux<Value<Long>> |
bitfield(K key,
BitFieldArgs args)
Execute
BITFIELD with its subcommands. |
Mono<Long> |
bitopAnd(K destination,
K... keys)
Perform bitwise AND between strings.
|
Mono<Long> |
bitopNot(K destination,
K source)
Perform bitwise NOT between strings.
|
Mono<Long> |
bitopOr(K destination,
K... keys)
Perform bitwise OR between strings.
|
Mono<Long> |
bitopXor(K destination,
K... keys)
Perform bitwise XOR between strings.
|
Mono<Long> |
bitpos(K key,
boolean state)
Find first bit set or clear in a string.
|
Mono<Long> |
bitpos(K key,
boolean state,
long start)
Find first bit set or clear in a string.
|
Mono<Long> |
bitpos(K key,
boolean state,
long start,
long end)
Find first bit set or clear in a string.
|
Mono<V> |
blmove(K source,
K destination,
LMoveArgs args,
double timeout)
Atomically returns and removes the first/last element (head/tail depending on the where from argument) of the list stored
at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list
stored at destination.
|
Mono<V> |
blmove(K source,
K destination,
LMoveArgs args,
long timeout)
Atomically returns and removes the first/last element (head/tail depending on the where from argument) of the list stored
at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list
stored at destination.
|
Mono<KeyValue<K,List<V>>> |
blmpop(double timeout,
LMPopArgs args,
K... keys)
Remove and get the first/last elements in a list, or block until one is available.
|
Mono<KeyValue<K,List<V>>> |
blmpop(long timeout,
LMPopArgs args,
K... keys)
Remove and get the first/last elements in a list, or block until one is available.
|
Mono<KeyValue<K,V>> |
blpop(double timeout,
K... keys)
Remove and get the first element in a list, or block until one is available.
|
Mono<KeyValue<K,V>> |
blpop(long timeout,
K... keys)
Remove and get the first element in a list, or block until one is available.
|
Mono<KeyValue<K,V>> |
brpop(double timeout,
K... keys)
Remove and get the last element in a list, or block until one is available.
|
Mono<KeyValue<K,V>> |
brpop(long timeout,
K... keys)
Remove and get the last element in a list, or block until one is available.
|
Mono<V> |
brpoplpush(double timeout,
K source,
K destination)
Pop a value from a list, push it to another list and return it; or block until one is available.
|
Mono<V> |
brpoplpush(long timeout,
K source,
K destination)
Pop a value from a list, push it to another list and return it; or block until one is available.
|
Mono<KeyValue<K,List<ScoredValue<V>>>> |
bzmpop(double timeout,
int count,
ZPopArgs args,
K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
bzmpop(double timeout,
ZPopArgs args,
K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.
|
Mono<KeyValue<K,List<ScoredValue<V>>>> |
bzmpop(long timeout,
long count,
ZPopArgs args,
K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
bzmpop(long timeout,
ZPopArgs args,
K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
bzpopmax(double timeout,
K... keys)
Removes and returns a member with the highest scores in the sorted set stored at one of the keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
bzpopmax(long timeout,
K... keys)
Removes and returns a member with the highest scores in the sorted set stored at one of the keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
bzpopmin(double timeout,
K... keys)
Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
bzpopmin(long timeout,
K... keys)
Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.
|
Mono<String> |
clientCaching(boolean enabled)
Control tracking of keys in the context of server-assisted client cache invalidation.
|
Mono<K> |
clientGetname()
Get the current connection name.
|
Mono<Long> |
clientGetredir()
Returns the client ID we are redirecting our tracking notifications to.
|
Mono<Long> |
clientId()
Get the id of the current connection.
|
Mono<String> |
clientInfo()
Get the list of the current client connection.
|
Mono<Long> |
clientKill(KillArgs killArgs)
Kill connections of clients which are filtered by
killArgs . |
Mono<String> |
clientKill(String addr)
Kill the connection of a client identified by ip:port.
|
Mono<String> |
clientList()
Get the list of client connections.
|
Mono<String> |
clientList(ClientListArgs clientListArgs)
Get the list of client connections which are filtered by
clientListArgs . |
Mono<String> |
clientNoEvict(boolean on)
Sets the client eviction mode for the current connection.
|
Mono<String> |
clientPause(long timeout)
Stop processing commands from clients for some time.
|
Mono<String> |
clientSetinfo(String key,
String value)
Assign various info attributes to the current connection.
|
Mono<String> |
clientSetname(K name)
Set the current connection name.
|
Mono<String> |
clientTracking(TrackingArgs args)
Enables the tracking feature of the Redis server, that is used for server assisted client side caching.
|
Mono<TrackingInfo> |
clientTrackinginfo()
Returns information about the current client connection's use of the server assisted client side caching feature.
|
Mono<Long> |
clientUnblock(long id,
UnblockType type)
Unblock the specified blocked client.
|
void |
close() |
Mono<String> |
clusterAddSlots(int... slots)
Adds slots to the cluster node.
|
Mono<String> |
clusterAddSlotsRange(Range<Integer>... ranges)
Takes a list of slot ranges (specified by start and end slots) to assign to the node.
|
Mono<String> |
clusterBumpepoch()
Generate a new config epoch, incrementing the current epoch, assign the new epoch to this node, WITHOUT any consensus and
persist the configuration on disk before sending packets with the new configuration.
|
Mono<Long> |
clusterCountFailureReports(String nodeId)
Returns the number of failure reports for the specified node.
|
Mono<Long> |
clusterCountKeysInSlot(int slot)
Returns the number of keys in the specified Redis Cluster hash
slot . |
Mono<String> |
clusterDelSlots(int... slots)
Removes slots from the cluster node.
|
Mono<String> |
clusterDelSlotsRange(Range<Integer>... ranges)
Takes a list of slot ranges (specified by start and end slots) to remove to the node.
|
Mono<String> |
clusterFailover(boolean force)
Failover a cluster node.
|
Mono<String> |
clusterFailover(boolean force,
boolean takeOver)
Failover a cluster node.
|
Mono<String> |
clusterFlushslots()
Delete all the slots associated with the specified node.
|
Mono<String> |
clusterForget(String nodeId)
Disallow connections and remove the cluster node from the cluster.
|
Flux<K> |
clusterGetKeysInSlot(int slot,
int count)
Retrieve the list of keys within the
slot . |
Mono<String> |
clusterInfo()
Get information and statistics about the cluster viewed by the current node.
|
Mono<Long> |
clusterKeyslot(K key)
Returns an integer identifying the hash slot the specified key hashes to.
|
Mono<List<Map<String,Object>>> |
clusterLinks()
Retrieves information about the TCP links between nodes in a Redis Cluster.
|
Mono<String> |
clusterMeet(String ip,
int port)
Meet another cluster node to include the node into the cluster.
|
Mono<String> |
clusterMyId()
Obtain the nodeId for the currently connected node.
|
Mono<String> |
clusterMyShardId()
Obtain the shard ID for the currently connected node.
|
Mono<String> |
clusterNodes()
Obtain details about all cluster nodes.
|
Flux<String> |
clusterReplicas(String nodeId)
List replicas for a certain node identified by its
nodeId . |
Mono<String> |
clusterReplicate(String nodeId)
Turn this node into a replica of the node with the id
nodeId . |
Mono<String> |
clusterReset(boolean hard)
Reset a node performing a soft or hard reset:
All other nodes are forgotten
All the assigned / open slots are released
If the node is a replica, it turns into a master
Only for hard reset: a new Node ID is generated
Only for hard reset: currentEpoch and configEpoch are set to 0
The new configuration is saved and the cluster state updated
If the node was a replica, the whole data set is flushed away
|
Mono<String> |
clusterSaveconfig()
Forces a node to save the nodes.conf configuration on disk.
|
Mono<String> |
clusterSetConfigEpoch(long configEpoch)
This command sets a specific config epoch in a fresh node.
|
Mono<String> |
clusterSetSlotImporting(int slot,
String nodeId)
Flag a slot as IMPORTING (incoming) from the node specified in
nodeId . |
Mono<String> |
clusterSetSlotMigrating(int slot,
String nodeId)
Flag a slot as MIGRATING (outgoing) towards the node specified in
nodeId . |
Mono<String> |
clusterSetSlotNode(int slot,
String nodeId)
Assign a slot to a node.
|
Mono<String> |
clusterSetSlotStable(int slot)
Clears migrating / importing state from the slot.
|
Mono<List<Object>> |
clusterShards()
Get array of cluster shards
|
Flux<String> |
clusterSlaves(String nodeId)
List replicas for a certain node identified by its
nodeId . |
Flux<Object> |
clusterSlots()
Get array of cluster slots to node mappings.
|
Flux<Object> |
command()
Returns an array reply of details about all Redis commands.
|
Mono<Long> |
commandCount()
Get total number of Redis commands.
|
Flux<Object> |
commandInfo(CommandType... commands)
Returns an array reply of details about the requested commands.
|
Flux<Object> |
commandInfo(String... commands)
Returns an array reply of details about the requested commands.
|
Mono<Map<String,String>> |
configGet(String... parameters)
Get the value of multiple pattern parameters.
|
Mono<Map<String,String>> |
configGet(String parameter)
Get the value of a configuration parameter.
|
Mono<String> |
configResetstat()
Reset the stats returned by INFO.
|
Mono<String> |
configRewrite()
Rewrite the configuration file with the in memory configuration.
|
Mono<String> |
configSet(Map<String,String> kvs)
Set multiple parameters to the given value.
|
Mono<String> |
configSet(String parameter,
String value)
Set a configuration parameter to the given value.
|
Mono<Boolean> |
copy(K source,
K destination)
Copy the value stored at the source key to the destination key.
|
Mono<Boolean> |
copy(K source,
K destination,
CopyArgs copyArgs)
Copy the value stored at the source key to the destination key.
|
<T,R> Flux<R> |
createDissolvingFlux(Supplier<RedisCommand<K,V,T>> commandSupplier) |
<T> Flux<T> |
createFlux(Supplier<RedisCommand<K,V,T>> commandSupplier) |
protected <T> Mono<T> |
createMono(CommandType type,
CommandOutput<K,V,T> output,
CommandArgs<K,V> args) |
<T> Mono<T> |
createMono(Supplier<RedisCommand<K,V,T>> commandSupplier) |
Mono<Long> |
dbsize()
Return the number of keys in the selected database.
|
Mono<String> |
debugCrashAndRecover(Long delay)
Crash and recover.
|
Mono<String> |
debugHtstats(int db)
Get debugging information about the internal hash-table state.
|
Mono<String> |
debugObject(K key)
Get debugging information about a key.
|
Mono<Void> |
debugOom()
Make the server crash: Out of memory.
|
Mono<String> |
debugReload()
Save RDB, clear the database and reload RDB.
|
Mono<String> |
debugRestart(Long delay)
Restart the server gracefully.
|
Mono<String> |
debugSdslen(K key)
Get debugging information about the internal SDS length.
|
Mono<Void> |
debugSegfault()
Make the server crash: Invalid pointer access.
|
Mono<Long> |
decr(K key)
Decrement the integer value of a key by one.
|
Mono<Long> |
decrby(K key,
long amount)
Decrement the integer value of a key by the given number.
|
Mono<Long> |
del(Iterable<K> keys) |
Mono<Long> |
del(K... keys)
Delete one or more keys.
|
String |
digest(byte[] script)
Create a SHA1 digest from a Lua script.
|
String |
digest(String script)
Create a SHA1 digest from a Lua script.
|
Mono<String> |
discard()
Discard all commands issued after MULTI.
|
<T> Flux<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,?> output)
Dispatch a command to the Redis Server.
|
<T> Flux<T> |
dispatch(ProtocolKeyword type,
CommandOutput<K,V,?> output,
CommandArgs<K,V> args)
Dispatch a command to the Redis Server.
|
Mono<byte[]> |
dump(K key)
Return a serialized version of the value stored at the specified key.
|
Mono<V> |
echo(V msg)
Echo the given string.
|
<T> Flux<T> |
eval(byte[] script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> Flux<T> |
eval(byte[] script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> Flux<T> |
eval(String script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> Flux<T> |
eval(String script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> Flux<T> |
evalReadOnly(byte[] script,
ScriptOutputType type,
K[] keys,
V... values)
This is a read-only variant of the EVAL command that cannot execute commands that modify data.
|
<T> Flux<T> |
evalReadOnly(String script,
ScriptOutputType type,
K[] keys,
V... values)
This is a read-only variant of the EVAL command that cannot execute commands that modify data.
|
<T> Flux<T> |
evalsha(String digest,
ScriptOutputType type,
K... keys)
Evaluates a script cached on the server side by its SHA1 digest.
|
<T> Flux<T> |
evalsha(String digest,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> Flux<T> |
evalshaReadOnly(String digest,
ScriptOutputType type,
K[] keys,
V... values)
This is a read-only variant of the EVALSHA command that cannot execute commands that modify data.
|
Mono<TransactionResult> |
exec()
Execute all commands issued after MULTI.
|
Mono<Long> |
exists(Iterable<K> keys) |
Mono<Long> |
exists(K... keys)
Determine how many keys exist.
|
Mono<Boolean> |
exists(K key) |
Mono<Boolean> |
expire(K key,
Duration seconds)
Set a key's time to live in seconds.
|
Mono<Boolean> |
expire(K key,
Duration seconds,
ExpireArgs expireArgs)
Set a key's time to live in seconds.
|
Mono<Boolean> |
expire(K key,
long seconds)
Set a key's time to live in seconds.
|
Mono<Boolean> |
expire(K key,
long seconds,
ExpireArgs expireArgs)
Set a key's time to live in seconds.
|
Mono<Boolean> |
expireat(K key,
Date timestamp)
Set the expiration for a key as a UNIX timestamp.
|
Mono<Boolean> |
expireat(K key,
Date timestamp,
ExpireArgs expireArgs)
Set the expiration for a key as a UNIX timestamp.
|
Mono<Boolean> |
expireat(K key,
Instant timestamp)
Set the expiration for a key as a UNIX timestamp.
|
Mono<Boolean> |
expireat(K key,
Instant timestamp,
ExpireArgs expireArgs)
Set the expiration for a key as a UNIX timestamp.
|
Mono<Boolean> |
expireat(K key,
long timestamp)
Set the expiration for a key as a UNIX timestamp.
|
Mono<Boolean> |
expireat(K key,
long timestamp,
ExpireArgs expireArgs)
Set the expiration for a key as a UNIX timestamp.
|
Mono<Long> |
expiretime(K key)
Get the time to live for a key in as unix timestamp in seconds.
|
<T> Flux<T> |
fcall(String function,
ScriptOutputType type,
K... keys)
Invoke a function.
|
<T> Flux<T> |
fcall(String function,
ScriptOutputType type,
K[] keys,
V... values)
Invoke a function.
|
<T> Flux<T> |
fcallReadOnly(String function,
ScriptOutputType type,
K... keys)
Invoke a function in read-only mode.
|
<T> Flux<T> |
fcallReadOnly(String function,
ScriptOutputType type,
K[] keys,
V... values)
Invoke a function in read-only mode.
|
Mono<String> |
flushall()
Remove all keys from all databases.
|
Mono<String> |
flushall(FlushMode flushMode)
Remove all keys from all databases using the specified
FlushMode . |
Mono<String> |
flushallAsync()
Remove all keys asynchronously from all databases.
|
void |
flushCommands()
Flush pending commands.
|
Mono<String> |
flushdb()
Remove all keys from the current database.
|
Mono<String> |
flushdb(FlushMode flushMode)
Remove all keys from the current database using the specified
FlushMode . |
Mono<String> |
flushdbAsync()
Remove all keys asynchronously from the current database.
|
Mono<byte[]> |
functionDump()
Return the serialized payload of loaded libraries.
|
Mono<String> |
functionFlush(FlushMode flushMode)
Deletes all the libraries using the specified
FlushMode . |
Mono<String> |
functionKill()
Kill a function that is currently executing.
|
Flux<Map<String,Object>> |
functionList()
Return information about the functions and libraries.
|
Flux<Map<String,Object>> |
functionList(String libraryName)
Return information about the functions and libraries.
|
Mono<String> |
functionLoad(String functionCode)
Load a library to Redis.
|
Mono<String> |
functionLoad(String functionCode,
boolean replace)
Load a library to Redis.
|
Mono<String> |
functionRestore(byte[] dump)
You can restore the dumped payload of loaded libraries.
|
Mono<String> |
functionRestore(byte[] dump,
FunctionRestoreMode mode)
You can restore the dumped payload of loaded libraries.
|
Mono<Long> |
geoadd(K key,
double longitude,
double latitude,
V member)
Single geo add.
|
Mono<Long> |
geoadd(K key,
double longitude,
double latitude,
V member,
GeoAddArgs args)
Single geo add.
|
Mono<Long> |
geoadd(K key,
GeoAddArgs args,
GeoValue<V>... values)
Multi geo add.
|
Mono<Long> |
geoadd(K key,
GeoAddArgs args,
Object... lngLatMember)
Multi geo add.
|
Mono<Long> |
geoadd(K key,
GeoValue<V>... values)
Multi geo add.
|
Mono<Long> |
geoadd(K key,
Object... lngLatMember)
Multi geo add.
|
Mono<Double> |
geodist(K key,
V from,
V to,
GeoArgs.Unit unit)
Retrieve distance between points
from and to . |
Flux<Value<String>> |
geohash(K key,
V... members)
Retrieve Geohash strings representing the position of one or more elements in a sorted set value representing a
geospatial index.
|
Flux<Value<GeoCoordinates>> |
geopos(K key,
V... members)
Get geo coordinates for the
members . |
protected Flux<V> |
georadius_ro(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit) |
protected Flux<GeoWithin<V>> |
georadius_ro(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs) |
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 . |
Mono<Long> |
georadius(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit,
GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
Perform a
RedisGeoReactiveCommands.georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs) query and store the results in a
sorted set. |
protected Flux<V> |
georadiusbymember_ro(K key,
V member,
double distance,
GeoArgs.Unit unit) |
protected Flux<GeoWithin<V>> |
georadiusbymember_ro(K key,
V member,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs) |
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 . |
Mono<Long> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit,
GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
Perform a
RedisGeoReactiveCommands.georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs) query and store the results in a
sorted set. |
Flux<V> |
geosearch(K key,
GeoSearch.GeoRef<K> reference,
GeoSearch.GeoPredicate predicate)
Retrieve members selected by distance with the center of
reference the search predicate . |
Flux<GeoWithin<V>> |
geosearch(K key,
GeoSearch.GeoRef<K> reference,
GeoSearch.GeoPredicate predicate,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
reference the search predicate . |
Mono<Long> |
geosearchstore(K destination,
K key,
GeoSearch.GeoRef<K> reference,
GeoSearch.GeoPredicate predicate,
GeoArgs geoArgs,
boolean storeDist)
Perform a
RedisGeoReactiveCommands.geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs) query and store the results in a
sorted set. |
Mono<V> |
get(K key)
Get the value of a key.
|
Mono<Long> |
getbit(K key,
long offset)
Returns the bit value at offset in the string value stored at key.
|
StatefulConnection<K,V> |
getConnection() |
Mono<V> |
getdel(K key)
Get the value of key and delete the key.
|
Mono<V> |
getex(K key,
GetExArgs args)
Get the value of key and optionally set its expiration.
|
JsonParser |
getJsonParser() |
Mono<V> |
getrange(K key,
long start,
long end)
Get a substring of the string stored at a key.
|
Mono<V> |
getset(K key,
V value)
Set the string value of a key and return its old value.
|
Mono<Long> |
hdel(K key,
K... fields)
Delete one or more hash fields.
|
Mono<Boolean> |
hexists(K key,
K field)
Determine if a hash field exists.
|
Flux<Long> |
hexpire(K key,
Duration seconds,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields, belonging to a certain key.
|
Flux<Long> |
hexpire(K key,
Duration seconds,
K... fields)
Set the time to live for one or more fields, belonging to a certain key.
|
Flux<Long> |
hexpire(K key,
long seconds,
ExpireArgs expireArgs,
K... fields)
Set the time to live (in seconds) for one or more fields, belonging to a certain key.
|
Flux<Long> |
hexpire(K key,
long seconds,
K... fields)
Set the time to live (in seconds) for one or more fields, belonging to a certain key.
|
Flux<Long> |
hexpireat(K key,
Date timestamp,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields, belonging to a certain key as a UNIX timestamp.
|
Flux<Long> |
hexpireat(K key,
Date timestamp,
K... fields)
Set the time to live for one or more fields, belonging to a certain key as a UNIX timestamp.
|
Flux<Long> |
hexpireat(K key,
Instant timestamp,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields, belonging to a certain key as a UNIX timestamp.
|
Flux<Long> |
hexpireat(K key,
Instant timestamp,
K... fields)
Set the time to live for one or more fields, belonging to a certain key as a UNIX timestamp.
|
Flux<Long> |
hexpireat(K key,
long timestamp,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields, belonging to a certain key as a UNIX timestamp.
|
Flux<Long> |
hexpireat(K key,
long timestamp,
K... fields)
Set the time to live for one or more fields, belonging to a certain key as a UNIX timestamp.
|
Flux<Long> |
hexpiretime(K key,
K... fields)
Get the time to live for one or more fields in as UNIX timestamp in seconds.
|
Mono<V> |
hget(K key,
K field)
Get the value of a hash field.
|
Flux<KeyValue<K,V>> |
hgetall(K key)
Get all the fields and values in a hash.
|
Mono<Long> |
hgetall(KeyValueStreamingChannel<K,V> channel,
K key)
Stream over all the fields and values in a hash.
|
Mono<Long> |
hincrby(K key,
K field,
long amount)
Increment the integer value of a hash field by the given number.
|
Mono<Double> |
hincrbyfloat(K key,
K field,
double amount)
Increment the float value of a hash field by the given amount.
|
Flux<K> |
hkeys(K key)
Get all the fields in a hash.
|
Mono<Long> |
hkeys(KeyStreamingChannel<K> channel,
K key)
Stream over all the fields in a hash.
|
Mono<Long> |
hlen(K key)
Get the number of fields in a hash.
|
Mono<Long> |
hmget(KeyValueStreamingChannel<K,V> channel,
K key,
K... fields)
Stream over the values of all the given hash fields.
|
Flux<KeyValue<K,V>> |
hmget(K key,
K... fields)
Get the values of all the given hash fields.
|
Mono<String> |
hmset(K key,
Map<K,V> map)
Set multiple hash fields to multiple values.
|
Flux<Long> |
hpersist(K key,
K... fields)
Remove the expiration from one or more fields.
|
Flux<Long> |
hpexpire(K key,
Duration milliseconds,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields in milliseconds.
|
Flux<Long> |
hpexpire(K key,
Duration milliseconds,
K... fields)
Set the time to live for one or more fields in milliseconds.
|
Flux<Long> |
hpexpire(K key,
long milliseconds,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields in milliseconds.
|
Flux<Long> |
hpexpire(K key,
long milliseconds,
K... fields)
Set the time to live for one or more fields in milliseconds.
|
Flux<Long> |
hpexpireat(K key,
Date timestamp,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields as a UNIX timestamp specified in milliseconds.
|
Flux<Long> |
hpexpireat(K key,
Date timestamp,
K... fields)
Set the time to live for one or more fields as a UNIX timestamp specified in milliseconds.
|
Flux<Long> |
hpexpireat(K key,
Instant timestamp,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields as a UNIX timestamp specified in milliseconds.
|
Flux<Long> |
hpexpireat(K key,
Instant timestamp,
K... fields)
Set the time to live for one or more fields as a UNIX timestamp specified in milliseconds.
|
Flux<Long> |
hpexpireat(K key,
long timestamp,
ExpireArgs expireArgs,
K... fields)
Set the time to live for one or more fields as a UNIX timestamp specified in milliseconds.
|
Flux<Long> |
hpexpireat(K key,
long timestamp,
K... fields)
Set the time to live for one or more fields as a UNIX timestamp specified in milliseconds.
|
Flux<Long> |
hpexpiretime(K key,
K... fields)
Get the time to live for one or more fields as UNIX timestamp in milliseconds.
|
Flux<Long> |
hpttl(K key,
K... fields)
Get the time to live for one or more fields in milliseconds.
|
Mono<K> |
hrandfield(K key)
Return a random field from the hash stored at
key . |
Flux<K> |
hrandfield(K key,
long count)
Return
count random fields from the hash stored at key . |
Mono<KeyValue<K,V>> |
hrandfieldWithvalues(K key)
Return a random field along its value from the hash stored at
key . |
Flux<KeyValue<K,V>> |
hrandfieldWithvalues(K key,
long count)
Return
count random fields along their value from the hash stored at key . |
Mono<MapScanCursor<K,V>> |
hscan(K key)
Incrementally iterate hash fields and associated values.
|
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key)
Incrementally iterate hash fields and associated values.
|
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate hash fields and associated values.
|
Mono<StreamScanCursor> |
hscan(KeyValueStreamingChannel<K,V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
Mono<MapScanCursor<K,V>> |
hscan(K key,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
Mono<MapScanCursor<K,V>> |
hscan(K key,
ScanCursor scanCursor)
Incrementally iterate hash fields and associated values.
|
Mono<MapScanCursor<K,V>> |
hscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields and associated values.
|
Mono<KeyScanCursor<K>> |
hscanNovalues(K key)
Incrementally iterate hash fields, without associated values.
|
Mono<StreamScanCursor> |
hscanNovalues(KeyStreamingChannel<K> channel,
K key)
Incrementally iterate hash fields, without associated values.
|
Mono<StreamScanCursor> |
hscanNovalues(KeyStreamingChannel<K> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate hash fields, without associated values.
|
Mono<StreamScanCursor> |
hscanNovalues(KeyStreamingChannel<K> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate hash fields, without associated values.
|
Mono<StreamScanCursor> |
hscanNovalues(KeyStreamingChannel<K> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields, without associated values.
|
Mono<KeyScanCursor<K>> |
hscanNovalues(K key,
ScanArgs scanArgs)
Incrementally iterate hash fields, without associated values.
|
Mono<KeyScanCursor<K>> |
hscanNovalues(K key,
ScanCursor scanCursor)
Incrementally iterate hash fields, without associated values.
|
Mono<KeyScanCursor<K>> |
hscanNovalues(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate hash fields, without associated values.
|
Mono<Boolean> |
hset(K key,
K field,
V value)
Set the string value of a hash field.
|
Mono<Long> |
hset(K key,
Map<K,V> map)
Set multiple hash fields to multiple values.
|
Mono<Boolean> |
hsetnx(K key,
K field,
V value)
Set the value of a hash field, only if the field does not exist.
|
Mono<Long> |
hstrlen(K key,
K field)
Get the string length of the field value in a hash.
|
Flux<Long> |
httl(K key,
K... fields)
Get the time to live for one or more fields.
|
Flux<V> |
hvals(K key)
Get all the values in a hash.
|
Mono<Long> |
hvals(ValueStreamingChannel<V> channel,
K key)
Stream over all the values in a hash.
|
Mono<Long> |
incr(K key)
Increment the integer value of a key by one.
|
Mono<Long> |
incrby(K key,
long amount)
Increment the integer value of a key by the given amount.
|
Mono<Double> |
incrbyfloat(K key,
double amount)
Increment the float value of a key by the given amount.
|
Mono<String> |
info()
Get information and statistics about the server.
|
Mono<String> |
info(String section)
Get information and statistics about the server.
|
boolean |
isOpen() |
Flux<Long> |
jsonArrappend(K key,
JsonPath jsonPath,
JsonValue... values)
Append the JSON values into the array at a given
JsonPath after the last element in a said array. |
Flux<Long> |
jsonArrappend(K key,
JsonValue... values)
Append the JSON values into the array at the
JsonPath.ROOT_PATH after the last element in a said array. |
Flux<Long> |
jsonArrindex(K key,
JsonPath jsonPath,
JsonValue value)
|
Flux<Long> |
jsonArrindex(K key,
JsonPath jsonPath,
JsonValue value,
JsonRangeArgs range)
|
Flux<Long> |
jsonArrinsert(K key,
JsonPath jsonPath,
int index,
JsonValue... values)
|
Flux<Long> |
jsonArrlen(K key)
Report the length of the JSON array at a the
JsonPath.ROOT_PATH |
Flux<Long> |
jsonArrlen(K key,
JsonPath jsonPath)
Report the length of the JSON array at a given
JsonPath |
Flux<JsonValue> |
jsonArrpop(K key)
Remove and return
JsonValue at index -1 (last element) in the array at the JsonPath.ROOT_PATH |
Flux<JsonValue> |
jsonArrpop(K key,
JsonPath jsonPath)
|
Flux<JsonValue> |
jsonArrpop(K key,
JsonPath jsonPath,
int index)
|
Flux<Long> |
jsonArrtrim(K key,
JsonPath jsonPath,
JsonRangeArgs range)
Trim an array at a given
JsonPath so that it contains only the specified inclusive range of elements. |
Mono<Long> |
jsonClear(K key)
Clear container values (arrays/objects) and set numeric values to 0 at the
JsonPath.ROOT_PATH |
Mono<Long> |
jsonClear(K key,
JsonPath jsonPath)
Clear container values (arrays/objects) and set numeric values to 0
|
Mono<Long> |
jsonDel(K key)
Deletes a value inside the JSON document at the
JsonPath.ROOT_PATH |
Mono<Long> |
jsonDel(K key,
JsonPath jsonPath)
Deletes a value inside the JSON document at a given
JsonPath |
Flux<JsonValue> |
jsonGet(K key,
JsonGetArgs options,
JsonPath... jsonPaths)
Return the value at the specified path in JSON serialized form.
|
Flux<JsonValue> |
jsonGet(K key,
JsonPath... jsonPaths)
Return the value at the specified path in JSON serialized form.
|
Mono<String> |
jsonMerge(K key,
JsonPath jsonPath,
JsonValue value)
|
Flux<JsonValue> |
jsonMGet(JsonPath jsonPath,
K... keys)
Return the values at the specified path from multiple key arguments.
|
Mono<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. |
Flux<Number> |
jsonNumincrby(K key,
JsonPath jsonPath,
Number number)
Increment the number value stored at the specified
JsonPath in the JSON document by the provided increment. |
Flux<V> |
jsonObjkeys(K key)
Return the keys in the JSON document that are referenced by the
JsonPath.ROOT_PATH |
Flux<V> |
jsonObjkeys(K key,
JsonPath jsonPath)
Return the keys in the JSON document that are referenced by the given
JsonPath |
Flux<Long> |
jsonObjlen(K key)
Report the number of keys in the JSON object at the
JsonPath.ROOT_PATH and for the provided key |
Flux<Long> |
jsonObjlen(K key,
JsonPath jsonPath)
Report the number of keys in the JSON object at the specified
JsonPath and for the provided key |
Mono<String> |
jsonSet(K key,
JsonPath jsonPath,
JsonValue value)
Sets the JSON value at a given
JsonPath in the JSON document using defaults for the JsonSetArgs . |
Mono<String> |
jsonSet(K key,
JsonPath jsonPath,
JsonValue value,
JsonSetArgs options)
Sets the JSON value at a given
JsonPath in the JSON document. |
Flux<Long> |
jsonStrappend(K key,
JsonPath jsonPath,
JsonValue value)
Append the json-string values to the string at the provided
JsonPath in the JSON document. |
Flux<Long> |
jsonStrappend(K key,
JsonValue value)
Append the json-string values to the string at the
JsonPath.ROOT_PATH in the JSON document. |
Flux<Long> |
jsonStrlen(K key)
Report the length of the JSON String at the
JsonPath.ROOT_PATH in the JSON document. |
Flux<Long> |
jsonStrlen(K key,
JsonPath jsonPath)
Report the length of the JSON String at the provided
JsonPath in the JSON document. |
Flux<Long> |
jsonToggle(K key,
JsonPath jsonPath)
Toggle a Boolean value stored at the provided
JsonPath in the JSON document. |
Flux<JsonType> |
jsonType(K key)
Report the type of JSON value at the
JsonPath.ROOT_PATH in the JSON document. |
Flux<JsonType> |
jsonType(K key,
JsonPath jsonPath)
Report the type of JSON value at the provided
JsonPath in the JSON document. |
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.
|
Mono<Date> |
lastsave()
Get the UNIX time stamp of the last successful save to disk.
|
Mono<V> |
lindex(K key,
long index)
Get an element from a list by its index.
|
Mono<Long> |
linsert(K key,
boolean before,
V pivot,
V value)
Insert an element before or after another element in a list.
|
Mono<Long> |
llen(K key)
Get the length of a list.
|
Mono<V> |
lmove(K source,
K destination,
LMoveArgs args)
Atomically returns and removes the first/last element (head/tail depending on the where from argument) of the list stored
at source, and pushes the element at the first/last element (head/tail depending on the whereto argument) of the list
stored at destination.
|
Mono<KeyValue<K,List<V>>> |
lmpop(LMPopArgs args,
K... keys)
Remove and get the first/last elements in a list.
|
Mono<V> |
lpop(K key)
Remove and get the first element in a list.
|
Flux<V> |
lpop(K key,
long count)
Remove and get the first
count elements in a list. |
Mono<Long> |
lpos(K key,
V value)
Return the index of matching elements inside a Redis list.
|
Flux<Long> |
lpos(K key,
V value,
int count)
Return the index of matching elements inside a Redis list using the
COUNT option. |
Flux<Long> |
lpos(K key,
V value,
int count,
LPosArgs args)
Return the index of matching elements inside a Redis list using the
COUNT option. |
Mono<Long> |
lpos(K key,
V value,
LPosArgs args)
Return the index of matching elements inside a Redis list.
|
Mono<Long> |
lpush(K key,
V... values)
Prepend one or multiple values to a list.
|
Mono<Long> |
lpushx(K key,
V... values)
Prepend values to a list, only if the list exists.
|
Flux<V> |
lrange(K key,
long start,
long stop)
Get a range of elements from a list.
|
Mono<Long> |
lrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Get a range of elements from a list.
|
Mono<Long> |
lrem(K key,
long count,
V value)
Remove elements from a list.
|
Mono<String> |
lset(K key,
long index,
V value)
Set the value of an element in a list by its index.
|
Mono<String> |
ltrim(K key,
long start,
long stop)
Trim a list to the specified range.
|
Mono<Long> |
memoryUsage(K key)
Reports the number of bytes that a key and its value require to be stored in RAM.
|
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<Long> |
mget(ValueStreamingChannel<V> channel,
Iterable<K> keys) |
Mono<String> |
migrate(String host,
int port,
int db,
long timeout,
MigrateArgs<K> migrateArgs)
Atomically transfer one or more keys from a Redis instance to another one.
|
Mono<String> |
migrate(String host,
int port,
K key,
int db,
long timeout)
Atomically transfer a key from a Redis instance to another one.
|
Mono<Boolean> |
move(K key,
int db)
Move a key to another database.
|
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<String> |
multi()
Mark the start of a transaction block.
|
Mono<String> |
objectEncoding(K key)
Returns the kind of internal representation used in order to store the value associated with the
key . |
Mono<Long> |
objectFreq(K key)
Returns the logarithmic access frequency counter of the object stored at the specified
key . |
Mono<Long> |
objectIdletime(K key)
Returns the number of seconds since the object stored at the specified key is idle (not requested by read or write
operations).
|
Mono<Long> |
objectRefcount(K key)
Returns the number of references of the value associated with the specified key.
|
Mono<Boolean> |
persist(K key)
Remove the expiration from a key.
|
Mono<Boolean> |
pexpire(K key,
Duration milliseconds)
Set a key's time to live in milliseconds.
|
Mono<Boolean> |
pexpire(K key,
Duration milliseconds,
ExpireArgs expireArgs)
Set a key's time to live in milliseconds.
|
Mono<Boolean> |
pexpire(K key,
long milliseconds)
Set a key's time to live in milliseconds.
|
Mono<Boolean> |
pexpire(K key,
long milliseconds,
ExpireArgs expireArgs)
Set a key's time to live in milliseconds.
|
Mono<Boolean> |
pexpireat(K key,
Date timestamp)
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
|
Mono<Boolean> |
pexpireat(K key,
Date timestamp,
ExpireArgs expireArgs)
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
|
Mono<Boolean> |
pexpireat(K key,
Instant timestamp)
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
|
Mono<Boolean> |
pexpireat(K key,
Instant timestamp,
ExpireArgs expireArgs)
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
|
Mono<Boolean> |
pexpireat(K key,
long timestamp)
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
|
Mono<Boolean> |
pexpireat(K key,
long timestamp,
ExpireArgs expireArgs)
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
|
Mono<Long> |
pexpiretime(K key)
Get the time to live for a key in as unix timestamp in milliseconds.
|
Mono<Long> |
pfadd(K key,
V... values)
Adds the specified elements to the specified HyperLogLog.
|
Mono<Long> |
pfadd(K key,
V value,
V... values) |
Mono<Long> |
pfcount(K... keys)
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
|
Mono<Long> |
pfcount(K key,
K... keys) |
Mono<String> |
pfmerge(K destkey,
K... sourcekeys)
Merge N different HyperLogLogs into a single one.
|
Mono<String> |
pfmerge(K destkey,
K sourceKey,
K... sourcekeys) |
Mono<String> |
ping()
Ping the server.
|
Mono<String> |
psetex(K key,
long milliseconds,
V value)
Set the value and expiration in milliseconds of a key.
|
Mono<Long> |
pttl(K key)
Get the time to live for a key in milliseconds.
|
Mono<Long> |
publish(K channel,
V message)
Post a message to a channel.
|
Flux<K> |
pubsubChannels()
Lists the currently *active channels*.
|
Flux<K> |
pubsubChannels(K channel)
Lists the currently *active channels*.
|
Mono<Long> |
pubsubNumpat()
Returns the number of subscriptions to patterns.
|
Mono<Map<K,Long>> |
pubsubNumsub(K... channels)
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.
|
Flux<K> |
pubsubShardChannels()
Lists the currently *active shard channels*.
|
Flux<K> |
pubsubShardChannels(K pattern)
Lists the currently *active shard channels*.
|
Mono<Map<K,Long>> |
pubsubShardNumsub(K... shardChannels)
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified shard channels.
|
Mono<String> |
quit()
Instructs Redis to disconnect the connection.
|
Mono<K> |
randomkey()
Return a random key from the keyspace.
|
Mono<String> |
readOnly()
Switch connection to Read-Only mode when connecting to a cluster.
|
Mono<String> |
readWrite()
Switch connection to Read-Write mode (default) when connecting to a cluster.
|
Mono<String> |
rename(K key,
K newKey)
Rename a key.
|
Mono<Boolean> |
renamenx(K key,
K newKey)
Rename a key, only if the new key does not exist.
|
Mono<String> |
replicaof(String host,
int port)
Make the server a replica of another instance.
|
Mono<String> |
replicaofNoOne()
Promote server as master.
|
void |
reset()
Reset the command state.
|
Mono<String> |
restore(K key,
byte[] value,
RestoreArgs args)
Create a key using the provided serialized value, previously obtained using DUMP.
|
Mono<String> |
restore(K key,
long ttl,
byte[] value)
Create a key using the provided serialized value, previously obtained using DUMP.
|
Flux<Object> |
role()
Return the role of the instance in the context of replication.
|
Mono<V> |
rpop(K key)
Remove and get the last element in a list.
|
Flux<V> |
rpop(K key,
long count)
Remove and get the last
count elements in a list. |
Mono<V> |
rpoplpush(K source,
K destination)
Remove the last element in a list, append it to another list and return it.
|
Mono<Long> |
rpush(K key,
V... values)
Append one or multiple values to a list.
|
Mono<Long> |
rpushx(K key,
V... values)
Append values to a list, only if the list exists.
|
Mono<Long> |
sadd(K key,
V... members)
Add one or more members to a set.
|
Mono<String> |
save()
Synchronously save the dataset to disk.
|
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<Long> |
scard(K key)
Get the number of members in a set.
|
Flux<Boolean> |
scriptExists(String... digests)
Check existence of scripts in the script cache.
|
Mono<String> |
scriptFlush()
Remove all the scripts from the script cache.
|
Mono<String> |
scriptFlush(FlushMode flushMode)
Remove all the scripts from the script cache using the specified
FlushMode . |
Mono<String> |
scriptKill()
Kill the script currently in execution.
|
Mono<String> |
scriptLoad(byte[] script)
Load the specified Lua script into the script cache.
|
Mono<String> |
scriptLoad(String script)
Load the specified Lua script into the script cache.
|
Flux<V> |
sdiff(K... keys)
Subtract multiple sets.
|
Mono<Long> |
sdiff(ValueStreamingChannel<V> channel,
K... keys)
Subtract multiple sets.
|
Mono<Long> |
sdiffstore(K destination,
K... keys)
Subtract multiple sets and store the resulting set in a key.
|
Mono<String> |
select(int db) |
Mono<String> |
set(K key,
V value)
Set the string value of a key.
|
Mono<String> |
set(K key,
V value,
SetArgs setArgs)
Set the string value of a key.
|
void |
setAutoFlushCommands(boolean autoFlush)
Disable or enable auto-flush behavior.
|
Mono<Long> |
setbit(K key,
long offset,
int value)
Sets or clears the bit at offset in the string value stored at key.
|
Mono<String> |
setex(K key,
long seconds,
V value)
Set the value and expiration of a key.
|
Mono<V> |
setGet(K key,
V value)
Set the string value of a key and return its old value.
|
Mono<V> |
setGet(K key,
V value,
SetArgs setArgs)
Set the string value of a key and return its old value.
|
Mono<Boolean> |
setnx(K key,
V value)
Set the value of a key, only if the key does not exist.
|
Mono<Long> |
setrange(K key,
long offset,
V value)
Overwrite part of a string at key starting at the specified offset.
|
void |
setTimeout(Duration timeout)
Set the default timeout for operations.
|
Mono<Void> |
shutdown(boolean save)
Synchronously save the dataset to disk and then shut down the server.
|
Mono<Void> |
shutdown(ShutdownArgs args)
Synchronously save the dataset to disk and then shutdown the server.
|
Flux<V> |
sinter(K... keys)
Intersect multiple sets.
|
Mono<Long> |
sinter(ValueStreamingChannel<V> channel,
K... keys)
Intersect multiple sets.
|
Mono<Long> |
sintercard(K... keys)
This command works exactly like
RedisSetReactiveCommands.sinter(java.lang.Object[]) but instead of returning the result set, it returns
just the cardinality of the result. |
Mono<Long> |
sintercard(long limit,
K... keys)
This command works exactly like
RedisSetReactiveCommands.sinter(java.lang.Object[]) but instead of returning the result set, it returns
just the cardinality of the result. |
Mono<Long> |
sinterstore(K destination,
K... keys)
Intersect multiple sets and store the resulting set in a key.
|
Mono<Boolean> |
sismember(K key,
V member)
Determine if a given value is a member of a set.
|
Mono<String> |
slaveof(String host,
int port)
Make the server a replica of another instance.
|
Mono<String> |
slaveofNoOne()
Promote server as master.
|
Flux<Object> |
slowlogGet()
Read the slow log.
|
Flux<Object> |
slowlogGet(int count)
Read the slow log.
|
Mono<Long> |
slowlogLen()
Obtaining the current length of the slow log.
|
Mono<String> |
slowlogReset()
Resetting the slow log.
|
Flux<V> |
smembers(K key)
Get all the members in a set.
|
Mono<Long> |
smembers(ValueStreamingChannel<V> channel,
K key)
Get all the members in a set.
|
Flux<Boolean> |
smismember(K key,
V... members)
Returns whether each member is a member of the set stored at key.
|
Mono<Boolean> |
smove(K source,
K destination,
V member)
Move a member from one set to another.
|
Flux<V> |
sort(K key)
Sort the elements in a list, set or sorted set.
|
Flux<V> |
sort(K key,
SortArgs sortArgs)
Sort the elements in a list, set or sorted set.
|
Mono<Long> |
sort(ValueStreamingChannel<V> channel,
K key)
Sort the elements in a list, set or sorted set.
|
Mono<Long> |
sort(ValueStreamingChannel<V> channel,
K key,
SortArgs sortArgs)
Sort the elements in a list, set or sorted set.
|
Flux<V> |
sortReadOnly(K key)
Sort the elements in a list, set or sorted set.
|
Flux<V> |
sortReadOnly(K key,
SortArgs sortArgs)
Sort the elements in a list, set or sorted set.
|
Mono<Long> |
sortReadOnly(ValueStreamingChannel<V> channel,
K key)
Sort the elements in a list, set or sorted set.
|
Mono<Long> |
sortReadOnly(ValueStreamingChannel<V> channel,
K key,
SortArgs sortArgs)
Sort the elements in a list, set or sorted set.
|
Mono<Long> |
sortStore(K key,
SortArgs sortArgs,
K destination)
Sort the elements in a list, set or sorted set.
|
Mono<V> |
spop(K key)
Remove and return a random member from a set.
|
Flux<V> |
spop(K key,
long count)
Remove and return one or multiple random members from a set.
|
Mono<Long> |
spublish(K shardChannel,
V message)
Post a message to a shard channel.
|
Mono<V> |
srandmember(K key)
Get one random member from a set.
|
Flux<V> |
srandmember(K key,
long count)
Get one or multiple random members from a set.
|
Mono<Long> |
srandmember(ValueStreamingChannel<V> channel,
K key,
long count)
Get one or multiple random members from a set.
|
Mono<Long> |
srem(K key,
V... members)
Remove one or more members from a set.
|
Mono<ValueScanCursor<V>> |
sscan(K key)
Incrementally iterate Set elements.
|
Mono<ValueScanCursor<V>> |
sscan(K key,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
Mono<ValueScanCursor<V>> |
sscan(K key,
ScanCursor scanCursor)
Incrementally iterate Set elements.
|
Mono<ValueScanCursor<V>> |
sscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
Mono<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key)
Incrementally iterate Set elements.
|
Mono<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
Mono<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate Set elements.
|
Mono<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
Mono<StringMatchResult> |
stralgoLcs(StrAlgoArgs strAlgoArgs)
The STRALGO command implements complex algorithms that operate on strings.
|
Mono<Long> |
strlen(K key)
Get the length of the value stored in a key.
|
Flux<V> |
sunion(K... keys)
Add multiple sets.
|
Mono<Long> |
sunion(ValueStreamingChannel<V> channel,
K... keys)
Add multiple sets.
|
Mono<Long> |
sunionstore(K destination,
K... keys)
Add multiple sets and store the resulting set in a key.
|
Mono<String> |
swapdb(int db1,
int db2) |
Flux<V> |
time()
Return the current server time.
|
Mono<Long> |
touch(Iterable<K> keys) |
Mono<Long> |
touch(K... keys)
Touch one or more keys.
|
Mono<Long> |
ttl(K key)
Get the time to live for a key.
|
Mono<String> |
type(K key)
Determine the type stored at key.
|
Mono<Long> |
unlink(Iterable<K> keys) |
Mono<Long> |
unlink(K... keys)
Unlink one or more keys (non blocking DEL).
|
Mono<String> |
unwatch()
Forget about all watched keys.
|
Mono<Long> |
waitForReplication(int replicas,
long timeout)
Wait for replication.
|
Mono<String> |
watch(K... keys)
Watch the given keys to determine execution of the MULTI/EXEC block.
|
Mono<Long> |
xack(K key,
K group,
String... messageIds)
Acknowledge one or more messages as processed.
|
Mono<String> |
xadd(K key,
Map<K,V> body)
Append a message to the stream
key . |
Mono<String> |
xadd(K key,
Object... keysAndValues)
Append a message to the stream
key . |
Mono<String> |
xadd(K key,
XAddArgs args,
Map<K,V> body)
Append a message to the stream
key . |
Mono<String> |
xadd(K key,
XAddArgs args,
Object... keysAndValues)
Append a message to the stream
key . |
Mono<ClaimedMessages<K,V>> |
xautoclaim(K key,
XAutoClaimArgs<K> args)
Gets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.
|
Flux<StreamMessage<K,V>> |
xclaim(K key,
Consumer<K> consumer,
long minIdleTime,
String... messageIds)
Gets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.
|
Flux<StreamMessage<K,V>> |
xclaim(K key,
Consumer<K> consumer,
XClaimArgs args,
String... messageIds)
Gets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.
|
Mono<Long> |
xdel(K key,
String... messageIds)
Removes the specified entries from the stream.
|
Mono<String> |
xgroupCreate(XReadArgs.StreamOffset<K> streamOffset,
K group)
Create a consumer group.
|
Mono<String> |
xgroupCreate(XReadArgs.StreamOffset<K> streamOffset,
K group,
XGroupCreateArgs args)
Create a consumer group.
|
Mono<Boolean> |
xgroupCreateconsumer(K key,
Consumer<K> consumer)
Create a consumer from a consumer group.
|
Mono<Long> |
xgroupDelconsumer(K key,
Consumer<K> consumer)
Delete a consumer from a consumer group.
|
Mono<Boolean> |
xgroupDestroy(K key,
K group)
Destroy a consumer group.
|
Mono<String> |
xgroupSetid(XReadArgs.StreamOffset<K> streamOffset,
K group)
Set the current
group id. |
Flux<Object> |
xinfoConsumers(K key,
K group)
Retrieve information about consumer groups of group
group and stream at key . |
Flux<Object> |
xinfoGroups(K key)
Retrieve information about the stream consumer groups at
key . |
Flux<Object> |
xinfoStream(K key)
Retrieve information about the stream at
key . |
Mono<Long> |
xlen(K key)
Get the length of a steam.
|
Flux<PendingMessage> |
xpending(K key,
Consumer<K> consumer,
Range<String> range,
Limit limit)
Read pending messages from a stream within a specific
Range . |
Mono<PendingMessages> |
xpending(K key,
K group)
Read pending messages from a stream for a
group . |
Flux<PendingMessage> |
xpending(K key,
K group,
Range<String> range,
Limit limit)
Read pending messages from a stream within a specific
Range . |
Flux<PendingMessage> |
xpending(K key,
XPendingArgs<K> args)
Read pending messages from a stream within a specific
XPendingArgs . |
Flux<StreamMessage<K,V>> |
xrange(K key,
Range<String> range)
Read messages from a stream within a specific
Range . |
Flux<StreamMessage<K,V>> |
xrange(K key,
Range<String> range,
Limit limit)
|
Flux<StreamMessage<K,V>> |
xread(XReadArgs.StreamOffset<K>... streams)
Read messages from one or more
XReadArgs.StreamOffset s. |
Flux<StreamMessage<K,V>> |
xread(XReadArgs args,
XReadArgs.StreamOffset<K>... streams)
Read messages from one or more
XReadArgs.StreamOffset s. |
Flux<StreamMessage<K,V>> |
xreadgroup(Consumer<K> consumer,
XReadArgs.StreamOffset<K>... streams)
Read messages from one or more
XReadArgs.StreamOffset s using a consumer group. |
Flux<StreamMessage<K,V>> |
xreadgroup(Consumer<K> consumer,
XReadArgs args,
XReadArgs.StreamOffset<K>... streams)
Read messages from one or more
XReadArgs.StreamOffset s using a consumer group. |
Flux<StreamMessage<K,V>> |
xrevrange(K key,
Range<String> range)
Read messages from a stream within a specific
Range in reverse order. |
Flux<StreamMessage<K,V>> |
xrevrange(K key,
Range<String> range,
Limit limit)
|
Mono<Long> |
xtrim(K key,
boolean approximateTrimming,
long count)
Trims the stream to
count elements. |
Mono<Long> |
xtrim(K key,
long count)
Trims the stream to
count elements. |
Mono<Long> |
xtrim(K key,
XTrimArgs args)
Trims the stream within a specific
XTrimArgs . |
Mono<Long> |
zadd(K key,
double score,
V member)
Add one or more members to a sorted set, or update its score if it already exists.
|
Mono<Long> |
zadd(K key,
Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Mono<Long> |
zadd(K key,
ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Mono<Long> |
zadd(K key,
ZAddArgs zAddArgs,
double score,
V member)
Add one or more members to a sorted set, or update its score if it already exists.
|
Mono<Long> |
zadd(K key,
ZAddArgs zAddArgs,
Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Mono<Long> |
zadd(K key,
ZAddArgs zAddArgs,
ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Mono<Double> |
zaddincr(K key,
double score,
V member)
Add one or more members to a sorted set, or update its score if it already exists applying the
INCR option. |
Mono<Double> |
zaddincr(K key,
ZAddArgs zAddArgs,
double score,
V member)
Add one or more members to a sorted set, or update its score if it already exists applying the
INCR option. |
Mono<Long> |
zcard(K key)
Get the number of members in a sorted set.
|
Mono<Long> |
zcount(K key,
double min,
double max)
Count the members in a sorted set with scores within the given values.
|
Mono<Long> |
zcount(K key,
Range<? extends Number> range)
Count the members in a sorted set with scores within the given
Range . |
Mono<Long> |
zcount(K key,
String min,
String max)
Count the members in a sorted set with scores within the given values.
|
Flux<V> |
zdiff(K... keys)
Computes the difference between the first and all successive input sorted sets.
|
Mono<Long> |
zdiffstore(K destKey,
K... srcKeys)
Computes the difference between the first and all successive input sorted sets and stores the result in destination.
|
Flux<ScoredValue<V>> |
zdiffWithScores(K... keys)
Computes the difference between the first and all successive input sorted sets.
|
Mono<Double> |
zincrby(K key,
double amount,
V member)
Increment the score of a member in a sorted set.
|
Flux<V> |
zinter(K... keys)
Intersect multiple sorted sets and returns the resulting sorted.
|
Flux<V> |
zinter(ZAggregateArgs aggregateArgs,
K... keys)
Intersect multiple sorted sets and returns the resulting sorted.
|
Mono<Long> |
zintercard(K... keys)
This command is similar to
RedisSortedSetReactiveCommands.zinter(java.lang.Object[]) , but instead of returning the result set, it returns just
the cardinality of the result. |
Mono<Long> |
zintercard(long limit,
K... keys)
This command is similar to
RedisSortedSetReactiveCommands.zinter(java.lang.Object[]) , but instead of returning the result set, it returns just
the cardinality of the result. |
Mono<Long> |
zinterstore(K destination,
K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.
|
Mono<Long> |
zinterstore(K destination,
ZStoreArgs zStoreArgs,
K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.
|
Flux<ScoredValue<V>> |
zinterWithScores(K... keys)
Intersect multiple sorted sets and returns the resulting sorted.
|
Flux<ScoredValue<V>> |
zinterWithScores(ZAggregateArgs aggregateArgs,
K... keys)
Intersect multiple sorted sets and returns the resulting sorted.
|
Mono<Long> |
zlexcount(K key,
Range<? extends V> range)
Count the number of members in a sorted set between a given lexicographical range.
|
Mono<Long> |
zlexcount(K key,
String min,
String max)
Count the number of members in a sorted set between a given lexicographical range.
|
Mono<KeyValue<K,List<ScoredValue<V>>>> |
zmpop(int count,
ZPopArgs args,
K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.
|
Mono<KeyValue<K,ScoredValue<V>>> |
zmpop(ZPopArgs args,
K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.
|
Mono<List<Double>> |
zmscore(K key,
V... members)
Returns the scores associated with the specified members in the sorted set stored at key.
|
Mono<ScoredValue<V>> |
zpopmax(K key)
Removes and returns up to count members with the highest scores in the sorted set stored at key.
|
Flux<ScoredValue<V>> |
zpopmax(K key,
long count)
Removes and returns up to count members with the highest scores in the sorted set stored at key.
|
Mono<ScoredValue<V>> |
zpopmin(K key)
Removes and returns up to count members with the lowest scores in the sorted set stored at key.
|
Flux<ScoredValue<V>> |
zpopmin(K key,
long count)
Removes and returns up to count members with the lowest scores in the sorted set stored at key.
|
Mono<V> |
zrandmember(K key)
Return a random member from the sorted set stored at
key . |
Flux<V> |
zrandmember(K key,
long count)
Return
count random members from the sorted set stored at key . |
Mono<ScoredValue<V>> |
zrandmemberWithScores(K key)
Return a random member along its value from the sorted set stored at
key . |
Flux<ScoredValue<V>> |
zrandmemberWithScores(K key,
long count)
Return
count random members along their value from the sorted set stored at key . |
Flux<V> |
zrange(K key,
long start,
long stop)
Return a range of members in a sorted set, by index.
|
Mono<Long> |
zrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Return a range of members in a sorted set, by index.
|
Flux<V> |
zrangebylex(K key,
Range<? extends V> range)
Return a range of members in a sorted set, by lexicographical range.
|
Flux<V> |
zrangebylex(K key,
Range<? extends V> range,
Limit limit)
Return a range of members in a sorted set, by lexicographical range.
|
Flux<V> |
zrangebylex(K key,
String min,
String max)
Return a range of members in a sorted set, by lexicographical range.
|
Flux<V> |
zrangebylex(K key,
String min,
String max,
long offset,
long count)
Return a range of members in a sorted set, by lexicographical range.
|
Flux<V> |
zrangebyscore(K key,
double min,
double max)
Return a range of members in a sorted set, by score.
|
Flux<V> |
zrangebyscore(K key,
double min,
double max,
long offset,
long count)
Return a range of members in a sorted set, by score.
|
Flux<V> |
zrangebyscore(K key,
Range<? extends Number> range)
Return a range of members in a sorted set, by score.
|
Flux<V> |
zrangebyscore(K key,
Range<? extends Number> range,
Limit limit)
Return a range of members in a sorted set, by score.
|
Flux<V> |
zrangebyscore(K key,
String min,
String max)
Return a range of members in a sorted set, by score.
|
Flux<V> |
zrangebyscore(K key,
String min,
String max,
long offset,
long count)
Return a range of members in a sorted set, by score.
|
Mono<Long> |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
double min,
double max)
Stream over a range of members in a sorted set, by score.
|
Mono<Long> |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
double min,
double max,
long offset,
long count)
Stream over range of members in a sorted set, by score.
|
Mono<Long> |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range)
Stream over a range of members in a sorted set, by score.
|
Mono<Long> |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range,
Limit limit)
Stream over a range of members in a sorted set, by score.
|
Mono<Long> |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
String min,
String max)
Stream over a range of members in a sorted set, by score.
|
Mono<Long> |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
String min,
String max,
long offset,
long count)
Stream over a range of members in a sorted set, by score.
|
Flux<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
double min,
double max)
Return a range of members with score in a sorted set, by score.
|
Flux<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
double min,
double max,
long offset,
long count)
Return a range of members with score in a sorted set, by score.
|
Flux<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
Range<? extends Number> range)
Return a range of members with score in a sorted set, by score.
|
Flux<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
Range<? extends Number> range,
Limit limit)
Return a range of members with score in a sorted set, by score.
|
Flux<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
String min,
String max)
Return a range of members with score in a sorted set, by score.
|
Flux<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
String min,
String max,
long offset,
long count)
Return a range of members with score in a sorted set, by score.
|
Mono<Long> |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double min,
double max)
Stream over a range of members with scores in a sorted set, by score.
|
Mono<Long> |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double min,
double max,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score.
|
Mono<Long> |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range)
Stream over a range of members with scores in a sorted set, by score.
|
Mono<Long> |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range,
Limit limit)
Stream over a range of members with scores in a sorted set, by score.
|
Mono<Long> |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String min,
String max)
Stream over a range of members with scores in a sorted set, by score.
|
Mono<Long> |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String min,
String max,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score.
|
Mono<Long> |
zrangestore(K dstKey,
K srcKey,
Range<Long> range)
Get the specified range of elements in the sorted set stored at
srcKey and stores the result in the
dstKey destination key. |
Mono<Long> |
zrangestorebylex(K dstKey,
K srcKey,
Range<? extends V> range,
Limit limit)
Get the specified range of elements in the sorted set stored at
srcKey and stores the result in the
dstKey destination key. |
Mono<Long> |
zrangestorebyscore(K dstKey,
K srcKey,
Range<? extends Number> range,
Limit limit)
Get the specified range of elements in the sorted set stored at
srcKey and stores the result in the
dstKey destination key. |
Flux<ScoredValue<V>> |
zrangeWithScores(K key,
long start,
long stop)
Return a range of members with scores in a sorted set, by index.
|
Mono<Long> |
zrangeWithScores(ScoredValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Stream over a range of members with scores in a sorted set, by index.
|
Mono<Long> |
zrank(K key,
V member)
Determine the index of a member in a sorted set.
|
Mono<ScoredValue<Long>> |
zrankWithScore(K key,
V member)
Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high.
|
Mono<Long> |
zrem(K key,
V... members)
Remove one or more members from a sorted set.
|
Mono<Long> |
zremrangebylex(K key,
Range<? extends V> range)
Remove all members in a sorted set between the given lexicographical range.
|
Mono<Long> |
zremrangebylex(K key,
String min,
String max)
Remove all members in a sorted set between the given lexicographical range.
|
Mono<Long> |
zremrangebyrank(K key,
long start,
long stop)
Remove all members in a sorted set within the given indexes.
|
Mono<Long> |
zremrangebyscore(K key,
double min,
double max)
Remove all members in a sorted set within the given scores.
|
Mono<Long> |
zremrangebyscore(K key,
Range<? extends Number> range)
Remove all members in a sorted set within the given scores.
|
Mono<Long> |
zremrangebyscore(K key,
String min,
String max)
Remove all members in a sorted set within the given scores.
|
Flux<V> |
zrevrange(K key,
long start,
long stop)
Return a range of members in a sorted set, by index, with scores ordered from high to low.
|
Mono<Long> |
zrevrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Stream over a range of members in a sorted set, by index, with scores ordered from high to low.
|
Flux<V> |
zrevrangebylex(K key,
Range<? extends V> range)
Return a range of members in a sorted set, by lexicographical range ordered from high to low.
|
Flux<V> |
zrevrangebylex(K key,
Range<? extends V> range,
Limit limit)
Return a range of members in a sorted set, by lexicographical range ordered from high to low.
|
Flux<V> |
zrevrangebyscore(K key,
double max,
double min)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Flux<V> |
zrevrangebyscore(K key,
double max,
double min,
long offset,
long count)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Flux<V> |
zrevrangebyscore(K key,
Range<? extends Number> range)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Flux<V> |
zrevrangebyscore(K key,
Range<? extends Number> range,
Limit limit)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Flux<V> |
zrevrangebyscore(K key,
String max,
String min)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Flux<V> |
zrevrangebyscore(K key,
String max,
String min,
long offset,
long count)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
double max,
double min)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
double max,
double min,
long offset,
long count)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range,
Limit limit)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
String max,
String min)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
String max,
String min,
long offset,
long count)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Flux<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
double max,
double min)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Flux<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
double max,
double min,
long offset,
long count)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Flux<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
Range<? extends Number> range)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Flux<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
Range<? extends Number> range,
Limit limit)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Flux<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
String max,
String min)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Flux<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
String max,
String min,
long offset,
long count)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double max,
double min)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double max,
double min,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
Range<? extends Number> range,
Limit limit)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String max,
String min)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String max,
String min,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Mono<Long> |
zrevrangestore(K dstKey,
K srcKey,
Range<Long> range)
Get the specified range of elements ordered from high to low in the sorted set stored at
srcKey and stores the
result in the dstKey destination key. |
Mono<Long> |
zrevrangestorebylex(K dstKey,
K srcKey,
Range<? extends V> range,
Limit limit)
Get the lexicographical range ordered from high to low of elements in the sorted set stored at
srcKey and stores
the result in the dstKey destination key. |
Mono<Long> |
zrevrangestorebyscore(K dstKey,
K srcKey,
Range<? extends Number> range,
Limit limit)
Get the specified range of elements in the sorted set stored at srcKey with scores ordered from high to low and
stores the result in the {@code dstKey} destination key.
|
Flux<ScoredValue<V>> |
zrevrangeWithScores(K key,
long start,
long stop)
Return a range of members with scores in a sorted set, by index, with scores ordered from high to low.
|
Mono<Long> |
zrevrangeWithScores(ScoredValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Stream over a range of members with scores in a sorted set, by index, with scores ordered from high to low.
|
Mono<Long> |
zrevrank(K key,
V member)
Determine the index of a member in a sorted set, with scores ordered from high to low.
|
Mono<ScoredValue<Long>> |
zrevrankWithScore(K key,
V member)
Returns the rank of member in the sorted set stored at key, with the scores ordered from high to low.
|
Mono<ScoredValueScanCursor<V>> |
zscan(K key)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<ScoredValueScanCursor<V>> |
zscan(K key,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<ScoredValueScanCursor<V>> |
zscan(K key,
ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<ScoredValueScanCursor<V>> |
zscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<StreamScanCursor> |
zscan(ScoredValueStreamingChannel<V> channel,
K key)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<StreamScanCursor> |
zscan(ScoredValueStreamingChannel<V> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<StreamScanCursor> |
zscan(ScoredValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<StreamScanCursor> |
zscan(ScoredValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
Mono<Double> |
zscore(K key,
V member)
Get the score associated with the given member in a sorted set.
|
Flux<V> |
zunion(K... keys)
Add multiple sorted sets and returns the resulting sorted set.
|
Flux<V> |
zunion(ZAggregateArgs aggregateArgs,
K... keys)
Add multiple sorted sets and returns the resulting sorted set.
|
Mono<Long> |
zunionstore(K destination,
K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.
|
Mono<Long> |
zunionstore(K destination,
ZStoreArgs zStoreArgs,
K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.
|
Flux<ScoredValue<V>> |
zunionWithScores(K... keys)
Add multiple sorted sets and returns the resulting sorted set.
|
Flux<ScoredValue<V>> |
zunionWithScores(ZAggregateArgs aggregateArgs,
K... keys)
Add multiple sorted sets and returns the resulting sorted set.
|
public AbstractRedisReactiveCommands(StatefulConnection<K,V> connection, RedisCodec<K,V> codec, Mono<JsonParser> parser)
connection
- the connection to operate on.codec
- the codec for command encoding.public JsonParser getJsonParser()
getJsonParser
in interface BaseRedisReactiveCommands<K,V>
JsonParser
public Mono<Set<AclCategory>> aclCat()
RedisAclReactiveCommands
aclCat
in interface RedisAclReactiveCommands<K,V>
public Mono<Set<CommandType>> aclCat(AclCategory category)
RedisAclReactiveCommands
aclCat
in interface RedisAclReactiveCommands<K,V>
category
- the specified categorypublic Mono<Long> aclDeluser(String... usernames)
RedisAclReactiveCommands
aclDeluser
in interface RedisAclReactiveCommands<K,V>
usernames
- the specified usernamespublic Mono<String> aclDryRun(String username, String command, String... args)
RedisAclReactiveCommands
aclDryRun
in interface RedisAclReactiveCommands<K,V>
username
- the specified usernamecommand
- the specified commandargs
- the specified args of commandpublic Mono<String> aclDryRun(String username, RedisCommand<K,V,?> command)
RedisAclReactiveCommands
aclDryRun
in interface RedisAclReactiveCommands<K,V>
username
- the specified usernamecommand
- the specified command to inspectpublic Mono<String> aclGenpass()
RedisAclReactiveCommands
aclGenpass
in interface RedisAclReactiveCommands<K,V>
public Mono<String> aclGenpass(int bits)
RedisAclReactiveCommands
aclGenpass
in interface RedisAclReactiveCommands<K,V>
bits
- amount of bitspublic Mono<List<Object>> aclGetuser(String username)
RedisAclReactiveCommands
aclGetuser
in interface RedisAclReactiveCommands<K,V>
username
- the specified usernamepublic Flux<String> aclList()
RedisAclReactiveCommands
aclList
in interface RedisAclReactiveCommands<K,V>
public Mono<String> aclLoad()
RedisAclReactiveCommands
aclLoad
in interface RedisAclReactiveCommands<K,V>
public Flux<Map<String,Object>> aclLog()
RedisAclReactiveCommands
aclLog
in interface RedisAclReactiveCommands<K,V>
public Flux<Map<String,Object>> aclLog(int count)
RedisAclReactiveCommands
aclLog
in interface RedisAclReactiveCommands<K,V>
count
- max count of eventspublic Mono<String> aclLogReset()
RedisAclReactiveCommands
aclLogReset
in interface RedisAclReactiveCommands<K,V>
public Mono<String> aclSave()
RedisAclReactiveCommands
aclSave
in interface RedisAclReactiveCommands<K,V>
public Mono<String> aclSetuser(String username, AclSetuserArgs args)
RedisAclReactiveCommands
aclSetuser
in interface RedisAclReactiveCommands<K,V>
username
- the specified usernameargs
- rulespublic Flux<String> aclUsers()
RedisAclReactiveCommands
aclUsers
in interface RedisAclReactiveCommands<K,V>
public Mono<String> aclWhoami()
RedisAclReactiveCommands
aclWhoami
in interface RedisAclReactiveCommands<K,V>
public Mono<Long> append(K key, V value)
RedisStringReactiveCommands
append
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.public Mono<String> asking()
RedisClusterReactiveCommands
-ASK
redirection. The client should issue ASKING
before to
actually send the command to the target instance. See the Redis Cluster specification for more information.asking
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> auth(CharSequence password)
RedisClusterReactiveCommands
auth
in interface RedisClusterReactiveCommands<K,V>
password
- the passwordpublic Mono<String> auth(String username, CharSequence password)
RedisClusterReactiveCommands
auth
in interface RedisClusterReactiveCommands<K,V>
username
- the usernamepassword
- the passwordpublic Mono<String> bgrewriteaof()
RedisServerReactiveCommands
bgrewriteaof
in interface RedisServerReactiveCommands<K,V>
OK
.public Mono<String> bgsave()
RedisServerReactiveCommands
bgsave
in interface RedisServerReactiveCommands<K,V>
public Mono<Long> bitcount(K key)
RedisStringReactiveCommands
bitcount
in interface RedisStringReactiveCommands<K,V>
key
- the key.public Mono<Long> bitcount(K key, long start, long end)
RedisStringReactiveCommands
bitcount
in interface RedisStringReactiveCommands<K,V>
key
- the key.start
- the start.end
- the end.public Flux<Value<Long>> bitfield(K key, BitFieldArgs args)
RedisStringReactiveCommands
BITFIELD
with its subcommands.bitfield
in interface RedisStringReactiveCommands<K,V>
key
- the key.args
- the args containing subcommands, must not be null
.public Mono<Long> bitopAnd(K destination, K... keys)
RedisStringReactiveCommands
bitopAnd
in interface RedisStringReactiveCommands<K,V>
destination
- result key of the operation.keys
- operation input key names.public Mono<Long> bitopNot(K destination, K source)
RedisStringReactiveCommands
bitopNot
in interface RedisStringReactiveCommands<K,V>
destination
- result key of the operation.source
- operation input key names.public Mono<Long> bitopOr(K destination, K... keys)
RedisStringReactiveCommands
bitopOr
in interface RedisStringReactiveCommands<K,V>
destination
- result key of the operation.keys
- operation input key names.public Mono<Long> bitopXor(K destination, K... keys)
RedisStringReactiveCommands
bitopXor
in interface RedisStringReactiveCommands<K,V>
destination
- result key of the operation.keys
- operation input key names.public Mono<Long> bitpos(K key, boolean state)
RedisStringReactiveCommands
bitpos
in interface RedisStringReactiveCommands<K,V>
key
- the key.state
- the state.BITPOS key 0
will return 24, since up to bit 23 all the bits are 1.
Basically the function consider the right of the string as padded with zeros if you look for clear bits and
specify no range or the start argument only.public Mono<Long> bitpos(K key, boolean state, long start)
RedisStringReactiveCommands
bitpos
in interface RedisStringReactiveCommands<K,V>
key
- the key.state
- the bit type: long.start
- the start type: long.BITPOS key 0
will return 24, since up to bit 23 all the bits are 1.
Basically the function consider the right of the string as padded with zeros if you look for clear bits and
specify no range or the start argument only.public Mono<Long> bitpos(K key, boolean state, long start, long end)
RedisStringReactiveCommands
bitpos
in interface RedisStringReactiveCommands<K,V>
key
- the key.state
- the bit type: long.start
- the start type: long.end
- the end type: long.BITPOS key 0
will return 24, since up to bit 23 all the bits are 1.
Basically the function consider the right of the string as padded with zeros if you look for clear bits and
specify no range or the start argument only.
However this behavior changes if you are looking for clear bits and specify a range with both
start and end. If no clear bit is found in the specified range, the function
returns -1 as the user specified a clear range and there are no 0 bits in that range.public Mono<V> blmove(K source, K destination, LMoveArgs args, long timeout)
RedisListReactiveCommands
blmove
in interface RedisListReactiveCommands<K,V>
source
- the source key.destination
- the destination type: key.args
- command arguments to configure source and destination directions.timeout
- the timeout in seconds.public Mono<V> blmove(K source, K destination, LMoveArgs args, double timeout)
RedisListReactiveCommands
blmove
in interface RedisListReactiveCommands<K,V>
source
- the source key.destination
- the destination type: key.args
- command arguments to configure source and destination directions.timeout
- the timeout in seconds.public Mono<KeyValue<K,List<V>>> blmpop(long timeout, LMPopArgs args, K... keys)
RedisListReactiveCommands
blmpop
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.args
- the additional command arguments.keys
- the keys.null
when key
does not exist or the timeout was
exceeded.public Mono<KeyValue<K,List<V>>> blmpop(double timeout, LMPopArgs args, K... keys)
RedisListReactiveCommands
blmpop
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.args
- the additional command arguments.keys
- the keys.null
when key
does not exist or the timeout was
exceeded.public Mono<KeyValue<K,V>> blpop(long timeout, K... keys)
RedisListReactiveCommands
blpop
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.null
multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.public Mono<KeyValue<K,V>> blpop(double timeout, K... keys)
RedisListReactiveCommands
blpop
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.null
multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.public Mono<KeyValue<K,V>> brpop(long timeout, K... keys)
RedisListReactiveCommands
brpop
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.null
multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.public Mono<KeyValue<K,V>> brpop(double timeout, K... keys)
RedisListReactiveCommands
brpop
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.null
multi-bulk when no element could be popped and the timeout expired. A two-element multi-bulk with
the first element being the name of the key where an element was popped and the second element being the value of
the popped element.public Mono<V> brpoplpush(long timeout, K source, K destination)
RedisListReactiveCommands
brpoplpush
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.source
- the source key.destination
- the destination type: key.source
and pushed to destination
. If
timeout
is reached, a.public Mono<V> brpoplpush(double timeout, K source, K destination)
RedisListReactiveCommands
brpoplpush
in interface RedisListReactiveCommands<K,V>
timeout
- the timeout in seconds.source
- the source key.destination
- the destination type: key.source
and pushed to destination
. If
timeout
is reached, a.public Mono<String> clientCaching(boolean enabled)
RedisServerReactiveCommands
clientCaching
in interface RedisServerReactiveCommands<K,V>
enabled
- true
to enable key tracking.OK
.public Mono<K> clientGetname()
RedisServerReactiveCommands
clientGetname
in interface RedisServerReactiveCommands<K,V>
public Mono<Long> clientGetredir()
RedisServerReactiveCommands
clientGetredir
in interface RedisServerReactiveCommands<K,V>
public Mono<String> clientKill(String addr)
RedisServerReactiveCommands
clientKill
in interface RedisServerReactiveCommands<K,V>
addr
- ip:port.OK
if the connection exists and has been closed.public Mono<Long> clientKill(KillArgs killArgs)
RedisServerReactiveCommands
killArgs
.clientKill
in interface RedisServerReactiveCommands<K,V>
killArgs
- args for the kill operation.public Mono<String> clientList()
RedisServerReactiveCommands
clientList
in interface RedisServerReactiveCommands<K,V>
public Mono<String> clientList(ClientListArgs clientListArgs)
RedisServerReactiveCommands
clientListArgs
.clientList
in interface RedisServerReactiveCommands<K,V>
public Mono<String> clientInfo()
RedisServerReactiveCommands
clientInfo
in interface RedisServerReactiveCommands<K,V>
public Mono<String> clientNoEvict(boolean on)
RedisServerReactiveCommands
clientNoEvict
in interface RedisServerReactiveCommands<K,V>
on
- true
will turn eviction mode on, and false
will turn it off.OK
.public Mono<Long> clientId()
RedisServerReactiveCommands
clientId
in interface RedisServerReactiveCommands<K,V>
public Mono<String> clientPause(long timeout)
RedisServerReactiveCommands
clientPause
in interface RedisServerReactiveCommands<K,V>
timeout
- the timeout value in milliseconds.public Mono<String> clientSetname(K name)
RedisServerReactiveCommands
clientSetname
in interface RedisServerReactiveCommands<K,V>
name
- the client name.OK
if the connection name was successfully set.public Mono<String> clientSetinfo(String key, String value)
RedisServerReactiveCommands
clientSetinfo
in interface RedisServerReactiveCommands<K,V>
key
- the key.value
- the value.OK
if the connection name was successfully set.public Mono<String> clientTracking(TrackingArgs args)
RedisServerReactiveCommands
clientTracking
in interface RedisServerReactiveCommands<K,V>
args
- for the CLIENT TRACKING operation.OK
.public Mono<TrackingInfo> clientTrackinginfo()
RedisServerReactiveCommands
clientTrackinginfo
in interface RedisServerReactiveCommands<K,V>
TrackingInfo
, for more information check the documentationpublic Mono<Long> clientUnblock(long id, UnblockType type)
RedisServerReactiveCommands
clientUnblock
in interface RedisServerReactiveCommands<K,V>
id
- the client id.type
- unblock type.public void close()
public Mono<String> clusterAddSlots(int... slots)
RedisClusterReactiveCommands
clusterAddSlots
in interface RedisClusterReactiveCommands<K,V>
slots
- one or more slots from 0 to 16384public Mono<String> clusterAddSlotsRange(Range<Integer>... ranges)
RedisClusterReactiveCommands
clusterAddSlotsRange
in interface RedisClusterReactiveCommands<K,V>
ranges
- a list of slot ranges (specified by start and end slots)public Mono<String> clusterBumpepoch()
RedisClusterReactiveCommands
clusterBumpepoch
in interface RedisClusterReactiveCommands<K,V>
public Mono<Long> clusterCountFailureReports(String nodeId)
RedisClusterReactiveCommands
clusterCountFailureReports
in interface RedisClusterReactiveCommands<K,V>
nodeId
- the node idpublic Mono<Long> clusterCountKeysInSlot(int slot)
RedisClusterReactiveCommands
slot
.clusterCountKeysInSlot
in interface RedisClusterReactiveCommands<K,V>
slot
- the slotpublic Mono<String> clusterDelSlots(int... slots)
RedisClusterReactiveCommands
clusterDelSlots
in interface RedisClusterReactiveCommands<K,V>
slots
- one or more slots from 0 to 16384public Mono<String> clusterDelSlotsRange(Range<Integer>... ranges)
RedisClusterReactiveCommands
clusterDelSlotsRange
in interface RedisClusterReactiveCommands<K,V>
ranges
- a list of slot ranges (specified by start and end slots)public Mono<String> clusterFailover(boolean force)
RedisClusterReactiveCommands
clusterFailover
in interface RedisClusterReactiveCommands<K,V>
force
- do not coordinate with master if true
public Mono<String> clusterFailover(boolean force, boolean takeOver)
RedisClusterReactiveCommands
clusterFailover
in interface RedisClusterReactiveCommands<K,V>
force
- do not coordinate with master if true
takeOver
- do not coordinate with the rest of the cluster if true
public Mono<String> clusterFlushslots()
RedisClusterReactiveCommands
clusterFlushslots
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> clusterForget(String nodeId)
RedisClusterReactiveCommands
clusterForget
in interface RedisClusterReactiveCommands<K,V>
nodeId
- the node Idpublic Flux<K> clusterGetKeysInSlot(int slot, int count)
RedisClusterReactiveCommands
slot
.clusterGetKeysInSlot
in interface RedisClusterReactiveCommands<K,V>
slot
- the slotcount
- maximal number of keyspublic Mono<String> clusterInfo()
RedisClusterReactiveCommands
clusterInfo
in interface RedisClusterReactiveCommands<K,V>
public Mono<Long> clusterKeyslot(K key)
RedisClusterReactiveCommands
SlotHash.getSlot(byte[])
. If not, call Houston and report that we've got a problem.clusterKeyslot
in interface RedisClusterReactiveCommands<K,V>
key
- the key.public Mono<String> clusterMeet(String ip, int port)
RedisClusterReactiveCommands
clusterMeet
in interface RedisClusterReactiveCommands<K,V>
ip
- IP address of the hostport
- port number.public Mono<String> clusterMyId()
RedisClusterReactiveCommands
clusterMyId
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> clusterMyShardId()
RedisClusterReactiveCommands
The CLUSTER MYSHARDID command returns the unique, auto-generated identifier that is associated with the shard to which the connected cluster node belongs.
clusterMyShardId
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> clusterNodes()
RedisClusterReactiveCommands
ClusterPartitionParser.parse(java.util.List<java.lang.Object>)
clusterNodes
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> clusterReplicate(String nodeId)
RedisClusterReactiveCommands
nodeId
.clusterReplicate
in interface RedisClusterReactiveCommands<K,V>
nodeId
- master node idpublic Flux<String> clusterReplicas(String nodeId)
RedisClusterReactiveCommands
nodeId
. Can be parsed using
ClusterPartitionParser.parse(java.util.List<java.lang.Object>)
clusterReplicas
in interface RedisClusterReactiveCommands<K,V>
nodeId
- node id of the master nodeRedisClusterReactiveCommands.clusterNodes()
but one line per replica.public Mono<String> clusterReset(boolean hard)
RedisClusterReactiveCommands
clusterReset
in interface RedisClusterReactiveCommands<K,V>
hard
- true
for hard reset. Generates a new nodeId and currentEpoch/configEpoch are set to 0public Mono<String> clusterSaveconfig()
RedisClusterReactiveCommands
clusterSaveconfig
in interface RedisClusterReactiveCommands<K,V>
OK
or an error if the operation fails.public Mono<String> clusterSetConfigEpoch(long configEpoch)
RedisClusterReactiveCommands
clusterSetConfigEpoch
in interface RedisClusterReactiveCommands<K,V>
configEpoch
- the config epochOK
or an error if the operation fails.public Mono<String> clusterSetSlotImporting(int slot, String nodeId)
RedisClusterReactiveCommands
nodeId
.clusterSetSlotImporting
in interface RedisClusterReactiveCommands<K,V>
slot
- the slotnodeId
- the id of the node is the master of the slotpublic Mono<String> clusterSetSlotMigrating(int slot, String nodeId)
RedisClusterReactiveCommands
nodeId
. The slot must be handled by
the current node in order to be migrated.clusterSetSlotMigrating
in interface RedisClusterReactiveCommands<K,V>
slot
- the slotnodeId
- the id of the node is targeted to become the master for the slotpublic Mono<String> clusterSetSlotNode(int slot, String nodeId)
RedisClusterReactiveCommands
nodeId
clusterSetSlotNode
in interface RedisClusterReactiveCommands<K,V>
slot
- the slotnodeId
- the id of the node that will become the master for the slotpublic Mono<String> clusterSetSlotStable(int slot)
RedisClusterReactiveCommands
clusterSetSlotStable
in interface RedisClusterReactiveCommands<K,V>
slot
- the slotpublic Mono<List<Object>> clusterShards()
RedisClusterReactiveCommands
clusterShards
in interface RedisClusterReactiveCommands<K,V>
public Flux<String> clusterSlaves(String nodeId)
RedisClusterReactiveCommands
nodeId
. Can be parsed using
ClusterPartitionParser.parse(java.util.List<java.lang.Object>)
clusterSlaves
in interface RedisClusterReactiveCommands<K,V>
nodeId
- node id of the master nodeRedisClusterReactiveCommands.clusterNodes()
but one line per replica.public Flux<Object> clusterSlots()
RedisClusterReactiveCommands
clusterSlots
in interface RedisClusterReactiveCommands<K,V>
public Flux<Object> command()
RedisServerReactiveCommands
command
in interface RedisServerReactiveCommands<K,V>
public Mono<Long> commandCount()
RedisServerReactiveCommands
commandCount
in interface RedisServerReactiveCommands<K,V>
public Flux<Object> commandInfo(String... commands)
RedisServerReactiveCommands
commandInfo
in interface RedisServerReactiveCommands<K,V>
commands
- the commands to query for.public Flux<Object> commandInfo(CommandType... commands)
RedisServerReactiveCommands
commandInfo
in interface RedisServerReactiveCommands<K,V>
commands
- the commands to query for.public Mono<Map<String,String>> configGet(String parameter)
RedisServerReactiveCommands
configGet
in interface RedisServerReactiveCommands<K,V>
parameter
- name of the parameter.public Mono<Map<String,String>> configGet(String... parameters)
RedisServerReactiveCommands
configGet
in interface RedisServerReactiveCommands<K,V>
parameters
- patterns names of Redis server's configuration.public Mono<String> configResetstat()
RedisServerReactiveCommands
configResetstat
in interface RedisServerReactiveCommands<K,V>
OK
.public Mono<String> configRewrite()
RedisServerReactiveCommands
configRewrite
in interface RedisServerReactiveCommands<K,V>
OK
when the configuration was rewritten properly. Otherwise an error is
returned.public Mono<String> configSet(String parameter, String value)
RedisServerReactiveCommands
configSet
in interface RedisServerReactiveCommands<K,V>
parameter
- the parameter name.value
- the parameter value.OK
when the configuration was set properly. Otherwise an error is returned.public Mono<String> configSet(Map<String,String> kvs)
RedisServerReactiveCommands
configSet
in interface RedisServerReactiveCommands<K,V>
kvs
- the parameter name and value.OK
when the configuration was set properly. Otherwise an error is returned.public <T,R> Flux<R> createDissolvingFlux(Supplier<RedisCommand<K,V,T>> commandSupplier)
public <T> Flux<T> createFlux(Supplier<RedisCommand<K,V,T>> commandSupplier)
protected <T> Mono<T> createMono(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)
public <T> Mono<T> createMono(Supplier<RedisCommand<K,V,T>> commandSupplier)
public Mono<Long> dbsize()
RedisServerReactiveCommands
dbsize
in interface RedisServerReactiveCommands<K,V>
public Mono<String> debugCrashAndRecover(Long delay)
RedisServerReactiveCommands
debugCrashAndRecover
in interface RedisServerReactiveCommands<K,V>
delay
- optional delay in milliseconds.public Mono<String> debugHtstats(int db)
RedisServerReactiveCommands
debugHtstats
in interface RedisServerReactiveCommands<K,V>
db
- the database number.public Mono<String> debugObject(K key)
RedisServerReactiveCommands
debugObject
in interface RedisServerReactiveCommands<K,V>
key
- the key.public Mono<Void> debugOom()
RedisServerReactiveCommands
debugOom
in interface RedisServerReactiveCommands<K,V>
public Mono<String> debugReload()
RedisServerReactiveCommands
debugReload
in interface RedisServerReactiveCommands<K,V>
public Mono<String> debugRestart(Long delay)
RedisServerReactiveCommands
debugRestart
in interface RedisServerReactiveCommands<K,V>
delay
- optional delay in milliseconds.public Mono<String> debugSdslen(K key)
RedisServerReactiveCommands
debugSdslen
in interface RedisServerReactiveCommands<K,V>
key
- the key.public Mono<Void> debugSegfault()
RedisServerReactiveCommands
debugSegfault
in interface RedisServerReactiveCommands<K,V>
public Mono<Long> decr(K key)
RedisStringReactiveCommands
decr
in interface RedisStringReactiveCommands<K,V>
key
- the key.key
after the decrement.public Mono<Long> decrby(K key, long amount)
RedisStringReactiveCommands
decrby
in interface RedisStringReactiveCommands<K,V>
key
- the key.amount
- the decrement type: long.key
after the decrement.public Mono<Long> del(K... keys)
RedisKeyReactiveCommands
del
in interface RedisKeyReactiveCommands<K,V>
keys
- the keys.public String digest(String script)
RedisScriptingReactiveCommands
digest
in interface RedisScriptingReactiveCommands<K,V>
script
- script content.public String digest(byte[] script)
RedisScriptingReactiveCommands
digest
in interface RedisScriptingReactiveCommands<K,V>
script
- script content.public Mono<String> discard()
RedisTransactionalReactiveCommands
discard
in interface RedisTransactionalReactiveCommands<K,V>
OK
.public <T> Flux<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,?> output)
BaseRedisReactiveCommands
dispatch
in interface BaseRedisReactiveCommands<K,V>
T
- response type.type
- the command, must not be null
.output
- the command output, must not be null
.public <T> Flux<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,?> output, CommandArgs<K,V> args)
BaseRedisReactiveCommands
dispatch
in interface BaseRedisReactiveCommands<K,V>
T
- response type.type
- the command, must not be null
.output
- the command output, must not be null
.args
- the command arguments, must not be null
.public Mono<byte[]> dump(K key)
RedisKeyReactiveCommands
dump
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<V> echo(V msg)
BaseRedisReactiveCommands
echo
in interface BaseRedisReactiveCommands<K,V>
msg
- the message type: value.public <T> Flux<T> eval(String script, ScriptOutputType type, K... keys)
RedisScriptingReactiveCommands
eval
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.script
- Lua 5.1 script.type
- output type.keys
- key names.public <T> Flux<T> eval(byte[] script, ScriptOutputType type, K... keys)
RedisScriptingReactiveCommands
eval
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.script
- Lua 5.1 script.type
- output type.keys
- key names.public <T> Flux<T> eval(String script, ScriptOutputType type, K[] keys, V... values)
RedisScriptingReactiveCommands
eval
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.public <T> Flux<T> eval(byte[] script, ScriptOutputType type, K[] keys, V... values)
RedisScriptingReactiveCommands
eval
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.public <T> Flux<T> evalReadOnly(String script, ScriptOutputType type, K[] keys, V... values)
RedisScriptingReactiveCommands
evalReadOnly
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.public <T> Flux<T> evalReadOnly(byte[] script, ScriptOutputType type, K[] keys, V... values)
RedisScriptingReactiveCommands
evalReadOnly
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.public <T> Flux<T> evalsha(String digest, ScriptOutputType type, K... keys)
RedisScriptingReactiveCommands
evalsha
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.public <T> Flux<T> evalsha(String digest, ScriptOutputType type, K[] keys, V... values)
RedisScriptingReactiveCommands
evalsha
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.values
- the values.public <T> Flux<T> evalshaReadOnly(String digest, ScriptOutputType type, K[] keys, V... values)
RedisScriptingReactiveCommands
evalshaReadOnly
in interface RedisScriptingReactiveCommands<K,V>
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.values
- the values.public Mono<TransactionResult> exec()
RedisTransactionalReactiveCommands
exec
in interface RedisTransactionalReactiveCommands<K,V>
WATCH
, EXEC
can return a discarded
TransactionResult
.TransactionResult.wasDiscarded()
public Mono<Long> exists(K... keys)
RedisKeyReactiveCommands
exists
in interface RedisKeyReactiveCommands<K,V>
keys
- the keys.public Mono<Boolean> expire(K key, long seconds)
RedisKeyReactiveCommands
expire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.seconds
- the seconds type: long.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set.public Mono<Boolean> expire(K key, long seconds, ExpireArgs expireArgs)
RedisKeyReactiveCommands
expire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.seconds
- the seconds type: long.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set.public Mono<Boolean> expire(K key, Duration seconds)
RedisKeyReactiveCommands
expire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.seconds
- the seconds.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set.public Mono<Boolean> expire(K key, Duration seconds, ExpireArgs expireArgs)
RedisKeyReactiveCommands
expire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.seconds
- the seconds.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set.public Flux<Long> hexpire(K key, long seconds, K... fields)
RedisHashReactiveCommands
hexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key of the fields.seconds
- the seconds type: long.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hexpire(K key, long seconds, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key of the fields.seconds
- the seconds type: long.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hexpire(K key, Duration seconds, K... fields)
RedisHashReactiveCommands
hexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key.seconds
- the TTL Duration
fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hexpire(K key, Duration seconds, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key.seconds
- the TTL Duration
expireArgs
- the ExpireArgs
.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Mono<Boolean> expireat(K key, long timestamp)
RedisKeyReactiveCommands
expireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> expireat(K key, long timestamp, ExpireArgs expireArgs)
RedisKeyReactiveCommands
expireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> expireat(K key, Date timestamp)
RedisKeyReactiveCommands
expireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> expireat(K key, Date timestamp, ExpireArgs expireArgs)
RedisKeyReactiveCommands
expireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> expireat(K key, Instant timestamp)
RedisKeyReactiveCommands
expireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> expireat(K key, Instant timestamp, ExpireArgs expireArgs)
RedisKeyReactiveCommands
expireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Flux<Long> hexpireat(K key, long timestamp, K... fields)
RedisHashReactiveCommands
hexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hexpireat(K key, Date timestamp, K... fields)
RedisHashReactiveCommands
hexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hexpireat(K key, Instant timestamp, K... fields)
RedisHashReactiveCommands
hexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the timestamp type: posix time.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Mono<Long> expiretime(K key)
RedisKeyReactiveCommands
expiretime
in interface RedisKeyReactiveCommands<K,V>
key
- the key.-1
if
the key exists but has no associated expiration time. The command returns -2
if the key does not exist.public Flux<Long> hexpiretime(K key, K... fields)
RedisHashReactiveCommands
hexpiretime
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- one or more fields to get the TTL for.Long
values for each of the fields provided: expiration time as a UNIX timestamp in seconds;
-1
indicating the field has no expiry time set; -2
indicating there is no such fieldpublic Flux<Long> httl(K key, K... fields)
RedisHashReactiveCommands
httl
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- one or more fields to get the TTL for.Long
values for each of the fields provided: the time to live in seconds; or a negative value
in order to signal an error. The command returns -1
if the key exists but has no associated expiration
time. The command returns -2
if the key does not exist.public Flux<Long> hpexpire(K key, long milliseconds, K... fields)
RedisHashReactiveCommands
hpexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds type: long.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hpexpire(K key, long milliseconds, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hpexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds type: long.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hpexpire(K key, Duration milliseconds, K... fields)
RedisHashReactiveCommands
hpexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hpexpire(K key, Duration milliseconds, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hpexpire
in interface RedisHashReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is 0; 1
indicating expiration time is set/updated;
0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met);
-2
indicating there is no such fieldpublic Flux<Long> hpexpireat(K key, Date timestamp, K... fields)
RedisHashReactiveCommands
hpexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hpexpireat(K key, Date timestamp, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hpexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hpexpireat(K key, Instant timestamp, K... fields)
RedisHashReactiveCommands
hpexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hpexpireat(K key, Instant timestamp, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hpexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hpexpireat(K key, long timestamp, K... fields)
RedisHashReactiveCommands
hpexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hpexpireat(K key, long timestamp, ExpireArgs expireArgs, K... fields)
RedisHashReactiveCommands
hpexpireat
in interface RedisHashReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.expireArgs
- the expiry arguments.fields
- one or more fields to set the TTL for.Long
values for each of the fields provided: 2
indicating the specific field is deleted
already due to expiration, or provided expiry interval is in the past; 1
indicating expiration time is
set/updated; 0
indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not
met); -2
indicating there is no such fieldpublic Flux<Long> hpexpiretime(K key, K... fields)
RedisHashReactiveCommands
hpexpiretime
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- one or more fields to get the TTL for.Long
values for each of the fields provided: expiration time as a UNIX timestamp in
milliseconds; -1
indicating the field has no expiry time set; -2
indicating there is no such
fieldpublic Flux<Long> hpttl(K key, K... fields)
RedisHashReactiveCommands
hpttl
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- one or more fields to get the TTL for.Long
values for each of the fields provided: the time to live in milliseconds; or a negative
value in order to signal an error. The command returns -1
if the key exists but has no associated
expiration time. The command returns -2
if the key does not exist.public <T> Flux<T> fcall(String function, ScriptOutputType type, K... keys)
RedisFunctionReactiveCommands
fcall
in interface RedisFunctionReactiveCommands<K,V>
T
- expected return type.function
- the function name.type
- output type.keys
- key names.public <T> Flux<T> fcall(String function, ScriptOutputType type, K[] keys, V... values)
RedisFunctionReactiveCommands
fcall
in interface RedisFunctionReactiveCommands<K,V>
T
- expected return type.function
- the function name.type
- output type.keys
- the keys.values
- the values (arguments).public <T> Flux<T> fcallReadOnly(String function, ScriptOutputType type, K... keys)
RedisFunctionReactiveCommands
fcallReadOnly
in interface RedisFunctionReactiveCommands<K,V>
T
- expected return type.function
- the function name.type
- output type.keys
- key names.public <T> Flux<T> fcallReadOnly(String function, ScriptOutputType type, K[] keys, V... values)
RedisFunctionReactiveCommands
fcallReadOnly
in interface RedisFunctionReactiveCommands<K,V>
T
- expected return type.function
- the function name.type
- output type.keys
- the keys.values
- the values (arguments).public Mono<String> functionLoad(String functionCode)
RedisFunctionReactiveCommands
functionLoad
in interface RedisFunctionReactiveCommands<K,V>
functionCode
- code of the function.public Mono<String> functionLoad(String functionCode, boolean replace)
RedisFunctionReactiveCommands
functionLoad
in interface RedisFunctionReactiveCommands<K,V>
functionCode
- code of the function.replace
- whether to replace an existing function.public Mono<byte[]> functionDump()
RedisFunctionReactiveCommands
RedisFunctionReactiveCommands.functionRestore(byte[])
.functionDump
in interface RedisFunctionReactiveCommands<K,V>
public Mono<String> functionRestore(byte[] dump)
RedisFunctionReactiveCommands
functionRestore
in interface RedisFunctionReactiveCommands<K,V>
public Mono<String> functionRestore(byte[] dump, FunctionRestoreMode mode)
RedisFunctionReactiveCommands
functionRestore
in interface RedisFunctionReactiveCommands<K,V>
public Mono<String> functionFlush(FlushMode flushMode)
RedisFunctionReactiveCommands
FlushMode
.functionFlush
in interface RedisFunctionReactiveCommands<K,V>
flushMode
- the flush mode (sync/async).public Mono<String> functionKill()
RedisFunctionReactiveCommands
functionKill
in interface RedisFunctionReactiveCommands<K,V>
public Flux<Map<String,Object>> functionList()
RedisFunctionReactiveCommands
functionList
in interface RedisFunctionReactiveCommands<K,V>
public Flux<Map<String,Object>> functionList(String libraryName)
RedisFunctionReactiveCommands
functionList
in interface RedisFunctionReactiveCommands<K,V>
libraryName
- specify a pattern for matching library names.public void flushCommands()
BaseRedisReactiveCommands
flushCommands
in interface BaseRedisReactiveCommands<K,V>
public Mono<String> flushall()
RedisServerReactiveCommands
flushall
in interface RedisServerReactiveCommands<K,V>
public Mono<String> flushall(FlushMode flushMode)
RedisServerReactiveCommands
FlushMode
.flushall
in interface RedisServerReactiveCommands<K,V>
flushMode
- the flush mode (sync/async).public Mono<String> flushallAsync()
RedisServerReactiveCommands
flushallAsync
in interface RedisServerReactiveCommands<K,V>
public Mono<String> flushdb()
RedisServerReactiveCommands
flushdb
in interface RedisServerReactiveCommands<K,V>
public Mono<String> flushdb(FlushMode flushMode)
RedisServerReactiveCommands
FlushMode
.flushdb
in interface RedisServerReactiveCommands<K,V>
flushMode
- the flush mode (sync/async).public Mono<String> flushdbAsync()
RedisServerReactiveCommands
flushdbAsync
in interface RedisServerReactiveCommands<K,V>
public Mono<Long> geoadd(K key, double longitude, double latitude, V member)
RedisGeoReactiveCommands
geoadd
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.member
- the member to add.public Mono<Long> geoadd(K key, double longitude, double latitude, V member, GeoAddArgs args)
RedisGeoReactiveCommands
geoadd
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.member
- the member to add.args
- additional arguments.public Mono<Long> geoadd(K key, Object... lngLatMember)
RedisGeoReactiveCommands
geoadd
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.lngLatMember
- triplets of double longitude, double latitude and V member.public Mono<Long> geoadd(K key, GeoValue<V>... values)
RedisGeoReactiveCommands
geoadd
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.values
- GeoValue
values to add.public Mono<Long> geoadd(K key, GeoAddArgs args, Object... lngLatMember)
RedisGeoReactiveCommands
geoadd
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.args
- additional arguments.lngLatMember
- triplets of double longitude, double latitude and V member.public Mono<Long> geoadd(K key, GeoAddArgs args, GeoValue<V>... values)
RedisGeoReactiveCommands
geoadd
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.args
- additional arguments.values
- GeoValue
values to add.public Mono<Double> geodist(K key, V from, V to, GeoArgs.Unit unit)
RedisGeoReactiveCommands
from
and to
. If one or more elements are missing null
is
returned. Default in meters by, otherwise according to unit
geodist
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.from
- from member.to
- to member.unit
- distance unit.from
and to
. If one or more elements are missing null
is
returned.public Flux<Value<String>> geohash(K key, V... members)
RedisGeoReactiveCommands
geohash
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.members
- the members.members
. Returns null
if a member is not found.public Flux<Value<GeoCoordinates>> geopos(K key, V... members)
RedisGeoReactiveCommands
members
.geopos
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.members
- the members.GeoCoordinates
s representing the x,y position of each element specified in the arguments. For
missing elements null
is returned.public Flux<V> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)
RedisGeoReactiveCommands
longitude
and latitude
.georadius
in interface RedisGeoReactiveCommands<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)
RedisGeoReactiveCommands
longitude
and latitude
.georadius
in interface RedisGeoReactiveCommands<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 Mono<Long> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
RedisGeoReactiveCommands
RedisGeoReactiveCommands.georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs)
query and store the results in a
sorted set.georadius
in interface RedisGeoReactiveCommands<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.geoRadiusStoreArgs
- args to store either the resulting elements with their distance or the resulting elements with
their locations a sorted set.protected Flux<V> georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)
protected Flux<GeoWithin<V>> georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
public Flux<V> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit)
RedisGeoReactiveCommands
member
. The member itself is always contained in the
results.georadiusbymember
in interface RedisGeoReactiveCommands<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)
RedisGeoReactiveCommands
member
. The member itself is always contained in the
results.georadiusbymember
in interface RedisGeoReactiveCommands<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 Mono<Long> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
RedisGeoReactiveCommands
RedisGeoReactiveCommands.georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs)
query and store the results in a
sorted set.georadiusbymember
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.member
- reference member.distance
- radius distance.unit
- distance unit.geoRadiusStoreArgs
- args to store either the resulting elements with their distance or the resulting elements with
their locations a sorted set.protected Flux<V> georadiusbymember_ro(K key, V member, double distance, GeoArgs.Unit unit)
protected Flux<GeoWithin<V>> georadiusbymember_ro(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
public Flux<V> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate)
RedisGeoReactiveCommands
reference
the search predicate
. Use
GeoSearch
to create reference and predicate objects.geosearch
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.reference
- the reference member or longitude/latitude coordinates.predicate
- the bounding box or radius to search in.public Flux<GeoWithin<V>> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs)
RedisGeoReactiveCommands
reference
the search predicate
. Use
GeoSearch
to create reference and predicate objects.geosearch
in interface RedisGeoReactiveCommands<K,V>
key
- the key of the geo set.reference
- the reference member or longitude/latitude coordinates.predicate
- the bounding box or radius to search in.geoArgs
- args to control the result.GeoWithin
contains only fields which were requested by GeoArgs
.public Mono<Long> geosearchstore(K destination, K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs, boolean storeDist)
RedisGeoReactiveCommands
RedisGeoReactiveCommands.geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs)
query and store the results in a
sorted set.geosearchstore
in interface RedisGeoReactiveCommands<K,V>
destination
- the destination where to store results.key
- the key of the geo set.reference
- the reference member or longitude/latitude coordinates.predicate
- the bounding box or radius to search in.geoArgs
- args to control the result.storeDist
- stores the items in a sorted set populated with their distance from the center of the circle or box, as
a floating-point number, in the same unit specified for that shape.public Mono<V> get(K key)
RedisStringReactiveCommands
get
in interface RedisStringReactiveCommands<K,V>
key
- the key.key
, or null
when key
does not exist.public StatefulConnection<K,V> getConnection()
public Mono<Long> getbit(K key, long offset)
RedisStringReactiveCommands
getbit
in interface RedisStringReactiveCommands<K,V>
key
- the key.offset
- the offset type: long.public Mono<V> getdel(K key)
RedisStringReactiveCommands
getdel
in interface RedisStringReactiveCommands<K,V>
key
- the key.key
, or null
when key
does not exist.public Mono<V> getex(K key, GetExArgs args)
RedisStringReactiveCommands
getex
in interface RedisStringReactiveCommands<K,V>
key
- the key.args
- the arguments for GETEX
.key
, or null
when key
does not exist.public Mono<V> getrange(K key, long start, long end)
RedisStringReactiveCommands
getrange
in interface RedisStringReactiveCommands<K,V>
key
- the key.start
- the start type: long.end
- the end type: long.public Mono<V> getset(K key, V value)
RedisStringReactiveCommands
getset
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.key
, or null
when key
did not exist.public Mono<Long> hdel(K key, K... fields)
RedisHashReactiveCommands
hdel
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- the field type: key.public Mono<Boolean> hexists(K key, K field)
RedisHashReactiveCommands
hexists
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.true
if the hash contains field
. false
if the hash does not contain field
, or
key
does not exist.public Mono<V> hget(K key, K field)
RedisHashReactiveCommands
hget
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.field
, or null
when field
is not present in
the hash or key
does not exist.public Flux<KeyValue<K,V>> hgetall(K key)
RedisHashReactiveCommands
hgetall
in interface RedisHashReactiveCommands<K,V>
key
- the key.key
does not exist.public Mono<Long> hgetall(KeyValueStreamingChannel<K,V> channel, K key)
RedisHashReactiveCommands
hgetall
in interface RedisHashReactiveCommands<K,V>
channel
- the channel.key
- the key.public Mono<Long> hincrby(K key, K field, long amount)
RedisHashReactiveCommands
hincrby
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.amount
- the increment type: long.field
after the increment operation.public Mono<Double> hincrbyfloat(K key, K field, double amount)
RedisHashReactiveCommands
hincrbyfloat
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.amount
- the increment type: double.field
after the increment.public Flux<K> hkeys(K key)
RedisHashReactiveCommands
hkeys
in interface RedisHashReactiveCommands<K,V>
key
- the key.key
does not exist.public Mono<Long> hkeys(KeyStreamingChannel<K> channel, K key)
RedisHashReactiveCommands
hkeys
in interface RedisHashReactiveCommands<K,V>
channel
- the channel.key
- the key.public Mono<Long> hlen(K key)
RedisHashReactiveCommands
hlen
in interface RedisHashReactiveCommands<K,V>
key
- the key.0
when key
does not exist.public Flux<KeyValue<K,V>> hmget(K key, K... fields)
RedisHashReactiveCommands
hmget
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- the field type: key.public Mono<Long> hmget(KeyValueStreamingChannel<K,V> channel, K key, K... fields)
RedisHashReactiveCommands
hmget
in interface RedisHashReactiveCommands<K,V>
channel
- the channel.key
- the key.fields
- the fields.public Mono<K> hrandfield(K key)
RedisHashReactiveCommands
key
.hrandfield
in interface RedisHashReactiveCommands<K,V>
key
- the key.public Flux<K> hrandfield(K key, long count)
RedisHashReactiveCommands
count
random fields from the hash stored at key
.hrandfield
in interface RedisHashReactiveCommands<K,V>
key
- the key.count
- the number of fields to return. If the provided count argument is positive, return an array of distinct
fields.public Mono<KeyValue<K,V>> hrandfieldWithvalues(K key)
RedisHashReactiveCommands
key
.hrandfieldWithvalues
in interface RedisHashReactiveCommands<K,V>
key
- the key.public Flux<KeyValue<K,V>> hrandfieldWithvalues(K key, long count)
RedisHashReactiveCommands
count
random fields along their value from the hash stored at key
.hrandfieldWithvalues
in interface RedisHashReactiveCommands<K,V>
key
- the key.count
- the number of fields to return. If the provided count argument is positive, return an array of distinct
fields.public Mono<String> hmset(K key, Map<K,V> map)
RedisHashReactiveCommands
hmset
in interface RedisHashReactiveCommands<K,V>
key
- the key.map
- the hash to apply.public Mono<MapScanCursor<K,V>> hscan(K key)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
key
- the key.public Mono<KeyScanCursor<K>> hscanNovalues(K key)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
key
- the key.public Mono<MapScanCursor<K,V>> hscan(K key, ScanArgs scanArgs)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
key
- the key.scanArgs
- scan arguments.public Mono<KeyScanCursor<K>> hscanNovalues(K key, ScanArgs scanArgs)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
key
- the key.scanArgs
- scan arguments.public Mono<MapScanCursor<K,V>> hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<KeyScanCursor<K>> hscanNovalues(K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<MapScanCursor<K,V>> hscan(K key, ScanCursor scanCursor)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<KeyScanCursor<K>> hscanNovalues(K key, ScanCursor scanCursor)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key-value pair.key
- the key.public Mono<StreamScanCursor> hscanNovalues(KeyStreamingChannel<K> channel, K key)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.key
- the key.public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanArgs scanArgs)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key-value pair.key
- the key.scanArgs
- scan arguments.public Mono<StreamScanCursor> hscanNovalues(KeyStreamingChannel<K> channel, K key, ScanArgs scanArgs)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.key
- the key.scanArgs
- scan arguments.public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key-value pair.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<StreamScanCursor> hscanNovalues(KeyStreamingChannel<K> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor)
RedisHashReactiveCommands
hscan
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key-value pair.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<StreamScanCursor> hscanNovalues(KeyStreamingChannel<K> channel, K key, ScanCursor scanCursor)
RedisHashReactiveCommands
hscanNovalues
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<Boolean> hset(K key, K field, V value)
RedisHashReactiveCommands
hset
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.value
- the value.true
if field
is a new field in the hash and value
was set. false
if
field
already exists in the hash and the value was updated.public Mono<Long> hset(K key, Map<K,V> map)
RedisHashReactiveCommands
hset
in interface RedisHashReactiveCommands<K,V>
key
- the key of the hash.map
- the field/value pairs to update.public Mono<Boolean> hsetnx(K key, K field, V value)
RedisHashReactiveCommands
hsetnx
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.value
- the value.1
if field
is a new field in the hash and value
was set. 0
if field
already exists in the hash and no operation was performed.public Mono<Long> hstrlen(K key, K field)
RedisHashReactiveCommands
hstrlen
in interface RedisHashReactiveCommands<K,V>
key
- the key.field
- the field type: key.field
value, or 0
when field
is not present
in the hash or key
does not exist at all.public Flux<V> hvals(K key)
RedisHashReactiveCommands
hvals
in interface RedisHashReactiveCommands<K,V>
key
- the key.key
does not exist.public Mono<Long> hvals(ValueStreamingChannel<V> channel, K key)
RedisHashReactiveCommands
hvals
in interface RedisHashReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.public Mono<Long> incr(K key)
RedisStringReactiveCommands
incr
in interface RedisStringReactiveCommands<K,V>
key
- the key.key
after the increment.public Mono<Long> incrby(K key, long amount)
RedisStringReactiveCommands
incrby
in interface RedisStringReactiveCommands<K,V>
key
- the key.amount
- the increment type: long.key
after the increment.public Mono<Double> incrbyfloat(K key, double amount)
RedisStringReactiveCommands
incrbyfloat
in interface RedisStringReactiveCommands<K,V>
key
- the key.amount
- the increment type: double.key
after the increment.public Mono<String> info()
RedisServerReactiveCommands
info
in interface RedisServerReactiveCommands<K,V>
public Mono<String> info(String section)
RedisServerReactiveCommands
info
in interface RedisServerReactiveCommands<K,V>
section
- the section type: string.public boolean isOpen()
isOpen
in interface BaseRedisReactiveCommands<K,V>
true
if the connection is open (connected and not closed).public Flux<Long> jsonArrappend(K key, JsonPath jsonPath, JsonValue... values)
RedisJsonReactiveCommands
JsonPath
after the last element in a said array.jsonArrappend
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.values
- one or more JsonValue
to be appended.public Flux<Long> jsonArrappend(K key, JsonValue... values)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
after the last element in a said array.jsonArrappend
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.values
- one or more JsonValue
to be appended.public Flux<Long> jsonArrindex(K key, JsonPath jsonPath, JsonValue value, JsonRangeArgs range)
RedisJsonReactiveCommands
JsonValue
in an array at a given JsonPath
and return its index.jsonArrindex
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.value
- the JsonValue
to search for.range
- the JsonRangeArgs
to search within.public Flux<Long> jsonArrindex(K key, JsonPath jsonPath, JsonValue value)
RedisJsonReactiveCommands
JsonValue
in an array at a given JsonPath
and return its index. This
method uses defaults for the start and end indexes, see JsonRangeArgs.DEFAULT_START_INDEX
and
JsonRangeArgs.DEFAULT_END_INDEX
.jsonArrindex
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.value
- the JsonValue
to search for.public Flux<Long> jsonArrinsert(K key, JsonPath jsonPath, int index, JsonValue... values)
RedisJsonReactiveCommands
JsonValue
s into the array at a given JsonPath
before the provided index, shifting the existing
elements to the rightjsonArrinsert
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.index
- the index before which the new elements will be inserted.values
- one or more JsonValue
s to be inserted.public Flux<Long> jsonArrlen(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
jsonArrlen
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.public Flux<Long> jsonArrlen(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
jsonArrlen
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.public Flux<JsonValue> jsonArrpop(K key, JsonPath jsonPath, int index)
RedisJsonReactiveCommands
jsonArrpop
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.index
- the index of the element to be removed. Default is -1, meaning the last element. Out-of-range indexes round
to their respective array ends. Popping an empty array returns null.public Flux<JsonValue> jsonArrpop(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
jsonArrpop
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.public Flux<JsonValue> jsonArrpop(K key)
RedisJsonReactiveCommands
JsonValue
at index -1 (last element) in the array at the JsonPath.ROOT_PATH
jsonArrpop
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.public Flux<Long> jsonArrtrim(K key, JsonPath jsonPath, JsonRangeArgs range)
RedisJsonReactiveCommands
JsonPath
so that it contains only the specified inclusive range of elements. All
elements with indexes smaller than the start range and all elements with indexes bigger than the end range are trimmed.
Behavior as of RedisJSON v2.0:
jsonArrtrim
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the array inside the document.range
- the JsonRangeArgs
to trim by.public Mono<Long> jsonClear(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
jsonClear
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value to clear.public Mono<Long> jsonClear(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
jsonClear
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.public Mono<Long> jsonDel(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
jsonDel
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value to clear.public Mono<Long> jsonDel(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
jsonDel
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.public Flux<JsonValue> jsonGet(K key, JsonGetArgs options, JsonPath... jsonPaths)
RedisJsonReactiveCommands
When using a single JSONPath, the root of the matching values is a JSON string with a top-level array of serialized JSON value. In contrast, a legacy path returns a single value.
When using multiple JSONPath arguments, the root of the matching values is a JSON string with a top-level object, with each object value being a top-level array of serialized JSON value. In contrast, if all paths are legacy paths, each object value is a single serialized JSON value. If there are multiple paths that include both legacy path and JSONPath, the returned value conforms to the JSONPath version (an array of values).
jsonGet
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.options
- the JsonGetArgs
to use.jsonPaths
- the JsonPath
s to use to identify the values to get.public Flux<JsonValue> jsonGet(K key, JsonPath... jsonPaths)
RedisJsonReactiveCommands
JsonGetArgs
.
When using a single JSONPath, the root of the matching values is a JSON string with a top-level array of serialized JSON value. In contrast, a legacy path returns a single value.
When using multiple JSONPath arguments, the root of the matching values is a JSON string with a top-level object, with each object value being a top-level array of serialized JSON value. In contrast, if all paths are legacy paths, each object value is a single serialized JSON value. If there are multiple paths that include both legacy path and JSONPath, the returned value conforms to the JSONPath version (an array of values).
jsonGet
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPaths
- the JsonPath
s to use to identify the values to get.public Mono<String> jsonMerge(K key, JsonPath jsonPath, JsonValue value)
RedisJsonReactiveCommands
JsonValue
with the value matching JsonPath
. Consequently, JSON values at matching paths are
updated, deleted, or expanded with new children.
Merging is done according to the following rules per JSON value in the value argument while considering the corresponding original value if it exists:
This command complies with RFC7396 "Json Merge Patch"
jsonMerge
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value to merge.value
- the JsonValue
to merge.public Flux<JsonValue> jsonMGet(JsonPath jsonPath, K... keys)
RedisJsonReactiveCommands
public Mono<String> jsonMSet(List<JsonMsetArgs<K,V>> arguments)
RedisJsonReactiveCommands
JsonMsetArgs
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 RedisJsonReactiveCommands<K,V>
arguments
- the JsonMsetArgs
specifying the values to change.public Flux<Number> jsonNumincrby(K key, JsonPath jsonPath, Number number)
RedisJsonReactiveCommands
JsonPath
in the JSON document by the provided increment.jsonNumincrby
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value to increment.number
- the increment value.List
of the new values after the increment.public Flux<V> jsonObjkeys(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
jsonObjkeys
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s) whose key(s) we want.JsonPath
.public Flux<V> jsonObjkeys(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
jsonObjkeys
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.JsonPath
.public Flux<Long> jsonObjlen(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
and for the provided keyjsonObjlen
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s) whose key(s) we want to countpublic Flux<Long> jsonObjlen(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
and for the provided keyjsonObjlen
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.public Mono<String> jsonSet(K key, JsonPath jsonPath, JsonValue value, JsonSetArgs options)
RedisJsonReactiveCommands
JsonPath
in the JSON document.
For new Redis keys, the path must be the root. For existing keys, when the entire path exists, the value that it contains is replaced with the JSON value. For existing keys, when the path exists, except for the last element, a new child is added with the JSON value.
Adds a key (with its respective value) to a JSON Object (in a RedisJSON data type key) only if it is the last child in the path, or it is the parent of a new child being added in the path. Optional arguments NX and XX modify this behavior for both new RedisJSON data type keys and the JSON Object keys in them.
jsonSet
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s) where we want to set the value.value
- the JsonValue
to set.options
- the JsonSetArgs
the options for setting the value.JsonSetArgs
conditions are not met.public Mono<String> jsonSet(K key, JsonPath jsonPath, JsonValue value)
RedisJsonReactiveCommands
JsonPath
in the JSON document using defaults for the JsonSetArgs
.
For new Redis keys the path must be the root. For existing keys, when the entire path exists, the value that it contains is replaced with the JSON value. For existing keys, when the path exists, except for the last element, a new child is added with the JSON value.
Adds a key (with its respective value) to a JSON Object (in a RedisJSON data type key) only if it is the last child in the path, or it is the parent of a new child being added in the path. Optional arguments NX and XX modify this behavior for both new RedisJSON data type keys and the JSON Object keys in them.
jsonSet
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s) where we want to set the value.value
- the JsonValue
to set.JsonSetArgs
conditions are not met.public Flux<Long> jsonStrappend(K key, JsonPath jsonPath, JsonValue value)
RedisJsonReactiveCommands
JsonPath
in the JSON document.jsonStrappend
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s) where we want to append the value.value
- the JsonValue
to append.public Flux<Long> jsonStrappend(K key, JsonValue value)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
in the JSON document.jsonStrappend
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.value
- the JsonValue
to append.public Flux<Long> jsonStrlen(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
in the JSON document.jsonStrlen
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s).JsonPath
, or null if the value
ath the desired path is not a string.public Flux<Long> jsonStrlen(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
in the JSON document.jsonStrlen
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.JsonPath
, or null if the value
ath the desired path is not a string.public Flux<Long> jsonToggle(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
in the JSON document.jsonToggle
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.jsonPath
- the JsonPath
pointing to the value(s).public Flux<JsonType> jsonType(K key, JsonPath jsonPath)
RedisJsonReactiveCommands
JsonPath
in the JSON document.public Flux<JsonType> jsonType(K key)
RedisJsonReactiveCommands
JsonPath.ROOT_PATH
in the JSON document.jsonType
in interface RedisJsonReactiveCommands<K,V>
key
- the key holding the JSON document.JsonPath
public Flux<K> keys(K pattern)
RedisKeyReactiveCommands
keys
in interface RedisKeyReactiveCommands<K,V>
pattern
- the pattern type: patternkey (pattern).pattern
.public Mono<Long> keys(KeyStreamingChannel<K> channel, K pattern)
RedisKeyReactiveCommands
keys
in interface RedisKeyReactiveCommands<K,V>
channel
- the channel.pattern
- the pattern.pattern
.public Mono<Date> lastsave()
RedisServerReactiveCommands
lastsave
in interface RedisServerReactiveCommands<K,V>
public Mono<V> lindex(K key, long index)
RedisListReactiveCommands
lindex
in interface RedisListReactiveCommands<K,V>
key
- the key.index
- the index type: long.null
when index
is out of range.public Mono<Long> linsert(K key, boolean before, V pivot, V value)
RedisListReactiveCommands
linsert
in interface RedisListReactiveCommands<K,V>
key
- the key.before
- the before.pivot
- the pivot.value
- the value.-1
when the value pivot
was not found.public Mono<Long> llen(K key)
RedisListReactiveCommands
llen
in interface RedisListReactiveCommands<K,V>
key
- the key.key
.public Mono<V> lmove(K source, K destination, LMoveArgs args)
RedisListReactiveCommands
lmove
in interface RedisListReactiveCommands<K,V>
source
- the source key.destination
- the destination type: key.args
- command arguments to configure source and destination directions.public Mono<KeyValue<K,List<V>>> lmpop(LMPopArgs args, K... keys)
RedisListReactiveCommands
lmpop
in interface RedisListReactiveCommands<K,V>
args
- the additional command arguments.keys
- the keys.null
when key
does not exist.public Mono<V> lpop(K key)
RedisListReactiveCommands
lpop
in interface RedisListReactiveCommands<K,V>
key
- the key.null
when key
does not exist.public Flux<V> lpop(K key, long count)
RedisListReactiveCommands
count
elements in a list.lpop
in interface RedisListReactiveCommands<K,V>
key
- the key.count
- the number of elements to return.count
elements, or null
when key
does not exist.public Mono<Long> lpos(K key, V value)
RedisListReactiveCommands
null
is returned. The returned elements indexes are
always referring to what RedisListReactiveCommands.lindex(java.lang.Object, long)
would return. So first element from head is 0
,
and so forth.lpos
in interface RedisListReactiveCommands<K,V>
key
- the key.value
- the element to search for.public Mono<Long> lpos(K key, V value, LPosArgs args)
RedisListReactiveCommands
null
is returned. The returned elements indexes are
always referring to what RedisListReactiveCommands.lindex(java.lang.Object, long)
would return. So first element from head is 0
,
and so forth.lpos
in interface RedisListReactiveCommands<K,V>
key
- the key.value
- the element to search for.args
- command arguments to configureFIRST
and MAXLEN
options.public Flux<Long> lpos(K key, V value, int count)
RedisListReactiveCommands
COUNT
option. By default, when no options are
given, it will scan the list from head to tail, looking for the first match of "element". The returned elements indexes
are always referring to what RedisListReactiveCommands.lindex(java.lang.Object, long)
would return. So first element from head is
0
, and so forth.lpos
in interface RedisListReactiveCommands<K,V>
key
- the key.value
- the element to search for.count
- limit the number of matches.public Flux<Long> lpos(K key, V value, int count, LPosArgs args)
RedisListReactiveCommands
COUNT
option. By default, when no options are
given, it will scan the list from head to tail, looking for the first match of "element". The returned elements indexes
are always referring to what RedisListReactiveCommands.lindex(java.lang.Object, long)
would return. So first element from head is
0
, and so forth.lpos
in interface RedisListReactiveCommands<K,V>
key
- the key.value
- the element to search for.count
- limit the number of matches.args
- command arguments to configureFIRST
and MAXLEN
options.public Mono<Long> lpush(K key, V... values)
RedisListReactiveCommands
lpush
in interface RedisListReactiveCommands<K,V>
key
- the key.values
- the value.public Mono<Long> lpushx(K key, V... values)
RedisListReactiveCommands
lpushx
in interface RedisListReactiveCommands<K,V>
key
- the key.values
- the values.public Flux<V> lrange(K key, long start, long stop)
RedisListReactiveCommands
lrange
in interface RedisListReactiveCommands<K,V>
key
- the key.start
- the start type: long.stop
- the stop type: long.public Mono<Long> lrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
RedisListReactiveCommands
lrange
in interface RedisListReactiveCommands<K,V>
channel
- the channel.key
- the key.start
- the start type: long.stop
- the stop type: long.public Mono<Long> lrem(K key, long count, V value)
RedisListReactiveCommands
lrem
in interface RedisListReactiveCommands<K,V>
key
- the key.count
- the count type: long.value
- the value.public Mono<String> lset(K key, long index, V value)
RedisListReactiveCommands
lset
in interface RedisListReactiveCommands<K,V>
key
- the key.index
- the index type: long.value
- the value.public Mono<String> ltrim(K key, long start, long stop)
RedisListReactiveCommands
ltrim
in interface RedisListReactiveCommands<K,V>
key
- the key.start
- the start type: long.stop
- the stop type: long.public Mono<Long> memoryUsage(K key)
RedisServerReactiveCommands
memoryUsage
in interface RedisServerReactiveCommands<K,V>
public Flux<KeyValue<K,V>> mget(K... keys)
RedisStringReactiveCommands
mget
in interface RedisStringReactiveCommands<K,V>
keys
- the key.public Mono<Long> mget(KeyValueStreamingChannel<K,V> channel, K... keys)
RedisStringReactiveCommands
mget
in interface RedisStringReactiveCommands<K,V>
channel
- the channel.keys
- the keys.public Mono<String> migrate(String host, int port, K key, int db, long timeout)
RedisKeyReactiveCommands
migrate
in interface RedisKeyReactiveCommands<K,V>
host
- the host.port
- the port.key
- the key.db
- the database.timeout
- the timeout in milliseconds.public Mono<String> migrate(String host, int port, int db, long timeout, MigrateArgs<K> migrateArgs)
RedisKeyReactiveCommands
migrate
in interface RedisKeyReactiveCommands<K,V>
host
- the host.port
- the port.db
- the database.timeout
- the timeout in milliseconds.migrateArgs
- migrate args that allow to configure further options.public Mono<Boolean> move(K key, int db)
RedisKeyReactiveCommands
move
in interface RedisKeyReactiveCommands<K,V>
key
- the key.db
- the db type: long.public Mono<String> mset(Map<K,V> map)
RedisStringReactiveCommands
mset
in interface RedisStringReactiveCommands<K,V>
map
- the map.OK
since MSET
can't fail.public Mono<Boolean> msetnx(Map<K,V> map)
RedisStringReactiveCommands
msetnx
in interface RedisStringReactiveCommands<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).public Mono<String> multi()
RedisTransactionalReactiveCommands
multi
in interface RedisTransactionalReactiveCommands<K,V>
OK
.public Mono<String> objectEncoding(K key)
RedisKeyReactiveCommands
key
.objectEncoding
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<Long> objectFreq(K key)
RedisKeyReactiveCommands
key
.objectFreq
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<Long> objectIdletime(K key)
RedisKeyReactiveCommands
objectIdletime
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<Long> objectRefcount(K key)
RedisKeyReactiveCommands
objectRefcount
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<Boolean> persist(K key)
RedisKeyReactiveCommands
persist
in interface RedisKeyReactiveCommands<K,V>
key
- the key.true
if the timeout was removed. false
if key
does not exist or does not have an
associated timeout.public Flux<Long> hpersist(K key, K... fields)
RedisHashReactiveCommands
hpersist
in interface RedisHashReactiveCommands<K,V>
key
- the key.fields
- one or more fields to remove the TTL for.Long
values for each of the fields provided: 1
indicating expiration time is removed;
-1
field has no expiration time to be removed; -2
indicating there is no such fieldpublic Mono<Boolean> pexpire(K key, long milliseconds)
RedisKeyReactiveCommands
pexpire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds type: long.true
if the timeout was set. false
if key
does not exist or
the timeout could not be set.public Mono<Boolean> pexpire(K key, long milliseconds, ExpireArgs expireArgs)
RedisKeyReactiveCommands
pexpire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds type: long.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not exist or
the timeout could not be set.public Mono<Boolean> pexpire(K key, Duration milliseconds)
RedisKeyReactiveCommands
pexpire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds.true
if the timeout was set. false
if key
does not exist or
the timeout could not be set.public Mono<Boolean> pexpire(K key, Duration milliseconds, ExpireArgs expireArgs)
RedisKeyReactiveCommands
pexpire
in interface RedisKeyReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not exist or
the timeout could not be set.public Mono<Boolean> pexpireat(K key, Date timestamp)
RedisKeyReactiveCommands
pexpireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> pexpireat(K key, Date timestamp, ExpireArgs expireArgs)
RedisKeyReactiveCommands
pexpireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> pexpireat(K key, Instant timestamp)
RedisKeyReactiveCommands
pexpireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> pexpireat(K key, Instant timestamp, ExpireArgs expireArgs)
RedisKeyReactiveCommands
pexpireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> pexpireat(K key, long timestamp)
RedisKeyReactiveCommands
pexpireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Boolean> pexpireat(K key, long timestamp, ExpireArgs expireArgs)
RedisKeyReactiveCommands
pexpireat
in interface RedisKeyReactiveCommands<K,V>
key
- the key.timestamp
- the milliseconds-timestamp type: posix time.expireArgs
- the expiry arguments.true
if the timeout was set. false
if key
does not
exist or the timeout could not be set (see: EXPIRE
).public Mono<Long> pexpiretime(K key)
RedisKeyReactiveCommands
pexpiretime
in interface RedisKeyReactiveCommands<K,V>
key
- the key.-1
if the key exists but has no associated expiration time. The command returns -2
if the key
does not exist.public Mono<Long> pfadd(K key, V... values)
RedisHLLReactiveCommands
pfadd
in interface RedisHLLReactiveCommands<K,V>
key
- the key.values
- the values.public Mono<Long> pfcount(K... keys)
RedisHLLReactiveCommands
pfcount
in interface RedisHLLReactiveCommands<K,V>
keys
- the keys.PFADD
.public Mono<String> pfmerge(K destkey, K... sourcekeys)
RedisHLLReactiveCommands
pfmerge
in interface RedisHLLReactiveCommands<K,V>
destkey
- the destination key.sourcekeys
- the source key.OK
.public Mono<String> ping()
BaseRedisReactiveCommands
ping
in interface BaseRedisReactiveCommands<K,V>
public Mono<String> psetex(K key, long milliseconds, V value)
RedisStringReactiveCommands
psetex
in interface RedisStringReactiveCommands<K,V>
key
- the key.milliseconds
- the milliseconds type: long.value
- the value.public Mono<Long> pttl(K key)
RedisKeyReactiveCommands
pttl
in interface RedisKeyReactiveCommands<K,V>
key
- the key.-1
if the key exists but has no associated expiration time. The command returns -2
if the key
does not exist.public Mono<Long> publish(K channel, V message)
BaseRedisReactiveCommands
publish
in interface BaseRedisReactiveCommands<K,V>
channel
- the channel type: key.message
- the message type: value.public Flux<K> pubsubChannels()
BaseRedisReactiveCommands
pubsubChannels
in interface BaseRedisReactiveCommands<K,V>
public Flux<K> pubsubChannels(K channel)
BaseRedisReactiveCommands
pubsubChannels
in interface BaseRedisReactiveCommands<K,V>
channel
- the key.public Mono<Long> pubsubNumpat()
BaseRedisReactiveCommands
pubsubNumpat
in interface BaseRedisReactiveCommands<K,V>
public Mono<Map<K,Long>> pubsubNumsub(K... channels)
BaseRedisReactiveCommands
pubsubNumsub
in interface BaseRedisReactiveCommands<K,V>
channels
- channel keys.public Flux<K> pubsubShardChannels()
BaseRedisReactiveCommands
pubsubShardChannels
in interface BaseRedisReactiveCommands<K,V>
public Flux<K> pubsubShardChannels(K pattern)
BaseRedisReactiveCommands
pubsubShardChannels
in interface BaseRedisReactiveCommands<K,V>
pattern
- the pattern type: patternkey (pattern).public Mono<Map<K,Long>> pubsubShardNumsub(K... shardChannels)
BaseRedisReactiveCommands
pubsubShardNumsub
in interface BaseRedisReactiveCommands<K,V>
shardChannels
- channel keys.public Mono<String> quit()
BaseRedisReactiveCommands
StatefulConnection.close()
to close connections and
release resources.quit
in interface BaseRedisReactiveCommands<K,V>
public Mono<K> randomkey()
RedisKeyReactiveCommands
randomkey
in interface RedisKeyReactiveCommands<K,V>
null
when the database is empty.public Mono<String> readOnly()
BaseRedisReactiveCommands
readOnly
in interface BaseRedisReactiveCommands<K,V>
readOnly
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> readWrite()
BaseRedisReactiveCommands
readWrite
in interface BaseRedisReactiveCommands<K,V>
readWrite
in interface RedisClusterReactiveCommands<K,V>
public Mono<String> rename(K key, K newKey)
RedisKeyReactiveCommands
rename
in interface RedisKeyReactiveCommands<K,V>
key
- the key.newKey
- the newkey type: key.public Mono<Boolean> renamenx(K key, K newKey)
RedisKeyReactiveCommands
renamenx
in interface RedisKeyReactiveCommands<K,V>
key
- the key.newKey
- the newkey type: key.true
if key
was renamed to newkey
. false
if newkey
already exists.public Mono<String> replicaof(String host, int port)
RedisServerReactiveCommands
replicaof
in interface RedisServerReactiveCommands<K,V>
host
- the host type: string.port
- the port type: string.public Mono<String> replicaofNoOne()
RedisServerReactiveCommands
replicaofNoOne
in interface RedisServerReactiveCommands<K,V>
public void reset()
BaseRedisReactiveCommands
reset
in interface BaseRedisReactiveCommands<K,V>
public Mono<String> restore(K key, long ttl, byte[] value)
RedisKeyReactiveCommands
restore
in interface RedisKeyReactiveCommands<K,V>
key
- the key.ttl
- the ttl type: long.value
- the serialized-value type: string.public Mono<String> restore(K key, byte[] value, RestoreArgs args)
RedisKeyReactiveCommands
restore
in interface RedisKeyReactiveCommands<K,V>
key
- the key.value
- the serialized-value type: string.args
- the RestoreArgs
, must not be null
.public Flux<Object> role()
BaseRedisReactiveCommands
role
in interface BaseRedisReactiveCommands<K,V>
public Mono<V> rpop(K key)
RedisListReactiveCommands
rpop
in interface RedisListReactiveCommands<K,V>
key
- the key.null
when key
does not exist.public Flux<V> rpop(K key, long count)
RedisListReactiveCommands
count
elements in a list.rpop
in interface RedisListReactiveCommands<K,V>
key
- the key.count
- the number of elements to return.count
elements, or null
when key
does not exist.public Mono<V> rpoplpush(K source, K destination)
RedisListReactiveCommands
rpoplpush
in interface RedisListReactiveCommands<K,V>
source
- the source key.destination
- the destination type: key.public Mono<Long> rpush(K key, V... values)
RedisListReactiveCommands
rpush
in interface RedisListReactiveCommands<K,V>
key
- the key.values
- the value.public Mono<Long> rpushx(K key, V... values)
RedisListReactiveCommands
rpushx
in interface RedisListReactiveCommands<K,V>
key
- the key.values
- the values.public Mono<Long> sadd(K key, V... members)
RedisSetReactiveCommands
sadd
in interface RedisSetReactiveCommands<K,V>
key
- the key.members
- the member type: value.public Mono<String> save()
RedisServerReactiveCommands
save
in interface RedisServerReactiveCommands<K,V>
public Mono<KeyScanCursor<K>> scan()
RedisKeyReactiveCommands
scan
in interface RedisKeyReactiveCommands<K,V>
public Mono<KeyScanCursor<K>> scan(ScanArgs scanArgs)
RedisKeyReactiveCommands
KeyScanArgs
to specify SCAN
-specific arguments.scan
in interface RedisKeyReactiveCommands<K,V>
scanArgs
- scan arguments.KeyScanArgs
public Mono<KeyScanCursor<K>> scan(ScanCursor scanCursor, ScanArgs scanArgs)
RedisKeyReactiveCommands
KeyScanArgs
to specify SCAN
-specific arguments.scan
in interface RedisKeyReactiveCommands<K,V>
scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.KeyScanArgs
public Mono<KeyScanCursor<K>> scan(ScanCursor scanCursor)
RedisKeyReactiveCommands
scan
in interface RedisKeyReactiveCommands<K,V>
scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel)
RedisKeyReactiveCommands
scan
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanArgs scanArgs)
RedisKeyReactiveCommands
KeyScanArgs
to specify SCAN
-specific arguments.scan
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.scanArgs
- scan arguments.KeyScanArgs
public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)
RedisKeyReactiveCommands
KeyScanArgs
to specify SCAN
-specific arguments.scan
in interface RedisKeyReactiveCommands<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.KeyScanArgs
public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor)
RedisKeyReactiveCommands
scan
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<Long> scard(K key)
RedisSetReactiveCommands
scard
in interface RedisSetReactiveCommands<K,V>
key
- the key.false
if key
does not
exist.public Flux<Boolean> scriptExists(String... digests)
RedisScriptingReactiveCommands
scriptExists
in interface RedisScriptingReactiveCommands<K,V>
digests
- script digests.public Mono<String> scriptFlush()
RedisScriptingReactiveCommands
scriptFlush
in interface RedisScriptingReactiveCommands<K,V>
public Mono<String> scriptFlush(FlushMode flushMode)
RedisScriptingReactiveCommands
FlushMode
.scriptFlush
in interface RedisScriptingReactiveCommands<K,V>
flushMode
- the flush mode (sync/async).public Mono<String> scriptKill()
RedisScriptingReactiveCommands
scriptKill
in interface RedisScriptingReactiveCommands<K,V>
public Mono<String> scriptLoad(String script)
RedisScriptingReactiveCommands
scriptLoad
in interface RedisScriptingReactiveCommands<K,V>
script
- script content.public Mono<String> scriptLoad(byte[] script)
RedisScriptingReactiveCommands
scriptLoad
in interface RedisScriptingReactiveCommands<K,V>
script
- script content.public Flux<V> sdiff(K... keys)
RedisSetReactiveCommands
sdiff
in interface RedisSetReactiveCommands<K,V>
keys
- the key.public Mono<Long> sdiff(ValueStreamingChannel<V> channel, K... keys)
RedisSetReactiveCommands
sdiff
in interface RedisSetReactiveCommands<K,V>
channel
- the channel.keys
- the keys.public Mono<Long> sdiffstore(K destination, K... keys)
RedisSetReactiveCommands
sdiffstore
in interface RedisSetReactiveCommands<K,V>
destination
- the destination type: key.keys
- the key.public Mono<String> set(K key, V value)
RedisStringReactiveCommands
set
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.OK
if SET
was executed correctly.public Mono<String> set(K key, V value, SetArgs setArgs)
RedisStringReactiveCommands
set
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.setArgs
- the setArgs.OK
if SET
was executed correctly.public Mono<V> setGet(K key, V value)
RedisStringReactiveCommands
setGet
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.key
, or null
when key
did not exist.public Mono<V> setGet(K key, V value, SetArgs setArgs)
RedisStringReactiveCommands
setGet
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.setArgs
- the command arguments.key
, or null
when key
did not exist.public void setAutoFlushCommands(boolean autoFlush)
BaseRedisReactiveCommands
true
. If autoFlushCommands is disabled, multiple commands can
be issued without writing them actually to the transport. Commands are buffered until a BaseRedisReactiveCommands.flushCommands()
is
issued. After calling BaseRedisReactiveCommands.flushCommands()
commands are sent to the transport and executed by Redis.setAutoFlushCommands
in interface BaseRedisReactiveCommands<K,V>
autoFlush
- state of autoFlush.public void setTimeout(Duration timeout)
RedisClusterReactiveCommands
setTimeout
in interface RedisClusterReactiveCommands<K,V>
timeout
- the timeout valuepublic Mono<Long> setbit(K key, long offset, int value)
RedisStringReactiveCommands
setbit
in interface RedisStringReactiveCommands<K,V>
key
- the key.offset
- the offset type: long.value
- the value type: string.public Mono<String> setex(K key, long seconds, V value)
RedisStringReactiveCommands
setex
in interface RedisStringReactiveCommands<K,V>
key
- the key.seconds
- the seconds type: long.value
- the value.public Mono<Boolean> setnx(K key, V value)
RedisStringReactiveCommands
setnx
in interface RedisStringReactiveCommands<K,V>
key
- the key.value
- the value.1
if the key was set 0
if the key was not set.public Mono<Long> setrange(K key, long offset, V value)
RedisStringReactiveCommands
setrange
in interface RedisStringReactiveCommands<K,V>
key
- the key.offset
- the offset type: long.value
- the value.public Mono<Void> shutdown(boolean save)
RedisServerReactiveCommands
shutdown
in interface RedisServerReactiveCommands<K,V>
save
- true
force save operation.public Mono<Void> shutdown(ShutdownArgs args)
RedisServerReactiveCommands
shutdown
in interface RedisServerReactiveCommands<K,V>
public Flux<V> sinter(K... keys)
RedisSetReactiveCommands
sinter
in interface RedisSetReactiveCommands<K,V>
keys
- the key.public Mono<Long> sinter(ValueStreamingChannel<V> channel, K... keys)
RedisSetReactiveCommands
sinter
in interface RedisSetReactiveCommands<K,V>
channel
- the channel.keys
- the keys.public Mono<Long> sintercard(K... keys)
RedisSetReactiveCommands
RedisSetReactiveCommands.sinter(java.lang.Object[])
but instead of returning the result set, it returns
just the cardinality of the result.sintercard
in interface RedisSetReactiveCommands<K,V>
keys
- the keys.public Mono<Long> sintercard(long limit, K... keys)
RedisSetReactiveCommands
RedisSetReactiveCommands.sinter(java.lang.Object[])
but instead of returning the result set, it returns
just the cardinality of the result.sintercard
in interface RedisSetReactiveCommands<K,V>
limit
- If the intersection cardinality reaches limit partway through the computation, the algorithm will exit and
yield limit as the cardinality.keys
- the keys.public Mono<Long> sinterstore(K destination, K... keys)
RedisSetReactiveCommands
sinterstore
in interface RedisSetReactiveCommands<K,V>
destination
- the destination type: key.keys
- the key.public Mono<Boolean> sismember(K key, V member)
RedisSetReactiveCommands
sismember
in interface RedisSetReactiveCommands<K,V>
key
- the key.member
- the member type: value.true
if the element is a member of the set. false
if the element is not a member of the set, or
if key
does not exist.public Mono<String> slaveof(String host, int port)
RedisServerReactiveCommands
slaveof
in interface RedisServerReactiveCommands<K,V>
host
- the host type: string.port
- the port type: string.public Mono<String> slaveofNoOne()
RedisServerReactiveCommands
slaveofNoOne
in interface RedisServerReactiveCommands<K,V>
public Flux<Object> slowlogGet()
RedisServerReactiveCommands
slowlogGet
in interface RedisServerReactiveCommands<K,V>
public Flux<Object> slowlogGet(int count)
RedisServerReactiveCommands
slowlogGet
in interface RedisServerReactiveCommands<K,V>
count
- the count.public Mono<Long> slowlogLen()
RedisServerReactiveCommands
slowlogLen
in interface RedisServerReactiveCommands<K,V>
public Mono<String> slowlogReset()
RedisServerReactiveCommands
slowlogReset
in interface RedisServerReactiveCommands<K,V>
public Flux<V> smembers(K key)
RedisSetReactiveCommands
smembers
in interface RedisSetReactiveCommands<K,V>
key
- the key.public Mono<Long> smembers(ValueStreamingChannel<V> channel, K key)
RedisSetReactiveCommands
smembers
in interface RedisSetReactiveCommands<K,V>
channel
- the channel.key
- the keys.public Flux<Boolean> smismember(K key, V... members)
RedisSetReactiveCommands
smismember
in interface RedisSetReactiveCommands<K,V>
key
- the key.members
- the member type: value.public Mono<Boolean> smove(K source, K destination, V member)
RedisSetReactiveCommands
smove
in interface RedisSetReactiveCommands<K,V>
source
- the source key.destination
- the destination type: key.member
- the member type: value.true
if the element is moved. false
if the element is not a member of source
and no
operation was performed.public Flux<V> sort(K key)
RedisKeyReactiveCommands
sort
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<Long> sort(ValueStreamingChannel<V> channel, K key)
RedisKeyReactiveCommands
sort
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.public Flux<V> sort(K key, SortArgs sortArgs)
RedisKeyReactiveCommands
sort
in interface RedisKeyReactiveCommands<K,V>
key
- the key.sortArgs
- sort arguments.public Mono<Long> sort(ValueStreamingChannel<V> channel, K key, SortArgs sortArgs)
RedisKeyReactiveCommands
sort
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.sortArgs
- sort arguments.public Flux<V> sortReadOnly(K key)
RedisKeyReactiveCommands
sortReadOnly
in interface RedisKeyReactiveCommands<K,V>
key
- the key.public Mono<Long> sortReadOnly(ValueStreamingChannel<V> channel, K key)
RedisKeyReactiveCommands
sortReadOnly
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.public Flux<V> sortReadOnly(K key, SortArgs sortArgs)
RedisKeyReactiveCommands
sortReadOnly
in interface RedisKeyReactiveCommands<K,V>
key
- the key.sortArgs
- sort arguments.public Mono<Long> sortReadOnly(ValueStreamingChannel<V> channel, K key, SortArgs sortArgs)
RedisKeyReactiveCommands
sortReadOnly
in interface RedisKeyReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.sortArgs
- sort arguments.public Mono<Long> sortStore(K key, SortArgs sortArgs, K destination)
RedisKeyReactiveCommands
sortStore
in interface RedisKeyReactiveCommands<K,V>
key
- the key.sortArgs
- sort arguments.destination
- the destination key to store sort results.public Mono<V> spop(K key)
RedisSetReactiveCommands
spop
in interface RedisSetReactiveCommands<K,V>
key
- the key.null
when key
does not exist.public Flux<V> spop(K key, long count)
RedisSetReactiveCommands
spop
in interface RedisSetReactiveCommands<K,V>
key
- the key.count
- number of members to pop.null
when key
does not exist.public Mono<Long> spublish(K shardChannel, V message)
BaseRedisReactiveCommands
spublish
in interface BaseRedisReactiveCommands<K,V>
shardChannel
- the shard channel type: key.message
- the message type: value.public Mono<V> srandmember(K key)
RedisSetReactiveCommands
srandmember
in interface RedisSetReactiveCommands<K,V>
key
- the key.count
argument the command returns a Bulk Reply with the
randomly selected element, or null
when key
does not exist.public Flux<V> srandmember(K key, long count)
RedisSetReactiveCommands
srandmember
in interface RedisSetReactiveCommands<K,V>
key
- the key.count
- the count type: long.count
argument the command returns a Bulk Reply with the
randomly selected element, or null
when key
does not exist.public Mono<Long> srandmember(ValueStreamingChannel<V> channel, K key, long count)
RedisSetReactiveCommands
srandmember
in interface RedisSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.count
- the count.public Mono<Long> srem(K key, V... members)
RedisSetReactiveCommands
srem
in interface RedisSetReactiveCommands<K,V>
key
- the key.members
- the member type: value.public Mono<ValueScanCursor<V>> sscan(K key)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
key
- the key.public Mono<ValueScanCursor<V>> sscan(K key, ScanArgs scanArgs)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
key
- the key.scanArgs
- scan arguments.public Mono<ValueScanCursor<V>> sscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<ValueScanCursor<V>> sscan(K key, ScanCursor scanCursor)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.public Mono<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.scanArgs
- scan arguments.public Mono<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)
RedisSetReactiveCommands
sscan
in interface RedisSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<Long> strlen(K key)
RedisStringReactiveCommands
strlen
in interface RedisStringReactiveCommands<K,V>
key
- the key.key
, or 0
when key
does not exist.public Mono<StringMatchResult> stralgoLcs(StrAlgoArgs strAlgoArgs)
RedisStringReactiveCommands
LEN
is given the command returns the length of the longest common substring.IDX
is given the command returns an array with the LCS length and all the ranges
in both the strings, start and end offset for each string, where there are matches. When
WITHMATCHLEN
is given each array representing a match will also have the length of the
match.stralgoLcs
in interface RedisStringReactiveCommands<K,V>
strAlgoArgs
- command arguments.public Flux<V> sunion(K... keys)
RedisSetReactiveCommands
sunion
in interface RedisSetReactiveCommands<K,V>
keys
- the key.public Mono<Long> sunion(ValueStreamingChannel<V> channel, K... keys)
RedisSetReactiveCommands
sunion
in interface RedisSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.keys
- the keys.public Mono<Long> sunionstore(K destination, K... keys)
RedisSetReactiveCommands
sunionstore
in interface RedisSetReactiveCommands<K,V>
destination
- the destination type: key.keys
- the key.public Flux<V> time()
RedisServerReactiveCommands
time
in interface RedisServerReactiveCommands<K,V>
public Mono<Long> touch(K... keys)
RedisKeyReactiveCommands
touch
in interface RedisKeyReactiveCommands<K,V>
keys
- the keys.public Mono<Long> ttl(K key)
RedisKeyReactiveCommands
ttl
in interface RedisKeyReactiveCommands<K,V>
key
- the key.-1
if the key exists but has no associated expiration time. The command returns -2
if the key
does not exist.public Mono<String> type(K key)
RedisKeyReactiveCommands
type
in interface RedisKeyReactiveCommands<K,V>
key
- the key.key
, or none
when key
does not exist.public Mono<Long> unlink(K... keys)
RedisKeyReactiveCommands
unlink
in interface RedisKeyReactiveCommands<K,V>
keys
- the keys.public Mono<Boolean> copy(K source, K destination)
RedisKeyReactiveCommands
copy
in interface RedisKeyReactiveCommands<K,V>
source
- the source.destination
- the destination.true
if source was copied. false
if source was not copied.public Mono<Boolean> copy(K source, K destination, CopyArgs copyArgs)
RedisKeyReactiveCommands
copy
in interface RedisKeyReactiveCommands<K,V>
source
- the source.destination
- the destination.copyArgs
- the copyArgs.true
if source was copied. false
if source was not copied.public Mono<String> unwatch()
RedisTransactionalReactiveCommands
unwatch
in interface RedisTransactionalReactiveCommands<K,V>
OK
.public Mono<Long> waitForReplication(int replicas, long timeout)
BaseRedisReactiveCommands
waitForReplication
in interface BaseRedisReactiveCommands<K,V>
replicas
- minimum number of replicas.timeout
- timeout in milliseconds.public Mono<String> watch(K... keys)
RedisTransactionalReactiveCommands
watch
in interface RedisTransactionalReactiveCommands<K,V>
keys
- the key.OK
.public Mono<Long> xack(K key, K group, String... messageIds)
RedisStreamReactiveCommands
xack
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.group
- name of the consumer group.messageIds
- message Id's to acknowledge.public Mono<String> xadd(K key, Map<K,V> body)
RedisStreamReactiveCommands
key
.xadd
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.body
- message body.public Mono<String> xadd(K key, XAddArgs args, Map<K,V> body)
RedisStreamReactiveCommands
key
.xadd
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.body
- message body.public Mono<String> xadd(K key, Object... keysAndValues)
RedisStreamReactiveCommands
key
.xadd
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.keysAndValues
- message body.public Mono<String> xadd(K key, XAddArgs args, Object... keysAndValues)
RedisStreamReactiveCommands
key
.xadd
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.keysAndValues
- message body.public Mono<ClaimedMessages<K,V>> xautoclaim(K key, XAutoClaimArgs<K> args)
RedisStreamReactiveCommands
xautoclaim
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.public Flux<StreamMessage<K,V>> xclaim(K key, Consumer<K> consumer, long minIdleTime, String... messageIds)
RedisStreamReactiveCommands
xclaim
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.consumer
- consumer identified by group name and consumer key.messageIds
- message Id's to claim.StreamMessage
.public Flux<StreamMessage<K,V>> xclaim(K key, Consumer<K> consumer, XClaimArgs args, String... messageIds)
RedisStreamReactiveCommands
Note that setting the JUSTID
flag (calling this method with XClaimArgs.justid()
) suppresses the message
bode and StreamMessage.getBody()
is null
.
xclaim
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.consumer
- consumer identified by group name and consumer key.messageIds
- message Id's to claim.StreamMessage
.public Mono<Long> xdel(K key, String... messageIds)
RedisStreamReactiveCommands
xdel
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.messageIds
- stream message Id's.public Mono<String> xgroupCreate(XReadArgs.StreamOffset<K> streamOffset, K group)
RedisStreamReactiveCommands
xgroupCreate
in interface RedisStreamReactiveCommands<K,V>
streamOffset
- name of the stream containing the offset to set.group
- name of the consumer group.true
if successful.public Mono<String> xgroupCreate(XReadArgs.StreamOffset<K> streamOffset, K group, XGroupCreateArgs args)
RedisStreamReactiveCommands
xgroupCreate
in interface RedisStreamReactiveCommands<K,V>
streamOffset
- name of the stream containing the offset to set.group
- name of the consumer group.true
if successful.public Mono<Boolean> xgroupCreateconsumer(K key, Consumer<K> consumer)
RedisStreamReactiveCommands
xgroupCreateconsumer
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.consumer
- consumer identified by group name and consumer key.true
if successful.public Mono<Long> xgroupDelconsumer(K key, Consumer<K> consumer)
RedisStreamReactiveCommands
xgroupDelconsumer
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.consumer
- consumer identified by group name and consumer key.public Mono<Boolean> xgroupDestroy(K key, K group)
RedisStreamReactiveCommands
xgroupDestroy
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.group
- name of the consumer group.true
if successful.public Mono<String> xgroupSetid(XReadArgs.StreamOffset<K> streamOffset, K group)
RedisStreamReactiveCommands
group
id.xgroupSetid
in interface RedisStreamReactiveCommands<K,V>
streamOffset
- name of the stream containing the offset to set.group
- name of the consumer group.public Flux<Object> xinfoStream(K key)
RedisStreamReactiveCommands
key
.xinfoStream
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.public Flux<Object> xinfoGroups(K key)
RedisStreamReactiveCommands
key
.xinfoGroups
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.public Flux<Object> xinfoConsumers(K key, K group)
RedisStreamReactiveCommands
group
and stream at key
.xinfoConsumers
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.group
- name of the consumer group.public Mono<Long> xlen(K key)
RedisStreamReactiveCommands
xlen
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.public Mono<PendingMessages> xpending(K key, K group)
RedisStreamReactiveCommands
group
.xpending
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.group
- name of the consumer group.public Flux<PendingMessage> xpending(K key, K group, Range<String> range, Limit limit)
RedisStreamReactiveCommands
Range
.xpending
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.group
- name of the consumer group.range
- must not be null
.limit
- must not be null
.public Flux<PendingMessage> xpending(K key, Consumer<K> consumer, Range<String> range, Limit limit)
RedisStreamReactiveCommands
Range
.xpending
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.consumer
- consumer identified by group name and consumer key.range
- must not be null
.limit
- must not be null
.public Flux<PendingMessage> xpending(K key, XPendingArgs<K> args)
RedisStreamReactiveCommands
XPendingArgs
.xpending
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.public Flux<StreamMessage<K,V>> xrange(K key, Range<String> range)
RedisStreamReactiveCommands
Range
.xrange
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.range
- must not be null
.public Flux<StreamMessage<K,V>> xrange(K key, Range<String> range, Limit limit)
RedisStreamReactiveCommands
xrange
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.range
- must not be null
.limit
- must not be null
.public Flux<StreamMessage<K,V>> xread(XReadArgs.StreamOffset<K>... streams)
RedisStreamReactiveCommands
XReadArgs.StreamOffset
s.xread
in interface RedisStreamReactiveCommands<K,V>
streams
- the streams to read from.public Flux<StreamMessage<K,V>> xread(XReadArgs args, XReadArgs.StreamOffset<K>... streams)
RedisStreamReactiveCommands
XReadArgs.StreamOffset
s.xread
in interface RedisStreamReactiveCommands<K,V>
args
- read arguments.streams
- the streams to read from.public Flux<StreamMessage<K,V>> xreadgroup(Consumer<K> consumer, XReadArgs.StreamOffset<K>... streams)
RedisStreamReactiveCommands
XReadArgs.StreamOffset
s using a consumer group.xreadgroup
in interface RedisStreamReactiveCommands<K,V>
consumer
- consumer/group.streams
- the streams to read from.public Flux<StreamMessage<K,V>> xreadgroup(Consumer<K> consumer, XReadArgs args, XReadArgs.StreamOffset<K>... streams)
RedisStreamReactiveCommands
XReadArgs.StreamOffset
s using a consumer group.xreadgroup
in interface RedisStreamReactiveCommands<K,V>
consumer
- consumer/group.args
- read arguments.streams
- the streams to read from.public Flux<StreamMessage<K,V>> xrevrange(K key, Range<String> range)
RedisStreamReactiveCommands
Range
in reverse order.xrevrange
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.range
- must not be null
.public Flux<StreamMessage<K,V>> xrevrange(K key, Range<String> range, Limit limit)
RedisStreamReactiveCommands
xrevrange
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.range
- must not be null
.limit
- must not be null
.public Mono<Long> xtrim(K key, long count)
RedisStreamReactiveCommands
count
elements.xtrim
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.count
- length of the stream.public Mono<Long> xtrim(K key, boolean approximateTrimming, long count)
RedisStreamReactiveCommands
count
elements.xtrim
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.approximateTrimming
- true
to trim approximately using the ~
flag.count
- length of the stream.public Mono<Long> xtrim(K key, XTrimArgs args)
RedisStreamReactiveCommands
XTrimArgs
.xtrim
in interface RedisStreamReactiveCommands<K,V>
key
- the stream key.public Mono<KeyValue<K,ScoredValue<V>>> bzmpop(long timeout, ZPopArgs args, K... keys)
RedisSortedSetReactiveCommands
bzmpop
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.Value.empty()
.public Mono<KeyValue<K,List<ScoredValue<V>>>> bzmpop(long timeout, long count, ZPopArgs args, K... keys)
RedisSortedSetReactiveCommands
bzmpop
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.count
- number of elements to pop.args
- the command args.keys
- the keys.Value.empty()
.public Mono<KeyValue<K,ScoredValue<V>>> bzmpop(double timeout, ZPopArgs args, K... keys)
RedisSortedSetReactiveCommands
bzmpop
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.Value.empty()
.public Mono<KeyValue<K,List<ScoredValue<V>>>> bzmpop(double timeout, int count, ZPopArgs args, K... keys)
RedisSortedSetReactiveCommands
bzmpop
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.count
- number of elements to pop.args
- the command args.keys
- the keys.Value.empty()
.public Mono<KeyValue<K,ScoredValue<V>>> bzpopmin(long timeout, K... keys)
RedisSortedSetReactiveCommands
bzpopmin
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.public Mono<KeyValue<K,ScoredValue<V>>> bzpopmin(double timeout, K... keys)
RedisSortedSetReactiveCommands
bzpopmin
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.public Mono<KeyValue<K,ScoredValue<V>>> bzpopmax(long timeout, K... keys)
RedisSortedSetReactiveCommands
bzpopmax
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.public Mono<KeyValue<K,ScoredValue<V>>> bzpopmax(double timeout, K... keys)
RedisSortedSetReactiveCommands
bzpopmax
in interface RedisSortedSetReactiveCommands<K,V>
timeout
- the timeout in seconds.keys
- the keys.public Mono<Long> zadd(K key, double score, V member)
RedisSortedSetReactiveCommands
zadd
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.score
- the score.member
- the member.public Mono<Long> zadd(K key, Object... scoresAndValues)
RedisSortedSetReactiveCommands
zadd
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.scoresAndValues
- the scoresAndValue tuples (score,value,score,value,...).public Mono<Long> zadd(K key, ScoredValue<V>... scoredValues)
RedisSortedSetReactiveCommands
zadd
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.scoredValues
- the scored values.public Mono<Long> zadd(K key, ZAddArgs zAddArgs, double score, V member)
RedisSortedSetReactiveCommands
zadd
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.zAddArgs
- arguments for zadd.score
- the score.member
- the member.public Mono<Long> zadd(K key, ZAddArgs zAddArgs, Object... scoresAndValues)
RedisSortedSetReactiveCommands
zadd
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.zAddArgs
- arguments for zadd.scoresAndValues
- the scoresAndValue tuples (score,value,score,value,...).public Mono<Long> zadd(K key, ZAddArgs zAddArgs, ScoredValue<V>... scoredValues)
RedisSortedSetReactiveCommands
zadd
in interface RedisSortedSetReactiveCommands<K,V>
key
- the ke.zAddArgs
- arguments for zadd.scoredValues
- the scored values.public Mono<Double> zaddincr(K key, double score, V member)
RedisSortedSetReactiveCommands
INCR
option. ZADD
acts like ZINCRBY.zaddincr
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.score
- the score.member
- the member.public Mono<Double> zaddincr(K key, ZAddArgs zAddArgs, double score, V member)
RedisSortedSetReactiveCommands
INCR
option. ZADD
acts like ZINCRBY.zaddincr
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.zAddArgs
- arguments for zadd.score
- the score.member
- the member.public Mono<Long> zcard(K key)
RedisSortedSetReactiveCommands
zcard
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.false
if key
does
not exist.public Mono<Long> zcount(K key, double min, double max)
RedisSortedSetReactiveCommands
zcount
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Mono<Long> zcount(K key, String min, String max)
RedisSortedSetReactiveCommands
zcount
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Mono<Long> zcount(K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
Range
.zcount
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<V> zdiff(K... keys)
RedisSortedSetReactiveCommands
zdiff
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Mono<Long> zdiffstore(K destKey, K... srcKeys)
RedisSortedSetReactiveCommands
zdiffstore
in interface RedisSortedSetReactiveCommands<K,V>
destKey
- the dest key.srcKeys
- the src keys.public Flux<ScoredValue<V>> zdiffWithScores(K... keys)
RedisSortedSetReactiveCommands
zdiffWithScores
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Mono<Double> zincrby(K key, double amount, V member)
RedisSortedSetReactiveCommands
zincrby
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.amount
- the increment type: long.member
- the member type: value.member
(a double precision floating point number), represented
as string.public Flux<V> zinter(K... keys)
RedisSortedSetReactiveCommands
zinter
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Flux<V> zinter(ZAggregateArgs aggregateArgs, K... keys)
RedisSortedSetReactiveCommands
zinter
in interface RedisSortedSetReactiveCommands<K,V>
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.public Mono<Long> zintercard(K... keys)
RedisSortedSetReactiveCommands
RedisSortedSetReactiveCommands.zinter(java.lang.Object[])
, but instead of returning the result set, it returns just
the cardinality of the result.zintercard
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Mono<Long> zintercard(long limit, K... keys)
RedisSortedSetReactiveCommands
RedisSortedSetReactiveCommands.zinter(java.lang.Object[])
, but instead of returning the result set, it returns just
the cardinality of the result.zintercard
in interface RedisSortedSetReactiveCommands<K,V>
limit
- If the intersection cardinality reaches limit partway through the computation, the algorithm will exit and
yield limit as the cardinalitykeys
- the keys.public Flux<ScoredValue<V>> zinterWithScores(K... keys)
RedisSortedSetReactiveCommands
zinterWithScores
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Flux<ScoredValue<V>> zinterWithScores(ZAggregateArgs aggregateArgs, K... keys)
RedisSortedSetReactiveCommands
zinterWithScores
in interface RedisSortedSetReactiveCommands<K,V>
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.public Mono<Long> zinterstore(K destination, K... keys)
RedisSortedSetReactiveCommands
zinterstore
in interface RedisSortedSetReactiveCommands<K,V>
destination
- the destination.keys
- the keys.destination
.public Mono<Long> zinterstore(K destination, ZStoreArgs zStoreArgs, K... keys)
RedisSortedSetReactiveCommands
zinterstore
in interface RedisSortedSetReactiveCommands<K,V>
destination
- the destination.zStoreArgs
- arguments to define aggregation and weights.keys
- the keys.destination
.public Mono<Long> zlexcount(K key, String min, String max)
RedisSortedSetReactiveCommands
zlexcount
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Mono<Long> zlexcount(K key, Range<? extends V> range)
RedisSortedSetReactiveCommands
zlexcount
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Mono<List<Double>> zmscore(K key, V... members)
RedisSortedSetReactiveCommands
zmscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.members
- the member type: value.public Mono<KeyValue<K,ScoredValue<V>>> zmpop(ZPopArgs args, K... keys)
RedisSortedSetReactiveCommands
zmpop
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.Value.empty()
.public Mono<KeyValue<K,List<ScoredValue<V>>>> zmpop(int count, ZPopArgs args, K... keys)
RedisSortedSetReactiveCommands
zmpop
in interface RedisSortedSetReactiveCommands<K,V>
count
- number of elements to pop.args
- the command args.keys
- the keys.Value.empty()
.public Mono<ScoredValue<V>> zpopmin(K key)
RedisSortedSetReactiveCommands
zpopmin
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.public Flux<ScoredValue<V>> zpopmin(K key, long count)
RedisSortedSetReactiveCommands
zpopmin
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.count
- the number of elements to return.public Mono<ScoredValue<V>> zpopmax(K key)
RedisSortedSetReactiveCommands
zpopmax
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.public Flux<ScoredValue<V>> zpopmax(K key, long count)
RedisSortedSetReactiveCommands
zpopmax
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.count
- the number of elements to return.public Mono<V> zrandmember(K key)
RedisSortedSetReactiveCommands
key
.zrandmember
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.public Flux<V> zrandmember(K key, long count)
RedisSortedSetReactiveCommands
count
random members from the sorted set stored at key
.zrandmember
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.count
- the number of members to return. If the provided count argument is positive, return an array of distinct
fields.public Mono<ScoredValue<V>> zrandmemberWithScores(K key)
RedisSortedSetReactiveCommands
key
.zrandmemberWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.public Flux<ScoredValue<V>> zrandmemberWithScores(K key, long count)
RedisSortedSetReactiveCommands
count
random members along their value from the sorted set stored at key
.zrandmemberWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.count
- the number of members to return. If the provided count argument is positive, return an array of distinct
fields.public Flux<V> zrange(K key, long start, long stop)
RedisSortedSetReactiveCommands
zrange
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.start
- the start.stop
- the stop.public Mono<Long> zrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
RedisSortedSetReactiveCommands
zrange
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.start
- the start.stop
- the stop.public Flux<ScoredValue<V>> zrangeWithScores(K key, long start, long stop)
RedisSortedSetReactiveCommands
zrangeWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.start
- the start.stop
- the stop.public Mono<Long> zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
RedisSortedSetReactiveCommands
zrangeWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.start
- the start.stop
- the stop.public Flux<V> zrangebylex(K key, String min, String max)
RedisSortedSetReactiveCommands
zrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Flux<V> zrangebylex(K key, Range<? extends V> range)
RedisSortedSetReactiveCommands
zrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<V> zrangebylex(K key, String min, String max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Flux<V> zrangebylex(K key, Range<? extends V> range, Limit limit)
RedisSortedSetReactiveCommands
zrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.limit
- the limit.public Flux<V> zrangebyscore(K key, double min, double max)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Flux<V> zrangebyscore(K key, String min, String max)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Flux<V> zrangebyscore(K key, double min, double max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Flux<V> zrangebyscore(K key, String min, String max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Flux<V> zrangebyscore(K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<V> zrangebyscore(K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.limit
- the limit.public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.limit
- the limit.public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.limit
- the limit.public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.limit
- the limit.public Mono<Long> zrangestore(K dstKey, K srcKey, Range<Long> range)
RedisSortedSetReactiveCommands
srcKey
and stores the result in the
dstKey
destination key.zrangestore
in interface RedisSortedSetReactiveCommands<K,V>
dstKey
- the dst key.srcKey
- the src key.range
- the rank.public Mono<Long> zrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)
RedisSortedSetReactiveCommands
srcKey
and stores the result in the
dstKey
destination key.zrangestorebylex
in interface RedisSortedSetReactiveCommands<K,V>
dstKey
- the dst key.srcKey
- the src key.range
- the lexicographical range.limit
- the limit to apply.public Mono<Long> zrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
srcKey
and stores the result in the
dstKey
destination key.zrangestorebyscore
in interface RedisSortedSetReactiveCommands<K,V>
dstKey
- the dst key.srcKey
- the src key.range
- the score range.limit
- the limit to apply.public Mono<Long> zrank(K key, V member)
RedisSortedSetReactiveCommands
zrank
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.member
- the member type: value.member
. If member
does not exist in the sorted set or key
does not exist,.public Mono<ScoredValue<Long>> zrankWithScore(K key, V member)
RedisSortedSetReactiveCommands
zrankWithScore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.member
- the member type: value.public Mono<Long> zrem(K key, V... members)
RedisSortedSetReactiveCommands
zrem
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.members
- the member type: value.public Mono<Long> zremrangebylex(K key, String min, String max)
RedisSortedSetReactiveCommands
zremrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Mono<Long> zremrangebylex(K key, Range<? extends V> range)
RedisSortedSetReactiveCommands
zremrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Mono<Long> zremrangebyrank(K key, long start, long stop)
RedisSortedSetReactiveCommands
zremrangebyrank
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.start
- the start type: long.stop
- the stop type: long.public Mono<Long> zremrangebyscore(K key, double min, double max)
RedisSortedSetReactiveCommands
zremrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Mono<Long> zremrangebyscore(K key, String min, String max)
RedisSortedSetReactiveCommands
zremrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.min
- min score.max
- max score.public Mono<Long> zremrangebyscore(K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zremrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<V> zrevrange(K key, long start, long stop)
RedisSortedSetReactiveCommands
zrevrange
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.start
- the start.stop
- the stop.public Mono<Long> zrevrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
RedisSortedSetReactiveCommands
zrevrange
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.start
- the start.stop
- the stop.public Flux<ScoredValue<V>> zrevrangeWithScores(K key, long start, long stop)
RedisSortedSetReactiveCommands
zrevrangeWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.start
- the start.stop
- the stop.public Mono<Long> zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
RedisSortedSetReactiveCommands
zrevrangeWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.start
- the start.stop
- the stop.public Flux<V> zrevrangebylex(K key, Range<? extends V> range)
RedisSortedSetReactiveCommands
zrevrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<V> zrevrangebylex(K key, Range<? extends V> range, Limit limit)
RedisSortedSetReactiveCommands
zrevrangebylex
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.limit
- the limit.public Flux<V> zrevrangebyscore(K key, double max, double min)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.public Flux<V> zrevrangebyscore(K key, String max, String min)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.public Flux<V> zrevrangebyscore(K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<V> zrevrangebyscore(K key, double max, double min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.offset
- the withscores.count
- the number of items.public Flux<V> zrevrangebyscore(K key, String max, String min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Flux<V> zrevrangebyscore(K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.limit
- the limit.public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.max
- max score.min
- min score.public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.max
- max score.min
- min score.public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrevrangebyscore
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.limit
- the limit.public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.range
- the range.limit
- limit.public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.max
- max score.min
- min score.public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.max
- max score.min
- min score.public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrevrangebyscoreWithScores
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.limit
- the limit.public Mono<Long> zrevrangestore(K dstKey, K srcKey, Range<Long> range)
RedisSortedSetReactiveCommands
srcKey
and stores the
result in the dstKey
destination key.zrevrangestore
in interface RedisSortedSetReactiveCommands<K,V>
dstKey
- the dst key.srcKey
- the src key.range
- the rank.public Mono<Long> zrevrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)
RedisSortedSetReactiveCommands
srcKey
and stores
the result in the dstKey
destination key.zrevrangestorebylex
in interface RedisSortedSetReactiveCommands<K,V>
dstKey
- the src key.srcKey
- the dst key.range
- the lexicographical range.limit
- the limit to apply.public Mono<Long> zrevrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)
RedisSortedSetReactiveCommands
zrevrangestorebyscore
in interface RedisSortedSetReactiveCommands<K,V>
dstKey
- the src key.srcKey
- the dst key.range
- the score range.limit
- the limit to apply.public Mono<Long> zrevrank(K key, V member)
RedisSortedSetReactiveCommands
zrevrank
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.member
- the member type: value.member
. If member
does not exist in the sorted set or key
does not exist return null
.public Mono<ScoredValue<Long>> zrevrankWithScore(K key, V member)
RedisSortedSetReactiveCommands
zrevrankWithScore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.member
- the member type: value.public Mono<ScoredValueScanCursor<V>> zscan(K key)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.public Mono<ScoredValueScanCursor<V>> zscan(K key, ScanArgs scanArgs)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.scanArgs
- scan arguments.public Mono<ScoredValueScanCursor<V>> zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<ScoredValueScanCursor<V>> zscan(K key, ScanCursor scanCursor)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.scanArgs
- scan arguments.public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.scanArgs
- scan arguments.public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)
RedisSortedSetReactiveCommands
zscan
in interface RedisSortedSetReactiveCommands<K,V>
channel
- streaming channel that receives a call for every scored value.key
- the key.scanCursor
- cursor to resume from a previous scan, must not be null
.public Mono<Double> zscore(K key, V member)
RedisSortedSetReactiveCommands
zscore
in interface RedisSortedSetReactiveCommands<K,V>
key
- the key.member
- the member type: value.member
(a double precision floating point number), represented as
string.public Flux<V> zunion(K... keys)
RedisSortedSetReactiveCommands
zunion
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Flux<V> zunion(ZAggregateArgs aggregateArgs, K... keys)
RedisSortedSetReactiveCommands
zunion
in interface RedisSortedSetReactiveCommands<K,V>
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.public Flux<ScoredValue<V>> zunionWithScores(K... keys)
RedisSortedSetReactiveCommands
zunionWithScores
in interface RedisSortedSetReactiveCommands<K,V>
keys
- the keys.public Flux<ScoredValue<V>> zunionWithScores(ZAggregateArgs aggregateArgs, K... keys)
RedisSortedSetReactiveCommands
zunionWithScores
in interface RedisSortedSetReactiveCommands<K,V>
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.public Mono<Long> zunionstore(K destination, K... keys)
RedisSortedSetReactiveCommands
zunionstore
in interface RedisSortedSetReactiveCommands<K,V>
destination
- destination key.keys
- source keys.destination
.public Mono<Long> zunionstore(K destination, ZStoreArgs zStoreArgs, K... keys)
RedisSortedSetReactiveCommands
zunionstore
in interface RedisSortedSetReactiveCommands<K,V>
destination
- the destination.zStoreArgs
- arguments to define aggregation and weights.keys
- the keys.destination
.public Mono<List<Map<String,Object>>> clusterLinks()
RedisClusterReactiveCommands
clusterLinks
in interface RedisClusterReactiveCommands<K,V>
Copyright © 2024 lettuce.io. All rights reserved.