java.lang.Object
io.lettuce.core.AbstractRedisReactiveCommands<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
BaseRedisReactiveCommands<K,V>,RedisAclReactiveCommands<K,V>,RedisGeoReactiveCommands<K,V>,RedisHashReactiveCommands<K,V>,RedisHLLReactiveCommands<K,V>,RedisKeyReactiveCommands<K,V>,RedisListReactiveCommands<K,V>,RedisScriptingReactiveCommands<K,V>,RedisServerReactiveCommands<K,V>,RedisSetReactiveCommands<K,V>,RedisSortedSetReactiveCommands<K,V>,RedisStreamReactiveCommands<K,V>,RedisStringReactiveCommands<K,V>,RedisTransactionalReactiveCommands<K,V>,RedisClusterReactiveCommands<K,V>
- Direct Known Subclasses:
RedisAdvancedClusterReactiveCommandsImpl,RedisReactiveCommandsImpl,RedisSentinelReactiveCommandsImpl
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>
A reactive and thread-safe API for a Redis connection.
- Since:
- 4.0
- Author:
- Mark Paluch, Nikolai Perevozchikov, Tugdual Grall, dengliming, Andrey Shlykov
-
Constructor Summary
Constructors Constructor Description AbstractRedisReactiveCommands(StatefulConnection<K,V> connection, RedisCodec<K,V> codec)Initialize a new instance. -
Method Summary
Modifier and Type Method 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>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-ASKredirection.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)ExecuteBITFIELDwith 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 wherefrom 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 wherefrom 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,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,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<Long>clientKill(KillArgs killArgs)Kill connections of clients which are filtered bykillArgs.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>clientPause(long timeout)Stop processing commands from clients for some time.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<Long>clientUnblock(long id, UnblockType type)Unblock the specified blocked client.voidclose()Mono<String>clusterAddSlots(int... slots)Adds slots to the cluster 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 hashslot.Mono<String>clusterDelSlots(int... slots)Removes slots from the cluster node.Mono<String>clusterFailover(boolean force)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 theslot.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<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>clusterNodes()Obtain details about all cluster nodes.Mono<String>clusterReplicate(String nodeId)Turn this node into a replica of the node with the idnodeId.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 awayMono<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 innodeId.Mono<String>clusterSetSlotMigrating(int slot, String nodeId)Flag a slot as MIGRATING (outgoing) towards the node specified innodeId.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.Flux<String>clusterSlaves(String nodeId)List replicas for a certain node identified by itsnodeId.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 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(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.Stringdigest(byte[] script)Create a SHA1 digest from a Lua script.Stringdigest(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>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.Mono<TransactionResult>exec()Execute all commands issued after MULTI.Mono<Long>exists(Iterable<K> keys)Mono<Boolean>exists(K key)Mono<Long>exists(K... keys)Determine how many keys exist.Mono<Boolean>expire(K key, long seconds)Set a key's time to live in seconds.Mono<Boolean>expire(K key, Duration seconds)Set a key's time to live in seconds.Mono<Boolean>expireat(K key, long timestamp)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, Date timestamp)Set the expiration for a key as a UNIX timestamp.Mono<String>flushall()Remove all keys from all databases.Mono<String>flushall(FlushMode flushMode)Remove all keys from all databases using the specifiedFlushMode.Mono<String>flushallAsync()Remove all keys asynchronously from all databases.voidflushCommands()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 specifiedFlushMode.Mono<String>flushdbAsync()Remove all keys asynchronously from the current database.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 pointsfromandto.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 themembers.Flux<V>georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)Retrieve members selected by distance with the center oflongitudeandlatitude.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 oflongitudeandlatitude.Mono<Long>georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Perform aRedisGeoReactiveCommands.georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs)query and store the results in 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)Flux<V>georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit)Retrieve members selected by distance with the center ofmember.Flux<GeoWithin<V>>georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)Retrieve members selected by distance with the center ofmember.Mono<Long>georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Perform aRedisGeoReactiveCommands.georadiusbymember(Object, Object, 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>geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate)Retrieve members selected by distance with the center ofreferencethe searchpredicate.Flux<GeoWithin<V>>geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs)Retrieve members selected by distance with the center ofreferencethe searchpredicate.Mono<Long>geosearchstore(K destination, K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs, boolean storeDist)Perform aRedisGeoReactiveCommands.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.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.Mono<V>hget(K key, K field)Get the value of a hash field.Mono<Long>hgetall(KeyValueStreamingChannel<K,V> channel, K key)Stream over all the fields and values in a hash.Flux<KeyValue<K,V>>hgetall(K key)Get 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.Mono<Long>hkeys(KeyStreamingChannel<K> channel, K key)Stream over all the fields in a hash.Flux<K>hkeys(K key)Get 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.Mono<K>hrandfield(K key)Return a random field from the hash stored atkey.Flux<K>hrandfield(K key, long count)Returncountrandom fields from the hash stored atkey.Mono<KeyValue<K,V>>hrandfieldWithvalues(K key)Return a random field along its value from the hash stored atkey.Flux<KeyValue<K,V>>hrandfieldWithvalues(K key, long count)Returncountrandom fields along their value from the hash stored atkey.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)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<Long>hset(K key, Map<K,V> map)Set multiple hash fields to multiple values.Mono<Boolean>hset(K key, K field, V value)Set the string value of a hash field.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.Mono<Long>hvals(ValueStreamingChannel<V> channel, K key)Stream over all the values in a hash.Flux<V>hvals(K key)Get 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.booleanisOpen()Mono<Long>keys(KeyStreamingChannel<K> channel, K pattern)Find all keys matching the given pattern.Flux<K>keys(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 wherefrom 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>lpop(K key)Remove and get the first element in a list.Flux<V>lpop(K key, long count)Remove and get the firstcountelements 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 theCOUNToption.Flux<Long>lpos(K key, V value, int count, LPosArgs args)Return the index of matching elements inside a Redis list using theCOUNToption.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.Mono<Long>lrange(ValueStreamingChannel<V> channel, K key, long start, long stop)Get a range of elements from a list.Flux<V>lrange(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.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)Flux<KeyValue<K,V>>mget(Iterable<K> keys)Flux<KeyValue<K,V>>mget(K... keys)Get the values of all the given 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 thekey.Mono<Long>objectFreq(K key)Returns the logarithmic access frequency counter of the object stored at the specifiedkey.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, long milliseconds)Set a key's time to live in milliseconds.Mono<Boolean>pexpire(K key, Duration milliseconds)Set a key's time to live 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, Instant timestamp)Set the expiration for a key as a UNIX timestamp specified in milliseconds.Mono<Boolean>pexpireat(K key, Date timestamp)Set the expiration for a key as a UNIX timestamp specified 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.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.voidreset()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 lastcountelements 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 specifiedFlushMode.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.Mono<Long>sdiff(ValueStreamingChannel<V> channel, K... keys)Subtract multiple sets.Flux<V>sdiff(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.voidsetAutoFlushCommands(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.voidsetTimeout(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<Long>sinter(ValueStreamingChannel<V> channel, K... keys)Intersect multiple sets.Flux<V>sinter(K... keys)Intersect multiple sets.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, or promote it as master.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.Mono<Long>smembers(ValueStreamingChannel<V> channel, K key)Get all the members in a set.Flux<V>smembers(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.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>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>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>srandmember(ValueStreamingChannel<V> channel, K key, long count)Get one or multiple random members from a set.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>srem(K key, V... members)Remove one or more members from a set.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<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<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.Mono<Long>sunion(ValueStreamingChannel<V> channel, K... keys)Add multiple sets.Flux<V>sunion(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, XAddArgs args, Object... keysAndValues)Append a message to the streamkey.Mono<String>xadd(K key, XAddArgs args, Map<K,V> body)Append a message to the streamkey.Mono<String>xadd(K key, Object... keysAndValues)Append a message to the streamkey.Mono<String>xadd(K key, Map<K,V> body)Append a message to the streamkey.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 currentgroupid.Flux<Object>xinfoConsumers(K key, K group)Retrieve information about consumer groups of groupgroupand stream atkey.Flux<Object>xinfoGroups(K key)Retrieve information about the stream consumer groups atkey.Flux<Object>xinfoStream(K key)Retrieve information about the stream atkey.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 specificRange.Flux<PendingMessage>xpending(K key, XPendingArgs<K> args)Read pending messages from a stream within a specificXPendingArgs.Mono<PendingMessages>xpending(K key, K group)Read pending messages from a stream for agroup.Flux<PendingMessage>xpending(K key, K group, Range<String> range, Limit limit)Read pending messages from a stream within a specificRange.Flux<StreamMessage<K,V>>xrange(K key, Range<String> range)Read messages from a stream within a specificRange.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 moreXReadArgs.StreamOffsets.Flux<StreamMessage<K,V>>xread(XReadArgs args, XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets.Flux<StreamMessage<K,V>>xreadgroup(Consumer<K> consumer, XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets using a consumer group.Flux<StreamMessage<K,V>>xreadgroup(Consumer<K> consumer, XReadArgs args, XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets using a consumer group.Flux<StreamMessage<K,V>>xrevrange(K key, Range<String> range)Read messages from a stream within a specificRangein 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 tocountelements.Mono<Long>xtrim(K key, long count)Trims the stream tocountelements.Mono<Long>xtrim(K key, XTrimArgs args)Trims the stream within a specificXTrimArgs.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, 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, 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, Object... scoresAndValues)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<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 theINCRoption.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 theINCRoption.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 givenRange.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(ZAggregateArgs aggregateArgs, K... keys)Intersect multiple sorted sets and returns the resulting sorted.Flux<V>zinter(K... keys)Intersect multiple sorted sets and returns the resulting sorted.Mono<Long>zinterstore(K destination, ZStoreArgs zStoreArgs, K... keys)Intersect multiple sorted sets and store the resulting sorted set in a new key.Mono<Long>zinterstore(K destination, K... keys)Intersect multiple sorted sets and store the resulting sorted set in a new key.Flux<ScoredValue<V>>zinterWithScores(ZAggregateArgs aggregateArgs, K... keys)Intersect multiple sorted sets and returns the resulting sorted.Flux<ScoredValue<V>>zinterWithScores(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<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 atkey.Flux<V>zrandmember(K key, long count)Returncountrandom members from the sorted set stored atkey.Mono<ScoredValue<V>>zrandmemberWithScores(K key)Return a random member along its value from the sorted set stored atkey.Flux<ScoredValue<V>>zrandmemberWithScores(K key, long count)Returncountrandom members along their value from the sorted set stored atkey.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>zrange(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.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<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>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.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>zrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)Get the specified range of elements in the sorted set stored atsrcKeyand stores the result in thedstKeydestination 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 atsrcKeyand stores the result in thedstKeydestination key.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.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>zrank(K key, V member)Determine the index of a member in a sorted set.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.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>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.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.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<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>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.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>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 atsrcKeyand stores the result in thedstKeydestination 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 {@code srcKey with scores ordered from high to low and stores the result in the {@code dstKey} destination key. @param dstKey the src key. @param srcKey the dst key. @param range the score range. @return The number of elements in the resulting sorted set. @since 6.1Mono<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.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>zrevrank(K key, V member)Determine the index of a member in a sorted set, with scores ordered from high to low.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<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<Double>zscore(K key, V member)Get the score associated with the given member in a sorted set.Flux<V>zunion(ZAggregateArgs aggregateArgs, K... keys)Add multiple sorted sets and returns the resulting sorted set.Flux<V>zunion(K... keys)Add multiple sorted sets and returns the resulting sorted set.Mono<Long>zunionstore(K destination, ZStoreArgs zStoreArgs, K... keys)Add multiple sorted sets and store the resulting sorted set in a new key.Mono<Long>zunionstore(K destination, K... keys)Add multiple sorted sets and store the resulting sorted set in a new key.Flux<ScoredValue<V>>zunionWithScores(ZAggregateArgs aggregateArgs, K... keys)Add multiple sorted sets and returns the resulting sorted set.Flux<ScoredValue<V>>zunionWithScores(K... keys)Add multiple sorted sets and returns the resulting sorted set.
-
Constructor Details
-
AbstractRedisReactiveCommands
Initialize a new instance.- Parameters:
connection- the connection to operate on.codec- the codec for command encoding.
-
-
Method Details
-
aclCat
Description copied from interface:RedisAclReactiveCommandsThe command shows the available ACL categories if called without arguments.- Specified by:
aclCatin interfaceRedisAclReactiveCommands<K,V>- Returns:
- AclCategory a list of ACL categories or
-
aclCat
Description copied from interface:RedisAclReactiveCommandsThe command shows all the Redis commands in the specified category.- Specified by:
aclCatin interfaceRedisAclReactiveCommands<K,V>- Parameters:
category- the specified category- Returns:
- CommandType a list of commands inside a given category
-
aclDeluser
Description copied from interface:RedisAclReactiveCommandsDelete all the specified ACL users and terminate all the connections that are authenticated with such users.- Specified by:
aclDeluserin interfaceRedisAclReactiveCommands<K,V>- Parameters:
usernames- the specified usernames- Returns:
- Long The number of users that were deleted
-
aclGenpass
Description copied from interface:RedisAclReactiveCommandsThe command generates a password.- Specified by:
aclGenpassin interfaceRedisAclReactiveCommands<K,V>- Returns:
- String bulk-string-reply 64 bytes string password representing 256 bits of pseudorandom data.
-
aclGenpass
Description copied from interface:RedisAclReactiveCommandsThe command generates a password.- Specified by:
aclGenpassin interfaceRedisAclReactiveCommands<K,V>- Parameters:
bits- amount of bits- Returns:
- String bulk-string-reply N/4 bytes string password representing N bits of pseudorandom data.
-
aclGetuser
Description copied from interface:RedisAclReactiveCommandsThe command returns all the rules defined for an existing ACL user.- Specified by:
aclGetuserin interfaceRedisAclReactiveCommands<K,V>- Parameters:
username- the specified username- Returns:
- Map<String, Object> a map of ACL rule definitions for the user.
-
aclList
Description copied from interface:RedisAclReactiveCommandsThe command shows the currently active ACL rules in the Redis server.- Specified by:
aclListin interfaceRedisAclReactiveCommands<K,V>- Returns:
- String a list of strings.
-
aclLoad
Description copied from interface:RedisAclReactiveCommandsWhen 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.- Specified by:
aclLoadin interfaceRedisAclReactiveCommands<K,V>- Returns:
- String simple-string-reply OK or error message.
-
aclLog
Description copied from interface:RedisAclReactiveCommandsThe command shows a list of recent ACL security events.- Specified by:
aclLogin interfaceRedisAclReactiveCommands<K,V>- Returns:
- Map<K,Object> list of security events.
-
aclLog
Description copied from interface:RedisAclReactiveCommandsThe command shows a list of recent ACL security events.- Specified by:
aclLogin interfaceRedisAclReactiveCommands<K,V>- Parameters:
count- max count of events- Returns:
- Map<K, Object> list of security events.
-
aclLogReset
Description copied from interface:RedisAclReactiveCommandsThe command clears ACL security events.- Specified by:
aclLogResetin interfaceRedisAclReactiveCommands<K,V>- Returns:
- String simple-string-reply OK if the security log was cleared.
-
aclSave
Description copied from interface:RedisAclReactiveCommandsWhen 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.- Specified by:
aclSavein interfaceRedisAclReactiveCommands<K,V>- Returns:
- String simple-string-reply OK or error message.
-
aclSetuser
Description copied from interface:RedisAclReactiveCommandsCreate an ACL user with the specified rules or modify the rules of an existing user.- Specified by:
aclSetuserin interfaceRedisAclReactiveCommands<K,V>- Parameters:
username- the specified usernameargs- rules- Returns:
- String simple-string-reply OK or error message.
-
aclUsers
Description copied from interface:RedisAclReactiveCommandsThe command shows a list of all the usernames of the currently configured users in the Redis ACL system.- Specified by:
aclUsersin interfaceRedisAclReactiveCommands<K,V>- Returns:
- K a list of usernames.
-
aclWhoami
Description copied from interface:RedisAclReactiveCommandsThe command shows a list of all the usernames of the currently configured users in the Redis ACL system.- Specified by:
aclWhoamiin interfaceRedisAclReactiveCommands<K,V>- Returns:
- K bulk-string-reply the username of the current connection.
-
append
Description copied from interface:RedisStringReactiveCommandsAppend a value to a key.- Specified by:
appendin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.- Returns:
- Long integer-reply the length of the string after the append operation.
-
asking
Description copied from interface:RedisClusterReactiveCommandsThe asking command is required after a-ASKredirection. The client should issueASKINGbefore to actually send the command to the target instance. See the Redis Cluster specification for more information.- Specified by:
askingin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply
-
auth
Description copied from interface:RedisClusterReactiveCommandsAuthenticate to the server.- Specified by:
authin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
password- the password- Returns:
- String simple-string-reply
-
auth
Description copied from interface:RedisClusterReactiveCommandsAuthenticate to the server with username and password. Requires Redis 6 or newer.- Specified by:
authin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
username- the usernamepassword- the password- Returns:
- String simple-string-reply
-
bgrewriteaof
Description copied from interface:RedisServerReactiveCommandsAsynchronously rewrite the append-only file.- Specified by:
bgrewriteaofin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
bgsave
Description copied from interface:RedisServerReactiveCommandsAsynchronously save the dataset to disk.- Specified by:
bgsavein interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
bitcount
Description copied from interface:RedisStringReactiveCommandsCount set bits in a string.- Specified by:
bitcountin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply The number of bits set to 1.
-
bitcount
Description copied from interface:RedisStringReactiveCommandsCount set bits in a string.- Specified by:
bitcountin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.start- the start.end- the end.- Returns:
- Long integer-reply The number of bits set to 1.
-
bitfield
Description copied from interface:RedisStringReactiveCommandsExecuteBITFIELDwith its subcommands.- Specified by:
bitfieldin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.args- the args containing subcommands, must not benull.- Returns:
- Long bulk-reply the results from the bitfield commands.
-
bitopAnd
Description copied from interface:RedisStringReactiveCommandsPerform bitwise AND between strings.- Specified by:
bitopAndin interfaceRedisStringReactiveCommands<K,V>- Parameters:
destination- result key of the operation.keys- operation input key names.- Returns:
- Long integer-reply The size of the string stored in the destination key, that is equal to the size of the longest input string.
-
bitopNot
Description copied from interface:RedisStringReactiveCommandsPerform bitwise NOT between strings.- Specified by:
bitopNotin interfaceRedisStringReactiveCommands<K,V>- Parameters:
destination- result key of the operation.source- operation input key names.- Returns:
- Long integer-reply The size of the string stored in the destination key, that is equal to the size of the longest input string.
-
bitopOr
Description copied from interface:RedisStringReactiveCommandsPerform bitwise OR between strings.- Specified by:
bitopOrin interfaceRedisStringReactiveCommands<K,V>- Parameters:
destination- result key of the operation.keys- operation input key names.- Returns:
- Long integer-reply The size of the string stored in the destination key, that is equal to the size of the longest input string.
-
bitopXor
Description copied from interface:RedisStringReactiveCommandsPerform bitwise XOR between strings.- Specified by:
bitopXorin interfaceRedisStringReactiveCommands<K,V>- Parameters:
destination- result key of the operation.keys- operation input key names.- Returns:
- Long integer-reply The size of the string stored in the destination key, that is equal to the size of the longest input string.
-
bitpos
Description copied from interface:RedisStringReactiveCommandsFind first bit set or clear in a string.- Specified by:
bitposin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.state- the state.- Returns:
- Long integer-reply The command returns the position of the first bit set to 1 or 0 according to the request.
If we look for set bits (the bit argument is 1) and the string is empty or composed of just zero bytes, -1 is
returned.
If we look for clear bits (the bit argument is 0) and the string only contains bit set to 1, the function returns
the first bit not part of the string on the right. So if the string is three bytes set to the value 0xff the
command
BITPOS key 0will 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.
-
bitpos
Description copied from interface:RedisStringReactiveCommandsFind first bit set or clear in a string.- Specified by:
bitposin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.state- the bit type: long.start- the start type: long.- Returns:
- Long integer-reply The command returns the position of the first bit set to 1 or 0 according to the request.
If we look for set bits (the bit argument is 1) and the string is empty or composed of just zero bytes, -1 is
returned.
If we look for clear bits (the bit argument is 0) and the string only contains bit set to 1, the function returns
the first bit not part of the string on the right. So if the string is three bytes set to the value 0xff the
command
BITPOS key 0will 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.
-
bitpos
Description copied from interface:RedisStringReactiveCommandsFind first bit set or clear in a string.- Specified by:
bitposin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.state- the bit type: long.start- the start type: long.end- the end type: long.- Returns:
- Long integer-reply The command returns the position of the first bit set to 1 or 0 according to the request.
If we look for set bits (the bit argument is 1) and the string is empty or composed of just zero bytes, -1 is
returned.
If we look for clear bits (the bit argument is 0) and the string only contains bit set to 1, the function returns
the first bit not part of the string on the right. So if the string is three bytes set to the value 0xff the
command
BITPOS key 0will 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.
-
blmove
Description copied from interface:RedisListReactiveCommandsAtomically returns and removes the first/last element (head/tail depending on the wherefrom 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. When source is empty, Redis will block the connection until another client pushes to it or until timeout is reached.- Specified by:
blmovein interfaceRedisListReactiveCommands<K,V>- Parameters:
source- the source key.destination- the destination type: key.args- command arguments to configure source and destination directions.timeout- the timeout in seconds.- Returns:
- V bulk-string-reply the element being popped and pushed.
-
blmove
Description copied from interface:RedisListReactiveCommandsAtomically returns and removes the first/last element (head/tail depending on the wherefrom 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. When source is empty, Redis will block the connection until another client pushes to it or until timeout is reached.- Specified by:
blmovein interfaceRedisListReactiveCommands<K,V>- Parameters:
source- the source key.destination- the destination type: key.args- command arguments to configure source and destination directions.timeout- the timeout in seconds.- Returns:
- V bulk-string-reply the element being popped and pushed.
-
blpop
Description copied from interface:RedisListReactiveCommandsRemove and get the first element in a list, or block until one is available.- Specified by:
blpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K,V> array-reply specifically:
A
nullmulti-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.
-
blpop
Description copied from interface:RedisListReactiveCommandsRemove and get the first element in a list, or block until one is available.- Specified by:
blpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K,V> array-reply specifically:
A
nullmulti-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.
-
brpop
Description copied from interface:RedisListReactiveCommandsRemove and get the last element in a list, or block until one is available.- Specified by:
brpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K,V> array-reply specifically:
A
nullmulti-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.
-
brpop
Description copied from interface:RedisListReactiveCommandsRemove and get the last element in a list, or block until one is available.- Specified by:
brpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K,V> array-reply specifically:
A
nullmulti-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.
-
brpoplpush
Description copied from interface:RedisListReactiveCommandsPop a value from a list, push it to another list and return it; or block until one is available.- Specified by:
brpoplpushin interfaceRedisListReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.source- the source key.destination- the destination type: key.- Returns:
- V bulk-string-reply the element being popped from
sourceand pushed todestination. Iftimeoutis reached, a.
-
brpoplpush
Description copied from interface:RedisListReactiveCommandsPop a value from a list, push it to another list and return it; or block until one is available.- Specified by:
brpoplpushin interfaceRedisListReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.source- the source key.destination- the destination type: key.- Returns:
- V bulk-string-reply the element being popped from
sourceand pushed todestination. Iftimeoutis reached, a.
-
clientCaching
Description copied from interface:RedisServerReactiveCommandsControl tracking of keys in the context of server-assisted client cache invalidation.- Specified by:
clientCachingin interfaceRedisServerReactiveCommands<K,V>- Parameters:
enabled-trueto enable key tracking.- Returns:
- String simple-string-reply
OK.
-
clientGetname
Description copied from interface:RedisServerReactiveCommandsGet the current connection name.- Specified by:
clientGetnamein interfaceRedisServerReactiveCommands<K,V>- Returns:
- K bulk-string-reply The connection name, or a null bulk reply if no name is set.
-
clientGetredir
Description copied from interface:RedisServerReactiveCommandsReturns the client ID we are redirecting our tracking notifications to.- Specified by:
clientGetredirin interfaceRedisServerReactiveCommands<K,V>- Returns:
- the ID of the client we are redirecting the notifications to. The command returns -1 if client tracking is not enabled, or 0 if client tracking is enabled but we are not redirecting the notifications to any client.
-
clientKill
Description copied from interface:RedisServerReactiveCommandsKill the connection of a client identified by ip:port.- Specified by:
clientKillin interfaceRedisServerReactiveCommands<K,V>- Parameters:
addr- ip:port.- Returns:
- String simple-string-reply
OKif the connection exists and has been closed.
-
clientKill
Description copied from interface:RedisServerReactiveCommandsKill connections of clients which are filtered bykillArgs.- Specified by:
clientKillin interfaceRedisServerReactiveCommands<K,V>- Parameters:
killArgs- args for the kill operation.- Returns:
- Long integer-reply number of killed connections.
-
clientList
Description copied from interface:RedisServerReactiveCommandsGet the list of client connections.- Specified by:
clientListin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String bulk-string-reply a unique string, formatted as follows: One client connection per line (separated by LF), each line is composed of a succession of property=value fields separated by a space character.
-
clientId
Description copied from interface:RedisServerReactiveCommandsGet the id of the current connection.- Specified by:
clientIdin interfaceRedisServerReactiveCommands<K,V>- Returns:
- Long The command just returns the ID of the current connection.
-
clientPause
Description copied from interface:RedisServerReactiveCommandsStop processing commands from clients for some time.- Specified by:
clientPausein interfaceRedisServerReactiveCommands<K,V>- Parameters:
timeout- the timeout value in milliseconds.- Returns:
- String simple-string-reply The command returns OK or an error if the timeout is invalid.
-
clientSetname
Description copied from interface:RedisServerReactiveCommandsSet the current connection name.- Specified by:
clientSetnamein interfaceRedisServerReactiveCommands<K,V>- Parameters:
name- the client name.- Returns:
- simple-string-reply
OKif the connection name was successfully set.
-
clientTracking
Description copied from interface:RedisServerReactiveCommandsEnables the tracking feature of the Redis server, that is used for server assisted client side caching. Tracking messages are either available when using the RESP3 protocol or through Pub/Sub notification when using RESP2.- Specified by:
clientTrackingin interfaceRedisServerReactiveCommands<K,V>- Parameters:
args- for the CLIENT TRACKING operation.- Returns:
- String simple-string-reply
OK.
-
clientUnblock
Description copied from interface:RedisServerReactiveCommandsUnblock the specified blocked client.- Specified by:
clientUnblockin interfaceRedisServerReactiveCommands<K,V>- Parameters:
id- the client id.type- unblock type.- Returns:
- Long integer-reply number of unblocked connections.
-
close
public void close() -
clusterAddSlots
Description copied from interface:RedisClusterReactiveCommandsAdds slots to the cluster node. The current node will become the master for the specified slots.- Specified by:
clusterAddSlotsin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slots- one or more slots from 0 to 16384- Returns:
- String simple-string-reply
-
clusterBumpepoch
Description copied from interface:RedisClusterReactiveCommandsGenerate 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.- Specified by:
clusterBumpepochin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply If the new config epoch is generated and assigned either BUMPED (epoch) or STILL (epoch) are returned.
-
clusterCountFailureReports
Description copied from interface:RedisClusterReactiveCommandsReturns the number of failure reports for the specified node. Failure reports are the way Redis Cluster uses in order to promote a PFAIL state, that means a node is not reachable, to a FAIL state, that means that the majority of masters in the cluster agreed within a window of time that the node is not reachable.- Specified by:
clusterCountFailureReportsin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
nodeId- the node id- Returns:
- Integer reply: The number of active failure reports for the node.
-
clusterCountKeysInSlot
Description copied from interface:RedisClusterReactiveCommandsReturns the number of keys in the specified Redis Cluster hashslot.- Specified by:
clusterCountKeysInSlotin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slot- the slot- Returns:
- Integer reply: The number of keys in the specified hash slot, or an error if the hash slot is invalid.
-
clusterDelSlots
Description copied from interface:RedisClusterReactiveCommandsRemoves slots from the cluster node.- Specified by:
clusterDelSlotsin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slots- one or more slots from 0 to 16384- Returns:
- String simple-string-reply
-
clusterFailover
Description copied from interface:RedisClusterReactiveCommandsFailover a cluster node. Turns the currently connected node into a master and the master into its replica.- Specified by:
clusterFailoverin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
force- do not coordinate with master iftrue- Returns:
- String simple-string-reply
-
clusterFlushslots
Description copied from interface:RedisClusterReactiveCommandsDelete all the slots associated with the specified node. The number of deleted slots is returned.- Specified by:
clusterFlushslotsin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply
-
clusterForget
Description copied from interface:RedisClusterReactiveCommandsDisallow connections and remove the cluster node from the cluster.- Specified by:
clusterForgetin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
nodeId- the node Id- Returns:
- String simple-string-reply
-
clusterGetKeysInSlot
Description copied from interface:RedisClusterReactiveCommandsRetrieve the list of keys within theslot.- Specified by:
clusterGetKeysInSlotin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slot- the slotcount- maximal number of keys- Returns:
- List<K> array-reply list of keys
-
clusterInfo
Description copied from interface:RedisClusterReactiveCommandsGet information and statistics about the cluster viewed by the current node.- Specified by:
clusterInfoin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String bulk-string-reply as a collection of text lines.
-
clusterKeyslot
Description copied from interface:RedisClusterReactiveCommandsReturns an integer identifying the hash slot the specified key hashes to. This command is mainly useful for debugging and testing, since it exposes via an API the underlying Redis implementation of the hashing algorithm. Basically the same asSlotHash.getSlot(byte[]). If not, call Houston and report that we've got a problem.- Specified by:
clusterKeyslotin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Integer reply: The hash slot number.
-
clusterMeet
Description copied from interface:RedisClusterReactiveCommandsMeet another cluster node to include the node into the cluster. The command starts the cluster handshake and returns with OK when the node was added to the cluster.- Specified by:
clusterMeetin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
ip- IP address of the hostport- port number.- Returns:
- String simple-string-reply
-
clusterMyId
Description copied from interface:RedisClusterReactiveCommandsObtain the nodeId for the currently connected node.- Specified by:
clusterMyIdin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply
-
clusterNodes
Description copied from interface:RedisClusterReactiveCommandsObtain details about all cluster nodes. Can be parsed usingClusterPartitionParser.parse(java.lang.String)- Specified by:
clusterNodesin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String bulk-string-reply as a collection of text lines
-
clusterReplicate
Description copied from interface:RedisClusterReactiveCommandsTurn this node into a replica of the node with the idnodeId.- Specified by:
clusterReplicatein interfaceRedisClusterReactiveCommands<K,V>- Parameters:
nodeId- master node id- Returns:
- String simple-string-reply
-
clusterReset
Description copied from interface:RedisClusterReactiveCommandsReset 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
- Specified by:
clusterResetin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
hard-truefor hard reset. Generates a new nodeId and currentEpoch/configEpoch are set to 0- Returns:
- String simple-string-reply
-
clusterSaveconfig
Description copied from interface:RedisClusterReactiveCommandsForces a node to save the nodes.conf configuration on disk.- Specified by:
clusterSaveconfigin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply:
OKor an error if the operation fails.
-
clusterSetConfigEpoch
Description copied from interface:RedisClusterReactiveCommandsThis command sets a specific config epoch in a fresh node. It only works when:- The nodes table of the node is empty.
- The node current config epoch is zero.
- Specified by:
clusterSetConfigEpochin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
configEpoch- the config epoch- Returns:
- String simple-string-reply:
OKor an error if the operation fails.
-
clusterSetSlotImporting
Description copied from interface:RedisClusterReactiveCommandsFlag a slot as IMPORTING (incoming) from the node specified innodeId.- Specified by:
clusterSetSlotImportingin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slot- the slotnodeId- the id of the node is the master of the slot- Returns:
- String simple-string-reply
-
clusterSetSlotMigrating
Description copied from interface:RedisClusterReactiveCommandsFlag a slot as MIGRATING (outgoing) towards the node specified innodeId. The slot must be handled by the current node in order to be migrated.- Specified by:
clusterSetSlotMigratingin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slot- the slotnodeId- the id of the node is targeted to become the master for the slot- Returns:
- String simple-string-reply
-
clusterSetSlotNode
Description copied from interface:RedisClusterReactiveCommandsAssign a slot to a node. The command migrates the specified slot from the current node to the specified node innodeId- Specified by:
clusterSetSlotNodein interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slot- the slotnodeId- the id of the node that will become the master for the slot- Returns:
- String simple-string-reply
-
clusterSetSlotStable
Description copied from interface:RedisClusterReactiveCommandsClears migrating / importing state from the slot.- Specified by:
clusterSetSlotStablein interfaceRedisClusterReactiveCommands<K,V>- Parameters:
slot- the slot- Returns:
- String simple-string-reply
-
clusterSlaves
Description copied from interface:RedisClusterReactiveCommandsList replicas for a certain node identified by itsnodeId. Can be parsed usingClusterPartitionParser.parse(java.lang.String)- Specified by:
clusterSlavesin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
nodeId- node id of the master node- Returns:
- List<String> array-reply list of replicas. The command returns data in the same format as
RedisClusterReactiveCommands.clusterNodes()but one line per replica.
-
clusterSlots
Description copied from interface:RedisClusterReactiveCommandsGet array of cluster slots to node mappings.- Specified by:
clusterSlotsin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- List<Object> array-reply nested list of slot ranges with IP/Port mappings.
-
command
Description copied from interface:RedisServerReactiveCommandsReturns an array reply of details about all Redis commands.- Specified by:
commandin interfaceRedisServerReactiveCommands<K,V>- Returns:
- Object array-reply.
-
commandCount
Description copied from interface:RedisServerReactiveCommandsGet total number of Redis commands.- Specified by:
commandCountin interfaceRedisServerReactiveCommands<K,V>- Returns:
- Long integer-reply of number of total commands in this Redis server.
-
commandInfo
Description copied from interface:RedisServerReactiveCommandsReturns an array reply of details about the requested commands.- Specified by:
commandInfoin interfaceRedisServerReactiveCommands<K,V>- Parameters:
commands- the commands to query for.- Returns:
- Object array-reply.
-
commandInfo
Description copied from interface:RedisServerReactiveCommandsReturns an array reply of details about the requested commands.- Specified by:
commandInfoin interfaceRedisServerReactiveCommands<K,V>- Parameters:
commands- the commands to query for.- Returns:
- Object array-reply.
-
configGet
Description copied from interface:RedisServerReactiveCommandsGet the value of a configuration parameter.- Specified by:
configGetin interfaceRedisServerReactiveCommands<K,V>- Parameters:
parameter- name of the parameter.- Returns:
- Map<String, String> bulk-string-reply.
-
configResetstat
Description copied from interface:RedisServerReactiveCommandsReset the stats returned by INFO.- Specified by:
configResetstatin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
configRewrite
Description copied from interface:RedisServerReactiveCommandsRewrite the configuration file with the in memory configuration.- Specified by:
configRewritein interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply
OKwhen the configuration was rewritten properly. Otherwise an error is returned.
-
configSet
Description copied from interface:RedisServerReactiveCommandsSet a configuration parameter to the given value.- Specified by:
configSetin interfaceRedisServerReactiveCommands<K,V>- Parameters:
parameter- the parameter name.value- the parameter value.- Returns:
- String simple-string-reply:
OKwhen the configuration was set properly. Otherwise an error is returned.
-
createDissolvingFlux
-
createFlux
-
createMono
protected <T> Mono<T> createMono(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args) -
createMono
-
dbsize
Description copied from interface:RedisServerReactiveCommandsReturn the number of keys in the selected database.- Specified by:
dbsizein interfaceRedisServerReactiveCommands<K,V>- Returns:
- Long integer-reply.
-
debugCrashAndRecover
Description copied from interface:RedisServerReactiveCommandsCrash and recover.- Specified by:
debugCrashAndRecoverin interfaceRedisServerReactiveCommands<K,V>- Parameters:
delay- optional delay in milliseconds.- Returns:
- String simple-string-reply.
-
debugHtstats
Description copied from interface:RedisServerReactiveCommandsGet debugging information about the internal hash-table state.- Specified by:
debugHtstatsin interfaceRedisServerReactiveCommands<K,V>- Parameters:
db- the database number.- Returns:
- String simple-string-reply.
-
debugObject
Description copied from interface:RedisServerReactiveCommandsGet debugging information about a key.- Specified by:
debugObjectin interfaceRedisServerReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- String simple-string-reply.
-
debugOom
Description copied from interface:RedisServerReactiveCommandsMake the server crash: Out of memory.- Specified by:
debugOomin interfaceRedisServerReactiveCommands<K,V>- Returns:
- nothing, because the server crashes before returning.
-
debugReload
Description copied from interface:RedisServerReactiveCommandsSave RDB, clear the database and reload RDB.- Specified by:
debugReloadin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply The commands returns OK on success.
-
debugRestart
Description copied from interface:RedisServerReactiveCommandsRestart the server gracefully.- Specified by:
debugRestartin interfaceRedisServerReactiveCommands<K,V>- Parameters:
delay- optional delay in milliseconds.- Returns:
- String simple-string-reply.
-
debugSdslen
Description copied from interface:RedisServerReactiveCommandsGet debugging information about the internal SDS length.- Specified by:
debugSdslenin interfaceRedisServerReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- String simple-string-reply.
-
debugSegfault
Description copied from interface:RedisServerReactiveCommandsMake the server crash: Invalid pointer access.- Specified by:
debugSegfaultin interfaceRedisServerReactiveCommands<K,V>- Returns:
- nothing, because the server crashes before returning.
-
decr
Description copied from interface:RedisStringReactiveCommandsDecrement the integer value of a key by one.- Specified by:
decrin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the value of
keyafter the decrement.
-
decrby
Description copied from interface:RedisStringReactiveCommandsDecrement the integer value of a key by the given number.- Specified by:
decrbyin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.amount- the decrement type: long.- Returns:
- Long integer-reply the value of
keyafter the decrement.
-
del
Description copied from interface:RedisKeyReactiveCommandsDelete one or more keys.- Specified by:
delin interfaceRedisClusterReactiveCommands<K,V>- Specified by:
delin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply The number of keys that were removed.
-
del
-
digest
Description copied from interface:RedisScriptingReactiveCommandsCreate a SHA1 digest from a Lua script.- Specified by:
digestin interfaceRedisScriptingReactiveCommands<K,V>- Parameters:
script- script content.- Returns:
- the SHA1 value.
-
digest
Description copied from interface:RedisScriptingReactiveCommandsCreate a SHA1 digest from a Lua script.- Specified by:
digestin interfaceRedisScriptingReactiveCommands<K,V>- Parameters:
script- script content.- Returns:
- the SHA1 value.
-
discard
Description copied from interface:RedisTransactionalReactiveCommandsDiscard all commands issued after MULTI.- Specified by:
discardin interfaceRedisTransactionalReactiveCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
dispatch
Description copied from interface:BaseRedisReactiveCommandsDispatch a command to the Redis Server. Please note the command output type must fit to the command response.- Specified by:
dispatchin interfaceBaseRedisReactiveCommands<K,V>- Type Parameters:
T- response type.- Parameters:
type- the command, must not benull.output- the command output, must not benull.- Returns:
- the command response.
-
dispatch
public <T> Flux<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,?> output, CommandArgs<K,V> args)Description copied from interface:BaseRedisReactiveCommandsDispatch a command to the Redis Server. Please note the command output type must fit to the command response.- Specified by:
dispatchin interfaceBaseRedisReactiveCommands<K,V>- Type Parameters:
T- response type.- Parameters:
type- the command, must not benull.output- the command output, must not benull.args- the command arguments, must not benull.- Returns:
- the command response.
-
dump
Description copied from interface:RedisKeyReactiveCommandsReturn a serialized version of the value stored at the specified key.- Specified by:
dumpin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- byte[] bulk-string-reply the serialized value.
-
echo
Description copied from interface:BaseRedisReactiveCommandsEcho the given string.- Specified by:
echoin interfaceBaseRedisReactiveCommands<K,V>- Parameters:
msg- the message type: value.- Returns:
- V bulk-string-reply.
-
eval
Description copied from interface:RedisScriptingReactiveCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingReactiveCommands<K,V>- Type Parameters:
T- expected return type.- Parameters:
script- Lua 5.1 script.type- output type.keys- key names.- Returns:
- script result.
-
eval
Description copied from interface:RedisScriptingReactiveCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingReactiveCommands<K,V>- Type Parameters:
T- expected return type.- Parameters:
script- Lua 5.1 script.type- output type.keys- key names.- Returns:
- script result.
-
eval
Description copied from interface:RedisScriptingReactiveCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingReactiveCommands<K,V>- Type Parameters:
T- expected return type.- Parameters:
script- Lua 5.1 script.type- the type.keys- the keys.values- the values.- Returns:
- script result.
-
eval
Description copied from interface:RedisScriptingReactiveCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingReactiveCommands<K,V>- Type Parameters:
T- expected return type.- Parameters:
script- Lua 5.1 script.type- the type.keys- the keys.values- the values.- Returns:
- script result.
-
evalsha
Description copied from interface:RedisScriptingReactiveCommandsEvaluates a script cached on the server side by its SHA1 digest.- Specified by:
evalshain interfaceRedisScriptingReactiveCommands<K,V>- Type Parameters:
T- expected return type.- Parameters:
digest- SHA1 of the script.type- the type.keys- the keys.- Returns:
- script result.
-
evalsha
Description copied from interface:RedisScriptingReactiveCommandsExecute a Lua script server side.- Specified by:
evalshain interfaceRedisScriptingReactiveCommands<K,V>- Type Parameters:
T- expected return type.- Parameters:
digest- SHA1 of the script.type- the type.keys- the keys.values- the values.- Returns:
- script result.
-
exec
Description copied from interface:RedisTransactionalReactiveCommandsExecute all commands issued after MULTI.- Specified by:
execin interfaceRedisTransactionalReactiveCommands<K,V>- Returns:
- Object array-reply each element being the reply to each of the commands in the atomic transaction.
When using
WATCH,EXECcan return adiscarded TransactionResult. - See Also:
TransactionResult.wasDiscarded()
-
exists
-
exists
Description copied from interface:RedisKeyReactiveCommandsDetermine how many keys exist.- Specified by:
existsin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply specifically: Number of existing keys.
-
exists
-
expire
Description copied from interface:RedisKeyReactiveCommandsSet a key's time to live in seconds.- Specified by:
expirein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.seconds- the seconds type: long.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set.
-
expire
Description copied from interface:RedisKeyReactiveCommandsSet a key's time to live in seconds.- Specified by:
expirein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.seconds- the seconds.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set.
-
expireat
Description copied from interface:RedisKeyReactiveCommandsSet the expiration for a key as a UNIX timestamp.- Specified by:
expireatin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.timestamp- the timestamp type: posix time.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set (see:EXPIRE).
-
expireat
Description copied from interface:RedisKeyReactiveCommandsSet the expiration for a key as a UNIX timestamp.- Specified by:
expireatin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.timestamp- the timestamp type: posix time.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set (see:EXPIRE).
-
expireat
Description copied from interface:RedisKeyReactiveCommandsSet the expiration for a key as a UNIX timestamp.- Specified by:
expireatin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.timestamp- the timestamp type: posix time.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set (see:EXPIRE).
-
flushCommands
public void flushCommands()Description copied from interface:BaseRedisReactiveCommandsFlush pending commands. This commands forces a flush on the channel and can be used to buffer ("pipeline") commands to achieve batching. No-op if channel is not connected.- Specified by:
flushCommandsin interfaceBaseRedisReactiveCommands<K,V>
-
flushall
Description copied from interface:RedisServerReactiveCommandsRemove all keys from all databases.- Specified by:
flushallin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
flushall
Description copied from interface:RedisServerReactiveCommandsRemove all keys from all databases using the specifiedFlushMode.- Specified by:
flushallin interfaceRedisServerReactiveCommands<K,V>- Parameters:
flushMode- the flush mode (sync/asnync).- Returns:
- String simple-string-reply.
-
flushallAsync
Description copied from interface:RedisServerReactiveCommandsRemove all keys asynchronously from all databases.- Specified by:
flushallAsyncin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
flushdb
Description copied from interface:RedisServerReactiveCommandsRemove all keys from the current database.- Specified by:
flushdbin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
flushdb
Description copied from interface:RedisServerReactiveCommandsRemove all keys from the current database using the specifiedFlushMode.- Specified by:
flushdbin interfaceRedisServerReactiveCommands<K,V>- Parameters:
flushMode- the flush mode (sync/asnync).- Returns:
- String simple-string-reply.
-
flushdbAsync
Description copied from interface:RedisServerReactiveCommandsRemove all keys asynchronously from the current database.- Specified by:
flushdbAsyncin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
geoadd
Description copied from interface:RedisGeoReactiveCommandsSingle geo add.- Specified by:
geoaddin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long integer-reply the number of elements that were added to the set.
-
geoadd
Description copied from interface:RedisGeoReactiveCommandsSingle geo add.- Specified by:
geoaddin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long integer-reply the number of elements that were added to the set.
-
geoadd
Description copied from interface:RedisGeoReactiveCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.lngLatMember- triplets of double longitude, double latitude and V member.- Returns:
- Long integer-reply the number of elements that were added to the set.
-
geoadd
Description copied from interface:RedisGeoReactiveCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.values-GeoValuevalues to add.- Returns:
- Long integer-reply the number of elements that were added to the set.
-
geoadd
Description copied from interface:RedisGeoReactiveCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.args- additional arguments.lngLatMember- triplets of double longitude, double latitude and V member.- Returns:
- Long integer-reply the number of elements that were added to the set.
-
geoadd
Description copied from interface:RedisGeoReactiveCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.args- additional arguments.values-GeoValuevalues to add.- Returns:
- Long integer-reply the number of elements that were added to the set.
-
geodist
Description copied from interface:RedisGeoReactiveCommandsRetrieve distance between pointsfromandto. If one or more elements are missingnullis returned. Default in meters by, otherwise according tounit- Specified by:
geodistin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.from- from member.to- to member.unit- distance unit.- Returns:
- distance between points
fromandto. If one or more elements are missingnullis returned.
-
geohash
Description copied from interface:RedisGeoReactiveCommandsRetrieve Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index.- Specified by:
geohashin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.members- the members.- Returns:
- bulk reply Geohash strings in the order of
members. Returnsnullif a member is not found.
-
geopos
Description copied from interface:RedisGeoReactiveCommandsGet geo coordinates for themembers.- Specified by:
geoposin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.members- the members.- Returns:
- a list of
GeoCoordinatess representing the x,y position of each element specified in the arguments. For missing elementsnullis returned.
-
georadius
public Flux<V> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)Description copied from interface:RedisGeoReactiveCommandsRetrieve members selected by distance with the center oflongitudeandlatitude.- Specified by:
georadiusin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- bulk reply.
-
georadius
public Flux<GeoWithin<V>> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)Description copied from interface:RedisGeoReactiveCommandsRetrieve members selected by distance with the center oflongitudeandlatitude.- Specified by:
georadiusin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- nested multi-bulk reply. The
GeoWithincontains only fields which were requested byGeoArgs.
-
georadius
public Mono<Long> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Description copied from interface:RedisGeoReactiveCommandsPerform aRedisGeoReactiveCommands.georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs)query and store the results in a sorted set.- Specified by:
georadiusin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long integer-reply the number of elements in the result.
-
georadius_ro
protected Flux<V> georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit) -
georadius_ro
-
georadiusbymember
Description copied from interface:RedisGeoReactiveCommandsRetrieve members selected by distance with the center ofmember. The member itself is always contained in the results.- Specified by:
georadiusbymemberin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.member- reference member.distance- radius distance.unit- distance unit.- Returns:
- set of members.
-
georadiusbymember
public Flux<GeoWithin<V>> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)Description copied from interface:RedisGeoReactiveCommandsRetrieve members selected by distance with the center ofmember. The member itself is always contained in the results.- Specified by:
georadiusbymemberin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.member- reference member.distance- radius distance.unit- distance unit.geoArgs- args to control the result.- Returns:
- nested multi-bulk reply. The
GeoWithincontains only fields which were requested byGeoArgs.
-
georadiusbymember
public Mono<Long> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Description copied from interface:RedisGeoReactiveCommandsPerform aRedisGeoReactiveCommands.georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs)query and store the results in a sorted set.- Specified by:
georadiusbymemberin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long integer-reply the number of elements in the result.
-
georadiusbymember_ro
-
georadiusbymember_ro
-
geosearch
Description copied from interface:RedisGeoReactiveCommandsRetrieve members selected by distance with the center ofreferencethe searchpredicate. UseGeoSearchto create reference and predicate objects.- Specified by:
geosearchin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
key- the key of the geo set.reference- the reference member or longitude/latitude coordinates.predicate- the bounding box or radius to search in.- Returns:
- bulk reply.
-
geosearch
public Flux<GeoWithin<V>> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs)Description copied from interface:RedisGeoReactiveCommandsRetrieve members selected by distance with the center ofreferencethe searchpredicate. UseGeoSearchto create reference and predicate objects.- Specified by:
geosearchin interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- nested multi-bulk reply. The
GeoWithincontains only fields which were requested byGeoArgs.
-
geosearchstore
public Mono<Long> geosearchstore(K destination, K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs, boolean storeDist)Description copied from interface:RedisGeoReactiveCommandsPerform aRedisGeoReactiveCommands.geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs)query and store the results in a sorted set.- Specified by:
geosearchstorein interfaceRedisGeoReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long integer-reply the number of elements in the result.
-
get
Description copied from interface:RedisStringReactiveCommandsGet the value of a key.- Specified by:
getin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the value of
key, ornullwhenkeydoes not exist.
-
getConnection
-
getbit
Description copied from interface:RedisStringReactiveCommandsReturns the bit value at offset in the string value stored at key.- Specified by:
getbitin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.offset- the offset type: long.- Returns:
- Long integer-reply the bit value stored at offset.
-
getdel
Description copied from interface:RedisStringReactiveCommandsGet the value of key and delete the key.- Specified by:
getdelin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the value of
key, ornullwhenkeydoes not exist.
-
getex
Description copied from interface:RedisStringReactiveCommandsGet the value of key and optionally set its expiration.- Specified by:
getexin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.args- the arguments forGETEX.- Returns:
- V bulk-string-reply the value of
key, ornullwhenkeydoes not exist.
-
getrange
Description copied from interface:RedisStringReactiveCommandsGet a substring of the string stored at a key.- Specified by:
getrangein interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.start- the start type: long.end- the end type: long.- Returns:
- V bulk-string-reply.
-
getset
Description copied from interface:RedisStringReactiveCommandsSet the string value of a key and return its old value.- Specified by:
getsetin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.- Returns:
- V bulk-string-reply the old value stored at
key, ornullwhenkeydid not exist.
-
hdel
Description copied from interface:RedisHashReactiveCommandsDelete one or more hash fields.- Specified by:
hdelin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.fields- the field type: key.- Returns:
- Long integer-reply the number of fields that were removed from the hash, not including specified but non existing fields.
-
hexists
Description copied from interface:RedisHashReactiveCommandsDetermine if a hash field exists.- Specified by:
hexistsin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.- Returns:
- Boolean integer-reply specifically:
trueif the hash containsfield.falseif the hash does not containfield, orkeydoes not exist.
-
hget
Description copied from interface:RedisHashReactiveCommandsGet the value of a hash field.- Specified by:
hgetin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.- Returns:
- V bulk-string-reply the value associated with
field, ornullwhenfieldis not present in the hash orkeydoes not exist.
-
hgetall
Description copied from interface:RedisHashReactiveCommandsGet all the fields and values in a hash.- Specified by:
hgetallin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Map<K,V> array-reply list of fields and their values stored in the hash, or an empty list when
keydoes not exist.
-
hgetall
Description copied from interface:RedisHashReactiveCommandsStream over all the fields and values in a hash.- Specified by:
hgetallin interfaceRedisHashReactiveCommands<K,V>- Parameters:
channel- the channel.key- the key.- Returns:
- Long count of the keys.
-
hincrby
Description copied from interface:RedisHashReactiveCommandsIncrement the integer value of a hash field by the given number.- Specified by:
hincrbyin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.amount- the increment type: long.- Returns:
- Long integer-reply the value at
fieldafter the increment operation.
-
hincrbyfloat
Description copied from interface:RedisHashReactiveCommandsIncrement the float value of a hash field by the given amount.- Specified by:
hincrbyfloatin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.amount- the increment type: double.- Returns:
- Double bulk-string-reply the value of
fieldafter the increment.
-
hkeys
Description copied from interface:RedisHashReactiveCommandsGet all the fields in a hash.- Specified by:
hkeysin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- K array-reply list of fields in the hash, or an empty list when
keydoes not exist.
-
hkeys
Description copied from interface:RedisHashReactiveCommandsStream over all the fields in a hash.- Specified by:
hkeysin interfaceRedisHashReactiveCommands<K,V>- Parameters:
channel- the channel.key- the key.- Returns:
- Long count of the keys.
-
hlen
Description copied from interface:RedisHashReactiveCommandsGet the number of fields in a hash.- Specified by:
hlenin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply number of fields in the hash, or
0whenkeydoes not exist.
-
hmget
Description copied from interface:RedisHashReactiveCommandsGet the values of all the given hash fields.- Specified by:
hmgetin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.fields- the field type: key.- Returns:
- V array-reply list of values associated with the given fields, in the same.
-
hmget
Description copied from interface:RedisHashReactiveCommandsStream over the values of all the given hash fields.- Specified by:
hmgetin interfaceRedisHashReactiveCommands<K,V>- Parameters:
channel- the channel.key- the key.fields- the fields.- Returns:
- Long count of the keys.
-
hrandfield
Description copied from interface:RedisHashReactiveCommandsReturn a random field from the hash stored atkey.- Specified by:
hrandfieldin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- hash field name.
-
hrandfield
Description copied from interface:RedisHashReactiveCommandsReturncountrandom fields from the hash stored atkey.- Specified by:
hrandfieldin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.count- the number of fields to return. If the provided count argument is positive, return an array of distinct fields.- Returns:
- array-reply list of field names.
-
hrandfieldWithvalues
Description copied from interface:RedisHashReactiveCommandsReturn a random field along its value from the hash stored atkey.- Specified by:
hrandfieldWithvaluesin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- array-reply the key and value.
-
hrandfieldWithvalues
Description copied from interface:RedisHashReactiveCommandsReturncountrandom fields along their value from the hash stored atkey.- Specified by:
hrandfieldWithvaluesin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.count- the number of fields to return. If the provided count argument is positive, return an array of distinct fields.- Returns:
- array-reply the keys and values.
-
hmset
Description copied from interface:RedisHashReactiveCommandsSet multiple hash fields to multiple values.- Specified by:
hmsetin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.map- the hash to apply.- Returns:
- String simple-string-reply.
-
hscan
Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.scanArgs- scan arguments.- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key-value pair.key- the key.- Returns:
- StreamScanCursor scan cursor.
-
hscan
public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanArgs scanArgs)Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key-value pair.key- the key.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
hscan
public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
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 benull.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
hscan
public Mono<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor)Description copied from interface:RedisHashReactiveCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashReactiveCommands<K,V>- Parameters:
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 benull.- Returns:
- StreamScanCursor scan cursor.
-
hset
Description copied from interface:RedisHashReactiveCommandsSet the string value of a hash field.- Specified by:
hsetin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.value- the value.- Returns:
- Boolean integer-reply specifically:
trueiffieldis a new field in the hash andvaluewas set.falseiffieldalready exists in the hash and the value was updated.
-
hset
Description copied from interface:RedisHashReactiveCommandsSet multiple hash fields to multiple values.- Specified by:
hsetin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key of the hash.map- the field/value pairs to update.- Returns:
- Long integer-reply: the number of fields that were added.
-
hsetnx
Description copied from interface:RedisHashReactiveCommandsSet the value of a hash field, only if the field does not exist.- Specified by:
hsetnxin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.value- the value.- Returns:
- Boolean integer-reply specifically:
1iffieldis a new field in the hash andvaluewas set.0iffieldalready exists in the hash and no operation was performed.
-
hstrlen
Description copied from interface:RedisHashReactiveCommandsGet the string length of the field value in a hash.- Specified by:
hstrlenin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.field- the field type: key.- Returns:
- Long integer-reply the string length of the
fieldvalue, or0whenfieldis not present in the hash orkeydoes not exist at all.
-
hvals
Description copied from interface:RedisHashReactiveCommandsGet all the values in a hash.- Specified by:
hvalsin interfaceRedisHashReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V array-reply list of values in the hash, or an empty list when
keydoes not exist.
-
hvals
Description copied from interface:RedisHashReactiveCommandsStream over all the values in a hash.- Specified by:
hvalsin interfaceRedisHashReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.- Returns:
- Long count of the keys.
-
incr
Description copied from interface:RedisStringReactiveCommandsIncrement the integer value of a key by one.- Specified by:
incrin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the value of
keyafter the increment.
-
incrby
Description copied from interface:RedisStringReactiveCommandsIncrement the integer value of a key by the given amount.- Specified by:
incrbyin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.amount- the increment type: long.- Returns:
- Long integer-reply the value of
keyafter the increment.
-
incrbyfloat
Description copied from interface:RedisStringReactiveCommandsIncrement the float value of a key by the given amount.- Specified by:
incrbyfloatin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.amount- the increment type: double.- Returns:
- Double bulk-string-reply the value of
keyafter the increment.
-
info
Description copied from interface:RedisServerReactiveCommandsGet information and statistics about the server.- Specified by:
infoin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String bulk-string-reply as a collection of text lines.
-
info
Description copied from interface:RedisServerReactiveCommandsGet information and statistics about the server.- Specified by:
infoin interfaceRedisServerReactiveCommands<K,V>- Parameters:
section- the section type: string.- Returns:
- String bulk-string-reply as a collection of text lines.
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceBaseRedisReactiveCommands<K,V>- Returns:
trueif the connection is open (connected and not closed).
-
keys
Description copied from interface:RedisKeyReactiveCommandsFind all keys matching the given pattern.- Specified by:
keysin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
pattern- the pattern type: patternkey (pattern).- Returns:
- K array-reply list of keys matching
pattern.
-
keys
Description copied from interface:RedisKeyReactiveCommandsFind all keys matching the given pattern.- Specified by:
keysin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- the channel.pattern- the pattern.- Returns:
- Long array-reply list of keys matching
pattern.
-
lastsave
Description copied from interface:RedisServerReactiveCommandsGet the UNIX time stamp of the last successful save to disk.- Specified by:
lastsavein interfaceRedisServerReactiveCommands<K,V>- Returns:
- Date integer-reply an UNIX time stamp.
-
lindex
Description copied from interface:RedisListReactiveCommandsGet an element from a list by its index.- Specified by:
lindexin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.index- the index type: long.- Returns:
- V bulk-string-reply the requested element, or
nullwhenindexis out of range.
-
linsert
Description copied from interface:RedisListReactiveCommandsInsert an element before or after another element in a list.- Specified by:
linsertin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.before- the before.pivot- the pivot.value- the value.- Returns:
- Long integer-reply the length of the list after the insert operation, or
-1when the valuepivotwas not found.
-
llen
Description copied from interface:RedisListReactiveCommandsGet the length of a list.- Specified by:
llenin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the length of the list at
key.
-
lmove
Description copied from interface:RedisListReactiveCommandsAtomically returns and removes the first/last element (head/tail depending on the wherefrom 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.- Specified by:
lmovein interfaceRedisListReactiveCommands<K,V>- Parameters:
source- the source key.destination- the destination type: key.args- command arguments to configure source and destination directions.- Returns:
- V bulk-string-reply the element being popped and pushed.
-
lpop
Description copied from interface:RedisListReactiveCommandsRemove and get the first element in a list.- Specified by:
lpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the value of the first element, or
nullwhenkeydoes not exist.
-
lpop
Description copied from interface:RedisListReactiveCommandsRemove and get the firstcountelements in a list.- Specified by:
lpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
-
lpos
Description copied from interface:RedisListReactiveCommandsReturn the index of matching elements inside a Redis list. By default, when no options are given, it will scan the list from head to tail, looking for the first match of "element". If the element is found, its index (the zero-based position in the list) is returned. Otherwise, if no match is found,nullis returned. The returned elements indexes are always referring to whatRedisListReactiveCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.value- the element to search for.- Returns:
- V integer-reply representing the matching element, or null if there is no match.
-
lpos
Description copied from interface:RedisListReactiveCommandsReturn the index of matching elements inside a Redis list. By default, when no options are given, it will scan the list from head to tail, looking for the first match of "element". If the element is found, its index (the zero-based position in the list) is returned. Otherwise, if no match is found,nullis returned. The returned elements indexes are always referring to whatRedisListReactiveCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.value- the element to search for.args- command arguments to configureFIRSTandMAXLENoptions.- Returns:
- V integer-reply representing the matching element, or null if there is no match.
-
lpos
Description copied from interface:RedisListReactiveCommandsReturn the index of matching elements inside a Redis list using theCOUNToption. 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 whatRedisListReactiveCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.value- the element to search for.count- limit the number of matches.- Returns:
- V integer-reply representing the matching elements, or empty if there is no match.
-
lpos
Description copied from interface:RedisListReactiveCommandsReturn the index of matching elements inside a Redis list using theCOUNToption. 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 whatRedisListReactiveCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.value- the element to search for.count- limit the number of matches.args- command arguments to configureFIRSTandMAXLENoptions.- Returns:
- V integer-reply representing the matching elements, or empty if there is no match.
-
lpush
Description copied from interface:RedisListReactiveCommandsPrepend one or multiple values to a list.- Specified by:
lpushin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.values- the value.- Returns:
- Long integer-reply the length of the list after the push operations.
-
lpushx
Description copied from interface:RedisListReactiveCommandsPrepend values to a list, only if the list exists.- Specified by:
lpushxin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.values- the values.- Returns:
- Long integer-reply the length of the list after the push operation.
-
lrange
Description copied from interface:RedisListReactiveCommandsGet a range of elements from a list.- Specified by:
lrangein interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.start- the start type: long.stop- the stop type: long.- Returns:
- V array-reply list of elements in the specified range.
-
lrange
Description copied from interface:RedisListReactiveCommandsGet a range of elements from a list.- Specified by:
lrangein interfaceRedisListReactiveCommands<K,V>- Parameters:
channel- the channel.key- the key.start- the start type: long.stop- the stop type: long.- Returns:
- Long count of elements in the specified range.
-
lrem
Description copied from interface:RedisListReactiveCommandsRemove elements from a list.- Specified by:
lremin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.count- the count type: long.value- the value.- Returns:
- Long integer-reply the number of removed elements.
-
lset
Description copied from interface:RedisListReactiveCommandsSet the value of an element in a list by its index.- Specified by:
lsetin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.index- the index type: long.value- the value.- Returns:
- String simple-string-reply.
-
ltrim
Description copied from interface:RedisListReactiveCommandsTrim a list to the specified range.- Specified by:
ltrimin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.start- the start type: long.stop- the stop type: long.- Returns:
- String simple-string-reply.
-
memoryUsage
Description copied from interface:RedisServerReactiveCommandsReports the number of bytes that a key and its value require to be stored in RAM.- Specified by:
memoryUsagein interfaceRedisServerReactiveCommands<K,V>- Returns:
- memory usage in bytes.
-
mget
Description copied from interface:RedisStringReactiveCommandsGet the values of all the given keys.- Specified by:
mgetin interfaceRedisClusterReactiveCommands<K,V>- Specified by:
mgetin interfaceRedisStringReactiveCommands<K,V>- Parameters:
keys- the key.- Returns:
- V array-reply list of values at the specified keys.
-
mget
-
mget
Description copied from interface:RedisStringReactiveCommandsStream over the values of all the given keys.- Specified by:
mgetin interfaceRedisStringReactiveCommands<K,V>- Parameters:
channel- the channel.keys- the keys.- Returns:
- Long array-reply list of values at the specified keys.
-
mget
-
mget
-
migrate
Description copied from interface:RedisKeyReactiveCommandsAtomically transfer a key from a Redis instance to another one.- Specified by:
migratein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
host- the host.port- the port.key- the key.db- the database.timeout- the timeout in milliseconds.- Returns:
- String simple-string-reply The command returns OK on success.
-
migrate
public Mono<String> migrate(String host, int port, int db, long timeout, MigrateArgs<K> migrateArgs)Description copied from interface:RedisKeyReactiveCommandsAtomically transfer one or more keys from a Redis instance to another one.- Specified by:
migratein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
host- the host.port- the port.db- the database.timeout- the timeout in milliseconds.migrateArgs- migrate args that allow to configure further options.- Returns:
- String simple-string-reply The command returns OK on success.
-
move
Description copied from interface:RedisKeyReactiveCommandsMove a key to another database.- Specified by:
movein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.db- the db type: long.- Returns:
- Boolean integer-reply specifically:.
-
mset
Description copied from interface:RedisStringReactiveCommandsSet multiple keys to multiple values.- Specified by:
msetin interfaceRedisClusterReactiveCommands<K,V>- Specified by:
msetin interfaceRedisStringReactiveCommands<K,V>- Parameters:
map- the null.- Returns:
- String simple-string-reply always
OKsinceMSETcan't fail.
-
msetnx
Description copied from interface:RedisStringReactiveCommandsSet multiple keys to multiple values, only if none of the keys exist.- Specified by:
msetnxin interfaceRedisClusterReactiveCommands<K,V>- Specified by:
msetnxin interfaceRedisStringReactiveCommands<K,V>- Parameters:
map- the null.- Returns:
- Boolean integer-reply specifically:
1if the all the keys were set.0if no key was set (at least one key already existed).
-
multi
Description copied from interface:RedisTransactionalReactiveCommandsMark the start of a transaction block.- Specified by:
multiin interfaceRedisTransactionalReactiveCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
objectEncoding
Description copied from interface:RedisKeyReactiveCommandsReturns the kind of internal representation used in order to store the value associated with thekey.- Specified by:
objectEncodingin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- String.
-
objectFreq
Description copied from interface:RedisKeyReactiveCommandsReturns the logarithmic access frequency counter of the object stored at the specifiedkey.- Specified by:
objectFreqin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long.
-
objectIdletime
Description copied from interface:RedisKeyReactiveCommandsReturns the number of seconds since the object stored at the specified key is idle (not requested by read or write operations).- Specified by:
objectIdletimein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- number of seconds since the object stored at the specified key is idle.
-
objectRefcount
Description copied from interface:RedisKeyReactiveCommandsReturns the number of references of the value associated with the specified key.- Specified by:
objectRefcountin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long.
-
persist
Description copied from interface:RedisKeyReactiveCommandsRemove the expiration from a key.- Specified by:
persistin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was removed.falseifkeydoes not exist or does not have an associated timeout.
-
pexpire
Description copied from interface:RedisKeyReactiveCommandsSet a key's time to live in milliseconds.- Specified by:
pexpirein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.milliseconds- the milliseconds type: long.- Returns:
- integer-reply, specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set.
-
pexpire
Description copied from interface:RedisKeyReactiveCommandsSet a key's time to live in milliseconds.- Specified by:
pexpirein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.milliseconds- the milliseconds.- Returns:
- integer-reply, specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set.
-
pexpireat
Description copied from interface:RedisKeyReactiveCommandsSet the expiration for a key as a UNIX timestamp specified in milliseconds.- Specified by:
pexpireatin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.timestamp- the milliseconds-timestamp type: posix time.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set (see:EXPIRE).
-
pexpireat
Description copied from interface:RedisKeyReactiveCommandsSet the expiration for a key as a UNIX timestamp specified in milliseconds.- Specified by:
pexpireatin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.timestamp- the milliseconds-timestamp type: posix time.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set (see:EXPIRE).
-
pexpireat
Description copied from interface:RedisKeyReactiveCommandsSet the expiration for a key as a UNIX timestamp specified in milliseconds.- Specified by:
pexpireatin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.timestamp- the milliseconds-timestamp type: posix time.- Returns:
- Boolean integer-reply specifically:
trueif the timeout was set.falseifkeydoes not exist or the timeout could not be set (see:EXPIRE).
-
pfadd
Description copied from interface:RedisHLLReactiveCommandsAdds the specified elements to the specified HyperLogLog.- Specified by:
pfaddin interfaceRedisHLLReactiveCommands<K,V>- Parameters:
key- the key.values- the values.- Returns:
- Long integer-reply specifically: 1 if at least 1 HyperLogLog internal register was altered. 0 otherwise.
-
pfadd
-
pfcount
Description copied from interface:RedisHLLReactiveCommandsReturn the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).- Specified by:
pfcountin interfaceRedisHLLReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply specifically:
The approximated number of unique elements observed via
PFADD.
-
pfcount
-
pfmerge
Description copied from interface:RedisHLLReactiveCommandsMerge N different HyperLogLogs into a single one.- Specified by:
pfmergein interfaceRedisHLLReactiveCommands<K,V>- Parameters:
destkey- the destination key.sourcekeys- the source key.- Returns:
- String simple-string-reply The command just returns
OK.
-
pfmerge
-
ping
Description copied from interface:BaseRedisReactiveCommandsPing the server.- Specified by:
pingin interfaceBaseRedisReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
psetex
Description copied from interface:RedisStringReactiveCommandsSet the value and expiration in milliseconds of a key.- Specified by:
psetexin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.milliseconds- the milliseconds type: long.value- the value.- Returns:
- String simple-string-reply.
-
pttl
Description copied from interface:RedisKeyReactiveCommandsGet the time to live for a key in milliseconds.- Specified by:
pttlin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply TTL in milliseconds, or a negative value in order to signal an error (see the description above).
-
publish
Description copied from interface:BaseRedisReactiveCommandsPost a message to a channel.- Specified by:
publishin interfaceBaseRedisReactiveCommands<K,V>- Parameters:
channel- the channel type: key.message- the message type: value.- Returns:
- Long integer-reply the number of clients that received the message.
-
pubsubChannels
Description copied from interface:BaseRedisReactiveCommandsLists the currently *active channels*.- Specified by:
pubsubChannelsin interfaceBaseRedisReactiveCommands<K,V>- Returns:
- K array-reply a list of active channels, optionally matching the specified pattern.
-
pubsubChannels
Description copied from interface:BaseRedisReactiveCommandsLists the currently *active channels*.- Specified by:
pubsubChannelsin interfaceBaseRedisReactiveCommands<K,V>- Parameters:
channel- the key.- Returns:
- K array-reply a list of active channels, optionally matching the specified pattern.
-
pubsubNumpat
Description copied from interface:BaseRedisReactiveCommandsReturns the number of subscriptions to patterns.- Specified by:
pubsubNumpatin interfaceBaseRedisReactiveCommands<K,V>- Returns:
- Long integer-reply the number of patterns all the clients are subscribed to.
-
pubsubNumsub
Description copied from interface:BaseRedisReactiveCommandsReturns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.- Specified by:
pubsubNumsubin interfaceBaseRedisReactiveCommands<K,V>- Parameters:
channels- channel keys.- Returns:
- array-reply a list of channels and number of subscribers for every channel.
-
quit
Description copied from interface:BaseRedisReactiveCommandsInstructs Redis to disconnect the connection. Note that if auto-reconnect is enabled then Lettuce will auto-reconnect if the connection was disconnected. UseStatefulConnection.close()to close connections and release resources.- Specified by:
quitin interfaceBaseRedisReactiveCommands<K,V>- Returns:
- String simple-string-reply always OK.
-
randomkey
Description copied from interface:RedisKeyReactiveCommandsReturn a random key from the keyspace.- Specified by:
randomkeyin interfaceRedisKeyReactiveCommands<K,V>- Returns:
- K bulk-string-reply the random key, or
nullwhen the database is empty.
-
readOnly
Description copied from interface:BaseRedisReactiveCommandsSwitch connection to Read-Only mode when connecting to a cluster.- Specified by:
readOnlyin interfaceBaseRedisReactiveCommands<K,V>- Specified by:
readOnlyin interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
readWrite
Description copied from interface:BaseRedisReactiveCommandsSwitch connection to Read-Write mode (default) when connecting to a cluster.- Specified by:
readWritein interfaceBaseRedisReactiveCommands<K,V>- Specified by:
readWritein interfaceRedisClusterReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
rename
Description copied from interface:RedisKeyReactiveCommandsRename a key.- Specified by:
renamein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.newKey- the newkey type: key.- Returns:
- String simple-string-reply.
-
renamenx
Description copied from interface:RedisKeyReactiveCommandsRename a key, only if the new key does not exist.- Specified by:
renamenxin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.newKey- the newkey type: key.- Returns:
- Boolean integer-reply specifically:
trueifkeywas renamed tonewkey.falseifnewkeyalready exists.
-
reset
public void reset()Description copied from interface:BaseRedisReactiveCommandsReset the command state. Queued commands will be canceled and the internal state will be reset. This is useful when the internal state machine gets out of sync with the connection.- Specified by:
resetin interfaceBaseRedisReactiveCommands<K,V>
-
restore
Description copied from interface:RedisKeyReactiveCommandsCreate a key using the provided serialized value, previously obtained using DUMP.- Specified by:
restorein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.ttl- the ttl type: long.value- the serialized-value type: string.- Returns:
- String simple-string-reply The command returns OK on success.
-
restore
Description copied from interface:RedisKeyReactiveCommandsCreate a key using the provided serialized value, previously obtained using DUMP.- Specified by:
restorein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.value- the serialized-value type: string.args- theRestoreArgs, must not benull.- Returns:
- String simple-string-reply The command returns OK on success.
-
role
Description copied from interface:BaseRedisReactiveCommandsReturn the role of the instance in the context of replication.- Specified by:
rolein interfaceBaseRedisReactiveCommands<K,V>- Returns:
- Object array-reply where the first element is one of master, slave, sentinel and the additional elements are role-specific.
-
rpop
Description copied from interface:RedisListReactiveCommandsRemove and get the last element in a list.- Specified by:
rpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the value of the last element, or
nullwhenkeydoes not exist.
-
rpop
Description copied from interface:RedisListReactiveCommandsRemove and get the lastcountelements in a list.- Specified by:
rpopin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
- V array-reply list of the last
countelements, ornullwhenkeydoes not exist.
-
rpoplpush
Description copied from interface:RedisListReactiveCommandsRemove the last element in a list, append it to another list and return it.- Specified by:
rpoplpushin interfaceRedisListReactiveCommands<K,V>- Parameters:
source- the source key.destination- the destination type: key.- Returns:
- V bulk-string-reply the element being popped and pushed.
-
rpush
Description copied from interface:RedisListReactiveCommandsAppend one or multiple values to a list.- Specified by:
rpushin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.values- the value.- Returns:
- Long integer-reply the length of the list after the push operation.
-
rpushx
Description copied from interface:RedisListReactiveCommandsAppend values to a list, only if the list exists.- Specified by:
rpushxin interfaceRedisListReactiveCommands<K,V>- Parameters:
key- the key.values- the values.- Returns:
- Long integer-reply the length of the list after the push operation.
-
sadd
Description copied from interface:RedisSetReactiveCommandsAdd one or more members to a set.- Specified by:
saddin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- Long integer-reply the number of elements that were added to the set, not including all the elements already present into the set.
-
save
Description copied from interface:RedisServerReactiveCommandsSynchronously save the dataset to disk.- Specified by:
savein interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply The commands returns OK on success.
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Returns:
- KeyScanCursor<K> scan cursor.
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
scanArgs- scan arguments.- Returns:
- KeyScanCursor<K> scan cursor.
- See Also:
KeyScanArgs
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- KeyScanCursor<K> scan cursor.
- See Also:
KeyScanArgs
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- KeyScanCursor<K> scan cursor.
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key.- Returns:
- StreamScanCursor scan cursor.
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
- See Also:
KeyScanArgs
-
scan
public Mono<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key.scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
- See Also:
KeyScanArgs
-
scan
Description copied from interface:RedisKeyReactiveCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key.scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- StreamScanCursor scan cursor.
-
scard
Description copied from interface:RedisSetReactiveCommandsGet the number of members in a set.- Specified by:
scardin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the cardinality (number of elements) of the set, or
falseifkeydoes not exist.
-
scriptExists
Description copied from interface:RedisScriptingReactiveCommandsCheck existence of scripts in the script cache.- Specified by:
scriptExistsin interfaceRedisScriptingReactiveCommands<K,V>- Parameters:
digests- script digests.- Returns:
- Boolean array-reply The command returns an array of integers that correspond to the specified SHA1 digest arguments. For every corresponding SHA1 digest of a script that actually exists in the script cache, an 1 is returned, otherwise 0 is returned.
-
scriptFlush
Description copied from interface:RedisScriptingReactiveCommandsRemove all the scripts from the script cache.- Specified by:
scriptFlushin interfaceRedisScriptingReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
scriptFlush
Description copied from interface:RedisScriptingReactiveCommandsRemove all the scripts from the script cache using the specifiedFlushMode.- Specified by:
scriptFlushin interfaceRedisScriptingReactiveCommands<K,V>- Parameters:
flushMode- the flush mode (sync/asnync).- Returns:
- String simple-string-reply.
-
scriptKill
Description copied from interface:RedisScriptingReactiveCommandsKill the script currently in execution.- Specified by:
scriptKillin interfaceRedisScriptingReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
scriptLoad
Description copied from interface:RedisScriptingReactiveCommandsLoad the specified Lua script into the script cache.- Specified by:
scriptLoadin interfaceRedisScriptingReactiveCommands<K,V>- Parameters:
script- script content.- Returns:
- String bulk-string-reply This command returns the SHA1 digest of the script added into the script cache.
-
scriptLoad
Description copied from interface:RedisScriptingReactiveCommandsLoad the specified Lua script into the script cache.- Specified by:
scriptLoadin interfaceRedisScriptingReactiveCommands<K,V>- Parameters:
script- script content.- Returns:
- String bulk-string-reply This command returns the SHA1 digest of the script added into the script cache.
-
sdiff
Description copied from interface:RedisSetReactiveCommandsSubtract multiple sets.- Specified by:
sdiffin interfaceRedisSetReactiveCommands<K,V>- Parameters:
keys- the key.- Returns:
- V array-reply list with members of the resulting set.
-
sdiff
Description copied from interface:RedisSetReactiveCommandsSubtract multiple sets.- Specified by:
sdiffin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- the channel.keys- the keys.- Returns:
- Long count of members of the resulting set.
-
sdiffstore
Description copied from interface:RedisSetReactiveCommandsSubtract multiple sets and store the resulting set in a key.- Specified by:
sdiffstorein interfaceRedisSetReactiveCommands<K,V>- Parameters:
destination- the destination type: key.keys- the key.- Returns:
- Long integer-reply the number of elements in the resulting set.
-
select
-
set
Description copied from interface:RedisStringReactiveCommandsSet the string value of a key.- Specified by:
setin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.- Returns:
- String simple-string-reply
OKifSETwas executed correctly.
-
set
Description copied from interface:RedisStringReactiveCommandsSet the string value of a key.- Specified by:
setin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.setArgs- the setArgs.- Returns:
- String simple-string-reply
OKifSETwas executed correctly.
-
setGet
Description copied from interface:RedisStringReactiveCommandsSet the string value of a key and return its old value.- Specified by:
setGetin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.- Returns:
- V bulk-string-reply the old value stored at
key, ornullwhenkeydid not exist.
-
setGet
Description copied from interface:RedisStringReactiveCommandsSet the string value of a key and return its old value.- Specified by:
setGetin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.setArgs- the command arguments.- Returns:
- V bulk-string-reply the old value stored at
key, ornullwhenkeydid not exist.
-
setAutoFlushCommands
public void setAutoFlushCommands(boolean autoFlush)Description copied from interface:BaseRedisReactiveCommandsDisable or enable auto-flush behavior. Default istrue. If autoFlushCommands is disabled, multiple commands can be issued without writing them actually to the transport. Commands are buffered until aBaseRedisReactiveCommands.flushCommands()is issued. After callingBaseRedisReactiveCommands.flushCommands()commands are sent to the transport and executed by Redis.- Specified by:
setAutoFlushCommandsin interfaceBaseRedisReactiveCommands<K,V>- Parameters:
autoFlush- state of autoFlush.
-
setTimeout
Description copied from interface:RedisClusterReactiveCommandsSet the default timeout for operations. A zero timeout value indicates to not time out.- Specified by:
setTimeoutin interfaceRedisClusterReactiveCommands<K,V>- Parameters:
timeout- the timeout value
-
setbit
Description copied from interface:RedisStringReactiveCommandsSets or clears the bit at offset in the string value stored at key.- Specified by:
setbitin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.offset- the offset type: long.value- the value type: string.- Returns:
- Long integer-reply the original bit value stored at offset.
-
setex
Description copied from interface:RedisStringReactiveCommandsSet the value and expiration of a key.- Specified by:
setexin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.seconds- the seconds type: long.value- the value.- Returns:
- String simple-string-reply.
-
setnx
Description copied from interface:RedisStringReactiveCommandsSet the value of a key, only if the key does not exist.- Specified by:
setnxin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.value- the value.- Returns:
- Boolean integer-reply specifically:
1if the key was set0if the key was not set.
-
setrange
Description copied from interface:RedisStringReactiveCommandsOverwrite part of a string at key starting at the specified offset.- Specified by:
setrangein interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.offset- the offset type: long.value- the value.- Returns:
- Long integer-reply the length of the string after it was modified by the command.
-
shutdown
Description copied from interface:RedisServerReactiveCommandsSynchronously save the dataset to disk and then shut down the server.- Specified by:
shutdownin interfaceRedisServerReactiveCommands<K,V>- Parameters:
save-trueforce save operation.
-
sinter
Description copied from interface:RedisSetReactiveCommandsIntersect multiple sets.- Specified by:
sinterin interfaceRedisSetReactiveCommands<K,V>- Parameters:
keys- the key.- Returns:
- V array-reply list with members of the resulting set.
-
sinter
Description copied from interface:RedisSetReactiveCommandsIntersect multiple sets.- Specified by:
sinterin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- the channel.keys- the keys.- Returns:
- Long count of members of the resulting set.
-
sinterstore
Description copied from interface:RedisSetReactiveCommandsIntersect multiple sets and store the resulting set in a key.- Specified by:
sinterstorein interfaceRedisSetReactiveCommands<K,V>- Parameters:
destination- the destination type: key.keys- the key.- Returns:
- Long integer-reply the number of elements in the resulting set.
-
sismember
Description copied from interface:RedisSetReactiveCommandsDetermine if a given value is a member of a set.- Specified by:
sismemberin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.member- the member type: value.- Returns:
- Boolean integer-reply specifically:
trueif the element is a member of the set.falseif the element is not a member of the set, or ifkeydoes not exist.
-
slaveof
Description copied from interface:RedisServerReactiveCommandsMake the server a replica of another instance, or promote it as master.- Specified by:
slaveofin interfaceRedisServerReactiveCommands<K,V>- Parameters:
host- the host type: string.port- the port type: string.- Returns:
- String simple-string-reply.
-
slaveofNoOne
Description copied from interface:RedisServerReactiveCommandsPromote server as master.- Specified by:
slaveofNoOnein interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply.
-
slowlogGet
Description copied from interface:RedisServerReactiveCommandsRead the slow log.- Specified by:
slowlogGetin interfaceRedisServerReactiveCommands<K,V>- Returns:
- Object deeply nested multi bulk replies.
-
slowlogGet
Description copied from interface:RedisServerReactiveCommandsRead the slow log.- Specified by:
slowlogGetin interfaceRedisServerReactiveCommands<K,V>- Parameters:
count- the count.- Returns:
- Object deeply nested multi bulk replies.
-
slowlogLen
Description copied from interface:RedisServerReactiveCommandsObtaining the current length of the slow log.- Specified by:
slowlogLenin interfaceRedisServerReactiveCommands<K,V>- Returns:
- Long length of the slow log.
-
slowlogReset
Description copied from interface:RedisServerReactiveCommandsResetting the slow log.- Specified by:
slowlogResetin interfaceRedisServerReactiveCommands<K,V>- Returns:
- String simple-string-reply The commands returns OK on success.
-
smembers
Description copied from interface:RedisSetReactiveCommandsGet all the members in a set.- Specified by:
smembersin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V array-reply all elements of the set.
-
smembers
Description copied from interface:RedisSetReactiveCommandsGet all the members in a set.- Specified by:
smembersin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- the channel.key- the keys.- Returns:
- Long count of members of the resulting set.
-
smismember
Description copied from interface:RedisSetReactiveCommandsReturns whether each member is a member of the set stored at key.- Specified by:
smismemberin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- Boolean array-reply list representing the membership of the given elements, in the same order as they are requested.
-
smove
Description copied from interface:RedisSetReactiveCommandsMove a member from one set to another.- Specified by:
smovein interfaceRedisSetReactiveCommands<K,V>- Parameters:
source- the source key.destination- the destination type: key.member- the member type: value.- Returns:
- Boolean integer-reply specifically:
trueif the element is moved.falseif the element is not a member ofsourceand no operation was performed.
-
sort
Description copied from interface:RedisKeyReactiveCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V array-reply list of sorted elements.
-
sort
Description copied from interface:RedisKeyReactiveCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.- Returns:
- Long number of values.
-
sort
Description copied from interface:RedisKeyReactiveCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.sortArgs- sort arguments.- Returns:
- V array-reply list of sorted elements.
-
sort
Description copied from interface:RedisKeyReactiveCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.sortArgs- sort arguments.- Returns:
- Long number of values.
-
sortStore
Description copied from interface:RedisKeyReactiveCommandsSort the elements in a list, set or sorted set.- Specified by:
sortStorein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.sortArgs- sort arguments.destination- the destination key to store sort results.- Returns:
- Long number of values.
-
spop
Description copied from interface:RedisSetReactiveCommandsRemove and return a random member from a set.- Specified by:
spopin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the removed element, or
nullwhenkeydoes not exist.
-
spop
Description copied from interface:RedisSetReactiveCommandsRemove and return one or multiple random members from a set.- Specified by:
spopin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.count- number of members to pop.- Returns:
- V bulk-string-reply the removed element, or
nullwhenkeydoes not exist.
-
srandmember
Description copied from interface:RedisSetReactiveCommandsGet one random member from a set.- Specified by:
srandmemberin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply without the additional
countargument the command returns a Bulk Reply with the randomly selected element, ornullwhenkeydoes not exist.
-
srandmember
Description copied from interface:RedisSetReactiveCommandsGet one or multiple random members from a set.- Specified by:
srandmemberin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.count- the count type: long.- Returns:
- V bulk-string-reply without the additional
countargument the command returns a Bulk Reply with the randomly selected element, ornullwhenkeydoes not exist.
-
srandmember
Description copied from interface:RedisSetReactiveCommandsGet one or multiple random members from a set.- Specified by:
srandmemberin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.count- the count.- Returns:
- Long count of members of the resulting set.
-
srem
Description copied from interface:RedisSetReactiveCommandsRemove one or more members from a set.- Specified by:
sremin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- Long integer-reply the number of members that were removed from the set, not including non existing members.
-
sscan
Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- ValueScanCursor<V> scan cursor.
-
sscan
Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.scanArgs- scan arguments.- Returns:
- ValueScanCursor<V> scan cursor.
-
sscan
Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- ValueScanCursor<V> scan cursor.
-
sscan
Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
key- the key.scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- ValueScanCursor<V> scan cursor.
-
sscan
Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.- Returns:
- StreamScanCursor scan cursor.
-
sscan
Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
sscan
public Mono<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
sscan
public Mono<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)Description copied from interface:RedisSetReactiveCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- StreamScanCursor scan cursor.
-
strlen
Description copied from interface:RedisStringReactiveCommandsGet the length of the value stored in a key.- Specified by:
strlenin interfaceRedisStringReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the length of the string at
key, or0whenkeydoes not exist.
-
stralgoLcs
Description copied from interface:RedisStringReactiveCommandsThe STRALGO command implements complex algorithms that operate on strings. This method uses the LCS algorithm (longest common substring).- Without modifiers the string representing the longest common substring is returned.
- When
LENis given the command returns the length of the longest common substring. - When
IDXis 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. WhenWITHMATCHLENis given each array representing a match will also have the length of the match.
- Specified by:
stralgoLcsin interfaceRedisStringReactiveCommands<K,V>- Parameters:
strAlgoArgs- command arguments.- Returns:
- StringMatchResult.
-
sunion
Description copied from interface:RedisSetReactiveCommandsAdd multiple sets.- Specified by:
sunionin interfaceRedisSetReactiveCommands<K,V>- Parameters:
keys- the key.- Returns:
- V array-reply list with members of the resulting set.
-
sunion
Description copied from interface:RedisSetReactiveCommandsAdd multiple sets.- Specified by:
sunionin interfaceRedisSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.keys- the keys.- Returns:
- Long count of members of the resulting set.
-
sunionstore
Description copied from interface:RedisSetReactiveCommandsAdd multiple sets and store the resulting set in a key.- Specified by:
sunionstorein interfaceRedisSetReactiveCommands<K,V>- Parameters:
destination- the destination type: key.keys- the key.- Returns:
- Long integer-reply the number of elements in the resulting set.
-
swapdb
-
time
Description copied from interface:RedisServerReactiveCommandsReturn the current server time.- Specified by:
timein interfaceRedisServerReactiveCommands<K,V>- Returns:
- V array-reply specifically: A multi bulk reply containing two elements: unix time in seconds. microseconds.
-
touch
Description copied from interface:RedisKeyReactiveCommandsTouch one or more keys. Touch sets the last accessed time for a key. Non-exsitent keys wont get created.- Specified by:
touchin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply the number of found keys.
-
touch
-
ttl
Description copied from interface:RedisKeyReactiveCommandsGet the time to live for a key.- Specified by:
ttlin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply TTL in seconds, or a negative value in order to signal an error (see the description above).
-
type
Description copied from interface:RedisKeyReactiveCommandsDetermine the type stored at key.- Specified by:
typein interfaceRedisKeyReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- String simple-string-reply type of
key, ornonewhenkeydoes not exist.
-
unlink
Description copied from interface:RedisKeyReactiveCommandsUnlink one or more keys (non blocking DEL).- Specified by:
unlinkin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply The number of keys that were removed.
-
unlink
-
copy
Description copied from interface:RedisKeyReactiveCommandsCopy the value stored at the source key to the destination key.- Specified by:
copyin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
source- the source.destination- the destination.- Returns:
- Boolean integer-reply specifically:
trueif source was copied.falseif source was not copied.
-
copy
Description copied from interface:RedisKeyReactiveCommandsCopy the value stored at the source key to the destination key.- Specified by:
copyin interfaceRedisKeyReactiveCommands<K,V>- Parameters:
source- the source.destination- the destination.copyArgs- the copyArgs.- Returns:
- Boolean integer-reply specifically:
trueif source was copied.falseif source was not copied.
-
unwatch
Description copied from interface:RedisTransactionalReactiveCommandsForget about all watched keys.- Specified by:
unwatchin interfaceRedisTransactionalReactiveCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
waitForReplication
Description copied from interface:BaseRedisReactiveCommandsWait for replication.- Specified by:
waitForReplicationin interfaceBaseRedisReactiveCommands<K,V>- Parameters:
replicas- minimum number of replicas.timeout- timeout in milliseconds.- Returns:
- number of replicas.
-
watch
Description copied from interface:RedisTransactionalReactiveCommandsWatch the given keys to determine execution of the MULTI/EXEC block.- Specified by:
watchin interfaceRedisTransactionalReactiveCommands<K,V>- Parameters:
keys- the key.- Returns:
- String simple-string-reply always
OK.
-
xack
Description copied from interface:RedisStreamReactiveCommandsAcknowledge one or more messages as processed.- Specified by:
xackin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.messageIds- message Id's to acknowledge.- Returns:
- simple-reply the lenght of acknowledged messages.
-
xadd
Description copied from interface:RedisStreamReactiveCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.body- message body.- Returns:
- simple-reply the message Id.
-
xadd
Description copied from interface:RedisStreamReactiveCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.body- message body.- Returns:
- simple-reply the message Id.
-
xadd
Description copied from interface:RedisStreamReactiveCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.keysAndValues- message body.- Returns:
- simple-reply the message Id.
-
xadd
Description copied from interface:RedisStreamReactiveCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.keysAndValues- message body.- Returns:
- simple-reply the message Id.
-
xautoclaim
Description copied from interface:RedisStreamReactiveCommandsGets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.- Specified by:
xautoclaimin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.- Returns:
- simple-reply the claimed stream messages.
-
xclaim
public Flux<StreamMessage<K,V>> xclaim(K key, Consumer<K> consumer, long minIdleTime, String... messageIds)Description copied from interface:RedisStreamReactiveCommandsGets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.- Specified by:
xclaimin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.consumer- consumer identified by group name and consumer key.messageIds- message Id's to claim.- Returns:
- simple-reply the
StreamMessage.
-
xclaim
public Flux<StreamMessage<K,V>> xclaim(K key, Consumer<K> consumer, XClaimArgs args, String... messageIds)Description copied from interface:RedisStreamReactiveCommandsGets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.Note that setting the
JUSTIDflag (calling this method withXClaimArgs.justid()) suppresses the message bode andStreamMessage.getBody()isnull.- Specified by:
xclaimin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.consumer- consumer identified by group name and consumer key.messageIds- message Id's to claim.- Returns:
- simple-reply the
StreamMessage.
-
xdel
Description copied from interface:RedisStreamReactiveCommandsRemoves the specified entries from the stream. Returns the number of items deleted, that may be different from the number of IDs passed in case certain IDs do not exist.- Specified by:
xdelin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.messageIds- stream message Id's.- Returns:
- simple-reply number of removed entries.
-
xgroupCreate
Description copied from interface:RedisStreamReactiveCommandsCreate a consumer group.- Specified by:
xgroupCreatein interfaceRedisStreamReactiveCommands<K,V>- Parameters:
streamOffset- name of the stream containing the offset to set.group- name of the consumer group.- Returns:
- simple-reply
trueif successful.
-
xgroupCreate
public Mono<String> xgroupCreate(XReadArgs.StreamOffset<K> streamOffset, K group, XGroupCreateArgs args)Description copied from interface:RedisStreamReactiveCommandsCreate a consumer group.- Specified by:
xgroupCreatein interfaceRedisStreamReactiveCommands<K,V>- Parameters:
streamOffset- name of the stream containing the offset to set.group- name of the consumer group.- Returns:
- simple-reply
trueif successful.
-
xgroupCreateconsumer
Description copied from interface:RedisStreamReactiveCommandsCreate a consumer from a consumer group.- Specified by:
xgroupCreateconsumerin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.consumer- consumer identified by group name and consumer key.- Returns:
- simple-reply
trueif successful.
-
xgroupDelconsumer
Description copied from interface:RedisStreamReactiveCommandsDelete a consumer from a consumer group.- Specified by:
xgroupDelconsumerin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.consumer- consumer identified by group name and consumer key.- Returns:
- Long integer-reply number of pending messages.
-
xgroupDestroy
Description copied from interface:RedisStreamReactiveCommandsDestroy a consumer group.- Specified by:
xgroupDestroyin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.- Returns:
- simple-reply
trueif successful.
-
xgroupSetid
Description copied from interface:RedisStreamReactiveCommandsSet the currentgroupid.- Specified by:
xgroupSetidin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
streamOffset- name of the stream containing the offset to set.group- name of the consumer group.- Returns:
- simple-reply OK.
-
xinfoStream
Description copied from interface:RedisStreamReactiveCommandsRetrieve information about the stream atkey.- Specified by:
xinfoStreamin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.- Returns:
- Object array-reply.
-
xinfoGroups
Description copied from interface:RedisStreamReactiveCommandsRetrieve information about the stream consumer groups atkey.- Specified by:
xinfoGroupsin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.- Returns:
- Object array-reply.
-
xinfoConsumers
Description copied from interface:RedisStreamReactiveCommandsRetrieve information about consumer groups of groupgroupand stream atkey.- Specified by:
xinfoConsumersin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.- Returns:
- Object array-reply.
-
xlen
Description copied from interface:RedisStreamReactiveCommandsGet the length of a steam.- Specified by:
xlenin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.- Returns:
- simple-reply the lenght of the stream.
-
xpending
Description copied from interface:RedisStreamReactiveCommandsRead pending messages from a stream for agroup.- Specified by:
xpendingin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.- Returns:
- Object array-reply list pending entries.
-
xpending
Description copied from interface:RedisStreamReactiveCommandsRead pending messages from a stream within a specificRange.- Specified by:
xpendingin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.range- must not benull.limit- must not benull.- Returns:
- Object array-reply list with members of the resulting stream.
-
xpending
public Flux<PendingMessage> xpending(K key, Consumer<K> consumer, Range<String> range, Limit limit)Description copied from interface:RedisStreamReactiveCommandsRead pending messages from a stream within a specificRange.- Specified by:
xpendingin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.consumer- consumer identified by group name and consumer key.range- must not benull.limit- must not benull.- Returns:
- Object array-reply list with members of the resulting stream.
-
xpending
Description copied from interface:RedisStreamReactiveCommandsRead pending messages from a stream within a specificXPendingArgs.- Specified by:
xpendingin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.- Returns:
- Object array-reply list with members of the resulting stream.
-
xrange
Description copied from interface:RedisStreamReactiveCommandsRead messages from a stream within a specificRange.- Specified by:
xrangein interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.range- must not benull.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xrange
Description copied from interface:RedisStreamReactiveCommands- Specified by:
xrangein interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.range- must not benull.limit- must not benull.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xread
Description copied from interface:RedisStreamReactiveCommandsRead messages from one or moreXReadArgs.StreamOffsets.- Specified by:
xreadin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
streams- the streams to read from.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xread
Description copied from interface:RedisStreamReactiveCommandsRead messages from one or moreXReadArgs.StreamOffsets.- Specified by:
xreadin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
args- read arguments.streams- the streams to read from.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xreadgroup
public Flux<StreamMessage<K,V>> xreadgroup(Consumer<K> consumer, XReadArgs.StreamOffset<K>... streams)Description copied from interface:RedisStreamReactiveCommandsRead messages from one or moreXReadArgs.StreamOffsets using a consumer group.- Specified by:
xreadgroupin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
consumer- consumer/group.streams- the streams to read from.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xreadgroup
public Flux<StreamMessage<K,V>> xreadgroup(Consumer<K> consumer, XReadArgs args, XReadArgs.StreamOffset<K>... streams)Description copied from interface:RedisStreamReactiveCommandsRead messages from one or moreXReadArgs.StreamOffsets using a consumer group.- Specified by:
xreadgroupin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
consumer- consumer/group.args- read arguments.streams- the streams to read from.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xrevrange
Description copied from interface:RedisStreamReactiveCommandsRead messages from a stream within a specificRangein reverse order.- Specified by:
xrevrangein interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.range- must not benull.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xrevrange
Description copied from interface:RedisStreamReactiveCommands- Specified by:
xrevrangein interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.range- must not benull.limit- must not benull.- Returns:
- StreamMessage array-reply list with members of the resulting stream.
-
xtrim
Description copied from interface:RedisStreamReactiveCommandsTrims the stream tocountelements.- Specified by:
xtrimin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.count- length of the stream.- Returns:
- simple-reply number of removed entries.
-
xtrim
Description copied from interface:RedisStreamReactiveCommandsTrims the stream tocountelements.- Specified by:
xtrimin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.approximateTrimming-trueto trim approximately using the~flag.count- length of the stream.- Returns:
- simple-reply number of removed entries.
-
xtrim
Description copied from interface:RedisStreamReactiveCommandsTrims the stream within a specificXTrimArgs.- Specified by:
xtrimin interfaceRedisStreamReactiveCommands<K,V>- Parameters:
key- the stream key.- Returns:
- simple-reply number of removed entries.
-
bzpopmin
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns a member with the lowest scores in the sorted set stored at one of the keys.- Specified by:
bzpopminin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
-
bzpopmin
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns a member with the lowest scores in the sorted set stored at one of the keys.- Specified by:
bzpopminin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
-
bzpopmax
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns a member with the highest scores in the sorted set stored at one of the keys.- Specified by:
bzpopmaxin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
-
bzpopmax
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns a member with the highest scores in the sorted set stored at one of the keys.- Specified by:
bzpopmaxin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
timeout- the timeout in seconds.keys- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
-
zadd
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.score- the score.member- the member.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.scoresAndValues- the scoresAndValue tuples (score,value,score,value,...).- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.scoredValues- the scored values.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.zAddArgs- arguments for zadd.score- the score.member- the member.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.zAddArgs- arguments for zadd.scoresAndValues- the scoresAndValue tuples (score,value,score,value,...).- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the ke.zAddArgs- arguments for zadd.scoredValues- the scored values.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zaddincr
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists applying theINCRoption. ZADD acts like ZINCRBY.- Specified by:
zaddincrin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.score- the score.member- the member.- Returns:
- Long integer-reply specifically: The total number of elements changed.
-
zaddincr
Description copied from interface:RedisSortedSetReactiveCommandsAdd one or more members to a sorted set, or update its score if it already exists applying theINCRoption. ZADD acts like ZINCRBY.- Specified by:
zaddincrin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.zAddArgs- arguments for zadd.score- the score.member- the member.- Returns:
- Long integer-reply specifically: The total number of elements changed.
-
zcard
Description copied from interface:RedisSortedSetReactiveCommandsGet the number of members in a sorted set.- Specified by:
zcardin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the cardinality (number of elements) of the sorted set, or
falseifkeydoes not exist.
-
zcount
Description copied from interface:RedisSortedSetReactiveCommandsCount the members in a sorted set with scores within the given values.- Specified by:
zcountin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zcount
Description copied from interface:RedisSortedSetReactiveCommandsCount the members in a sorted set with scores within the given values.- Specified by:
zcountin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zcount
Description copied from interface:RedisSortedSetReactiveCommandsCount the members in a sorted set with scores within the givenRange.- Specified by:
zcountin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zdiff
Description copied from interface:RedisSortedSetReactiveCommandsComputes the difference between the first and all successive input sorted sets.- Specified by:
zdiffin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- V array-reply list of elements.
-
zdiffstore
Description copied from interface:RedisSortedSetReactiveCommandsComputes the difference between the first and all successive input sorted sets and stores the result in destination.- Specified by:
zdiffstorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
destKey- the dest key.srcKeys- the src keys.- Returns:
- Long the number of elements in the resulting sorted set at destination.
-
zdiffWithScores
Description copied from interface:RedisSortedSetReactiveCommandsComputes the difference between the first and all successive input sorted sets.- Specified by:
zdiffWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- V array-reply list of scored values.
-
zincrby
Description copied from interface:RedisSortedSetReactiveCommandsIncrement the score of a member in a sorted set.- Specified by:
zincrbyin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.amount- the increment type: long.member- the member type: value.- Returns:
- Double bulk-string-reply the new score of
member(a double precision floating point number), represented as string.
-
zinter
Description copied from interface:RedisSortedSetReactiveCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- V array-reply list of elements.
-
zinter
Description copied from interface:RedisSortedSetReactiveCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- V array-reply list of elements.
-
zinterWithScores
Description copied from interface:RedisSortedSetReactiveCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- V array-reply list of scored values.
-
zinterWithScores
Description copied from interface:RedisSortedSetReactiveCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- V array-reply list of scored values.
-
zinterstore
Description copied from interface:RedisSortedSetReactiveCommandsIntersect multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zinterstorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
destination- the destination.keys- the keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination.
-
zinterstore
Description copied from interface:RedisSortedSetReactiveCommandsIntersect multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zinterstorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
destination- the destination.zStoreArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination.
-
zlexcount
Description copied from interface:RedisSortedSetReactiveCommandsCount the number of members in a sorted set between a given lexicographical range.- Specified by:
zlexcountin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zlexcount
Description copied from interface:RedisSortedSetReactiveCommandsCount the number of members in a sorted set between a given lexicographical range.- Specified by:
zlexcountin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zmscore
Description copied from interface:RedisSortedSetReactiveCommandsReturns the scores associated with the specified members in the sorted set stored at key.- Specified by:
zmscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- Double array-reply list of scores or nil associated with the specified member values.
-
zpopmin
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns up to count members with the lowest scores in the sorted set stored at key.- Specified by:
zpopminin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- ScoredValue<V> the removed element.
-
zpopmin
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns up to count members with the lowest scores in the sorted set stored at key.- Specified by:
zpopminin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
- ScoredValue<V> array-reply list of popped scores and elements.
-
zpopmax
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns up to count members with the highest scores in the sorted set stored at key.- Specified by:
zpopmaxin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- ScoredValue<V> the removed element.
-
zpopmax
Description copied from interface:RedisSortedSetReactiveCommandsRemoves and returns up to count members with the highest scores in the sorted set stored at key.- Specified by:
zpopmaxin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
- ScoredValue<V> array-reply list of popped scores and elements.
-
zrandmember
Description copied from interface:RedisSortedSetReactiveCommandsReturn a random member from the sorted set stored atkey.- Specified by:
zrandmemberin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- element.
-
zrandmember
Description copied from interface:RedisSortedSetReactiveCommandsReturncountrandom members from the sorted set stored atkey.- Specified by:
zrandmemberin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.count- the number of members to return. If the provided count argument is positive, return an array of distinct fields.- Returns:
- ScoredValue<V> array-reply list of scores and elements.
-
zrandmemberWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a random member along its value from the sorted set stored atkey.- Specified by:
zrandmemberWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- the score and element.
-
zrandmemberWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturncountrandom members along their value from the sorted set stored atkey.- Specified by:
zrandmemberWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.count- the number of members to return. If the provided count argument is positive, return an array of distinct fields.- Returns:
- ScoredValue<V> array-reply list of scores and elements.
-
zrange
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by index.- Specified by:
zrangein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- V array-reply list of elements in the specified range.
-
zrange
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by index.- Specified by:
zrangein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.start- the start.stop- the stop.- Returns:
- Long count of elements in the specified range.
-
zrangeWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by index.- Specified by:
zrangeWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- V array-reply list of elements in the specified range.
-
zrangeWithScores
public Mono<Long> zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by index.- Specified by:
zrangeWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.start- the start.stop- the stop.- Returns:
- Long count of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- V array-reply list of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- V array-reply list of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- V array-reply list of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- V array-reply list of elements in the specified range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- V array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- V array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- V array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- V array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- V array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- V array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.min- min score.max- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.min- min score.max- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.range- the range.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
public Mono<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.range- the range.limit- the limit.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public Flux<ScoredValue<V>> zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.min- min score.max- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.min- min score.max- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.range- the range.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
public Mono<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.range- the range.limit- the limit.- Returns:
- Long count of elements in the specified score range.
-
zrangestorebylex
Description copied from interface:RedisSortedSetReactiveCommandsGet the specified range of elements in the sorted set stored atsrcKeyand stores the result in thedstKeydestination key.- Specified by:
zrangestorebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
dstKey- the dst key.srcKey- the src key.range- the lexicographical range.- Returns:
- The number of elements in the resulting sorted set.
-
zrangestorebyscore
public Mono<Long> zrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsGet the specified range of elements in the sorted set stored atsrcKeyand stores the result in thedstKeydestination key.- Specified by:
zrangestorebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
dstKey- the dst key.srcKey- the src key.range- the score range.- Returns:
- The number of elements in the resulting sorted set.
-
zrank
Description copied from interface:RedisSortedSetReactiveCommandsDetermine the index of a member in a sorted set.- Specified by:
zrankin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.member- the member type: value.- Returns:
- Long integer-reply the rank of
member. Ifmemberdoes not exist in the sorted set orkeydoes not exist,.
-
zrem
Description copied from interface:RedisSortedSetReactiveCommandsRemove one or more members from a sorted set.- Specified by:
zremin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- Long integer-reply specifically: The number of members removed from the sorted set, not including non existing members.
-
zremrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsRemove all members in a sorted set between the given lexicographical range.- Specified by:
zremrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsRemove all members in a sorted set between the given lexicographical range.- Specified by:
zremrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyrank
Description copied from interface:RedisSortedSetReactiveCommandsRemove all members in a sorted set within the given indexes.- Specified by:
zremrangebyrankin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.start- the start type: long.stop- the stop type: long.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsRemove all members in a sorted set within the given scores.- Specified by:
zremrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsRemove all members in a sorted set within the given scores.- Specified by:
zremrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsRemove all members in a sorted set within the given scores.- Specified by:
zremrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- Long integer-reply the number of elements removed.
-
zrevrange
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- V array-reply list of elements in the specified range.
-
zrevrange
Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.start- the start.stop- the stop.- Returns:
- Long count of elements in the specified range.
-
zrevrangeWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangeWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- V array-reply list of elements in the specified range.
-
zrevrangeWithScores
public Mono<Long> zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangeWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.start- the start.stop- the stop.- Returns:
- Long count of elements in the specified range.
-
zrevrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by lexicographical range ordered from high to low.- Specified by:
zrevrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebylex
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by lexicographical range ordered from high to low.- Specified by:
zrevrangebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the withscores.count- the null.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the offset.count- the count.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscore
public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.max- max score.min- min score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.max- max score.min- min score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.range- the range.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
public Mono<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.range- the range.limit- the limit.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the offset.count- the count.- Returns:
- ScoredValue<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the offset.count- the count.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public Flux<ScoredValue<V>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.range- the range.limit- limit.- Returns:
- V array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.max- max score.min- min score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.max- max score.min- min score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.range- the range.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
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.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
public Mono<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.range- the range.limit- the limit.- Returns:
- Long count of elements in the specified range.
-
zrevrangestorebylex
Description copied from interface:RedisSortedSetReactiveCommandsGet the lexicographical range ordered from high to low of elements in the sorted set stored atsrcKeyand stores the result in thedstKeydestination key.- Specified by:
zrevrangestorebylexin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
dstKey- the src key.srcKey- the dst key.range- the lexicographical range.- Returns:
- The number of elements in the resulting sorted set.
-
zrevrangestorebyscore
public Mono<Long> zrevrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetReactiveCommandsGet the specified range of elements in the sorted set stored at {@code srcKey with scores ordered from high to low and stores the result in the {@code dstKey} destination key. @param dstKey the src key. @param srcKey the dst key. @param range the score range. @return The number of elements in the resulting sorted set. @since 6.1- Specified by:
zrevrangestorebyscorein interfaceRedisSortedSetReactiveCommands<K,V>
-
zrevrank
Description copied from interface:RedisSortedSetReactiveCommandsDetermine the index of a member in a sorted set, with scores ordered from high to low.- Specified by:
zrevrankin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.member- the member type: value.- Returns:
- Long integer-reply the rank of
member. Ifmemberdoes not exist in the sorted set orkeydoes not exist,.
-
zscan
Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.scanArgs- scan arguments.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.- Returns:
- StreamScanCursor scan cursor.
-
zscan
public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
zscan
public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.scanCursor- cursor to resume from a previous scan, must not benull.scanArgs- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
zscan
public Mono<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)Description copied from interface:RedisSortedSetReactiveCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- StreamScanCursor scan cursor.
-
zscore
Description copied from interface:RedisSortedSetReactiveCommandsGet the score associated with the given member in a sorted set.- Specified by:
zscorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
key- the key.member- the member type: value.- Returns:
- Double bulk-string-reply the score of
member(a double precision floating point number), represented as string.
-
zunion
Description copied from interface:RedisSortedSetReactiveCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- V array-reply list of elements.
-
zunion
Description copied from interface:RedisSortedSetReactiveCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- V array-reply list of elements.
-
zunionWithScores
Description copied from interface:RedisSortedSetReactiveCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
keys- the keys.- Returns:
- V array-reply list of scored values.
-
zunionWithScores
Description copied from interface:RedisSortedSetReactiveCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionWithScoresin interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- V array-reply list of scored values.
-
zunionstore
Description copied from interface:RedisSortedSetReactiveCommandsAdd multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zunionstorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
destination- destination key.keys- source keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination.
-
zunionstore
Description copied from interface:RedisSortedSetReactiveCommandsAdd multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zunionstorein interfaceRedisSortedSetReactiveCommands<K,V>- Parameters:
destination- the destination.zStoreArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination.
-