java.lang.Object
io.lettuce.core.AbstractRedisAsyncCommands<K,V>
- Type Parameters:
K- Key type.V- Value type.
- All Implemented Interfaces:
BaseRedisAsyncCommands<K,V>,RedisAclAsyncCommands<K,V>,RedisGeoAsyncCommands<K,V>,RedisHashAsyncCommands<K,V>,RedisHLLAsyncCommands<K,V>,RedisKeyAsyncCommands<K,V>,RedisListAsyncCommands<K,V>,RedisScriptingAsyncCommands<K,V>,RedisServerAsyncCommands<K,V>,RedisSetAsyncCommands<K,V>,RedisSortedSetAsyncCommands<K,V>,RedisStreamAsyncCommands<K,V>,RedisStringAsyncCommands<K,V>,RedisTransactionalAsyncCommands<K,V>,RedisClusterAsyncCommands<K,V>
- Direct Known Subclasses:
RedisAdvancedClusterAsyncCommandsImpl,RedisAsyncCommandsImpl
public abstract class AbstractRedisAsyncCommands<K,V> extends Object implements RedisAclAsyncCommands<K,V>, RedisHashAsyncCommands<K,V>, RedisKeyAsyncCommands<K,V>, RedisStringAsyncCommands<K,V>, RedisListAsyncCommands<K,V>, RedisSetAsyncCommands<K,V>, RedisSortedSetAsyncCommands<K,V>, RedisScriptingAsyncCommands<K,V>, RedisServerAsyncCommands<K,V>, RedisHLLAsyncCommands<K,V>, BaseRedisAsyncCommands<K,V>, RedisTransactionalAsyncCommands<K,V>, RedisGeoAsyncCommands<K,V>, RedisClusterAsyncCommands<K,V>
An asynchronous and thread-safe API for a Redis connection.
- Author:
- Will Glozer, Mark Paluch, Tugdual Grall, dengliming, Andrey Shlykov
-
Constructor Summary
Constructors Constructor Description AbstractRedisAsyncCommands(StatefulConnection<K,V> connection, RedisCodec<K,V> codec)Initialize a new instance. -
Method Summary
Modifier and Type Method Description RedisFuture<Set<AclCategory>>aclCat()The command shows the available ACL categories if called without arguments.RedisFuture<Set<CommandType>>aclCat(AclCategory category)The command shows all the Redis commands in the specified category.RedisFuture<Long>aclDeluser(String... usernames)Delete all the specified ACL users and terminate all the connections that are authenticated with such users.RedisFuture<String>aclGenpass()The command generates a password.RedisFuture<String>aclGenpass(int bits)The command generates a password.RedisFuture<List<Object>>aclGetuser(String username)The command returns all the rules defined for an existing ACL user.RedisFuture<List<String>>aclList()The command shows the currently active ACL rules in the Redis server.RedisFuture<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.RedisFuture<List<Map<String,Object>>>aclLog()The command shows a list of recent ACL security events.RedisFuture<List<Map<String,Object>>>aclLog(int count)The command shows a list of recent ACL security events.RedisFuture<String>aclLogReset()The command clears ACL security events.RedisFuture<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.RedisFuture<String>aclSetuser(String username, AclSetuserArgs args)Create an ACL user with the specified rules or modify the rules of an existing user.RedisFuture<List<String>>aclUsers()The command shows a list of all the usernames of the currently configured users in the Redis ACL system.RedisFuture<String>aclWhoami()The command shows a list of all the usernames of the currently configured users in the Redis ACL system.RedisFuture<Long>append(K key, V value)Append a value to a key.RedisFuture<String>asking()The asking command is required after a-ASKredirection.RedisFuture<String>auth(char[] password)RedisFuture<String>auth(CharSequence password)Authenticate to the server.RedisFuture<String>auth(String username, char[] password)RedisFuture<String>auth(String username, CharSequence password)Authenticate to the server with username and password.RedisFuture<String>bgrewriteaof()Asynchronously rewrite the append-only file.RedisFuture<String>bgsave()Asynchronously save the dataset to disk.RedisFuture<Long>bitcount(K key)Count set bits in a string.RedisFuture<Long>bitcount(K key, long start, long end)Count set bits in a string.RedisFuture<List<Long>>bitfield(K key, BitFieldArgs bitFieldArgs)ExecuteBITFIELDwith its subcommands.RedisFuture<Long>bitopAnd(K destination, K... keys)Perform bitwise AND between strings.RedisFuture<Long>bitopNot(K destination, K source)Perform bitwise NOT between strings.RedisFuture<Long>bitopOr(K destination, K... keys)Perform bitwise OR between strings.RedisFuture<Long>bitopXor(K destination, K... keys)Perform bitwise XOR between strings.RedisFuture<Long>bitpos(K key, boolean state)Find first bit set or clear in a string.RedisFuture<Long>bitpos(K key, boolean state, long start)Find first bit set or clear in a string.RedisFuture<Long>bitpos(K key, boolean state, long start, long end)Find first bit set or clear in a string.RedisFuture<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.RedisFuture<KeyValue<K,V>>blpop(long timeout, K... keys)Remove and get the first element in a list, or block until one is available.RedisFuture<KeyValue<K,V>>brpop(long timeout, K... keys)Remove and get the last element in a list, or block until one is available.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<String>clientCaching(boolean enabled)Control tracking of keys in the context of server-assisted client cache invalidation.RedisFuture<K>clientGetname()Get the current connection name.RedisFuture<Long>clientGetredir()Returns the client ID we are redirecting our tracking notifications to.RedisFuture<Long>clientId()Get the id of the current connection.RedisFuture<Long>clientKill(KillArgs killArgs)Kill connections of clients which are filtered bykillArgs.RedisFuture<String>clientKill(String addr)Kill the connection of a client identified by ip:port.RedisFuture<String>clientList()Get the list of client connections.RedisFuture<String>clientPause(long timeout)Stop processing commands from clients for some time.RedisFuture<String>clientSetname(K name)Set the current connection name.RedisFuture<String>clientTracking(TrackingArgs args)Enables the tracking feature of the Redis server, that is used for server assisted client side caching.RedisFuture<Long>clientUnblock(long id, UnblockType type)Unblock the specified blocked client.RedisFuture<String>clusterAddSlots(int... slots)Adds slots to the cluster node.RedisFuture<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.RedisFuture<Long>clusterCountFailureReports(String nodeId)Returns the number of failure reports for the specified node.RedisFuture<Long>clusterCountKeysInSlot(int slot)Returns the number of keys in the specified Redis Cluster hashslot.RedisFuture<String>clusterDelSlots(int... slots)Removes slots from the cluster node.RedisFuture<String>clusterFailover(boolean force)Failover a cluster node.RedisFuture<String>clusterFlushslots()Delete all the slots associated with the specified node.RedisFuture<String>clusterForget(String nodeId)Disallow connections and remove the cluster node from the cluster.RedisFuture<List<K>>clusterGetKeysInSlot(int slot, int count)Retrieve the list of keys within theslot.RedisFuture<String>clusterInfo()Get information and statistics about the cluster viewed by the current node.RedisFuture<Long>clusterKeyslot(K key)Returns an integer identifying the hash slot the specified key hashes to.RedisFuture<String>clusterMeet(String ip, int port)Meet another cluster node to include the node into the cluster.RedisFuture<String>clusterMyId()Obtain the nodeId for the currently connected node.RedisFuture<String>clusterNodes()Obtain details about all cluster nodes.RedisFuture<String>clusterReplicate(String nodeId)Turn this node into a replica of the node with the idnodeId.RedisFuture<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 awayRedisFuture<String>clusterSaveconfig()Forces a node to save the nodes.conf configuration on disk.RedisFuture<String>clusterSetConfigEpoch(long configEpoch)This command sets a specific config epoch in a fresh node.RedisFuture<String>clusterSetSlotImporting(int slot, String nodeId)Flag a slot as IMPORTING (incoming) from the node specified innodeId.RedisFuture<String>clusterSetSlotMigrating(int slot, String nodeId)Flag a slot as MIGRATING (outgoing) towards the node specified innodeId.RedisFuture<String>clusterSetSlotNode(int slot, String nodeId)Assign a slot to a node.RedisFuture<String>clusterSetSlotStable(int slot)Clears migrating / importing state from the slot.RedisFuture<List<String>>clusterSlaves(String nodeId)List replicas for a certain node identified by itsnodeId.RedisFuture<List<Object>>clusterSlots()Get array of cluster slots to node mappings.RedisFuture<List<Object>>command()Returns an array reply of details about all Redis commands.RedisFuture<Long>commandCount()Get total number of Redis commands.RedisFuture<List<Object>>commandInfo(CommandType... commands)Returns an array reply of details about the requested commands.RedisFuture<List<Object>>commandInfo(String... commands)Returns an array reply of details about the requested commands.RedisFuture<Map<String,String>>configGet(String parameter)Get the value of a configuration parameter.RedisFuture<String>configResetstat()Reset the stats returned by INFO.RedisFuture<String>configRewrite()Rewrite the configuration file with the in memory configuration.RedisFuture<String>configSet(String parameter, String value)Set a configuration parameter to the given value.RedisFuture<Boolean>copy(K source, K destination)Copy the value stored at the source key to the destination key.RedisFuture<Boolean>copy(K source, K destination, CopyArgs copyArgs)Copy the value stored at the source key to the destination key.RedisFuture<Long>dbsize()Return the number of keys in the selected database.RedisFuture<String>debugCrashAndRecover(Long delay)Crash and recover.RedisFuture<String>debugHtstats(int db)Get debugging information about the internal hash-table state.RedisFuture<String>debugObject(K key)Get debugging information about a key.voiddebugOom()Make the server crash: Out of memory.RedisFuture<String>debugReload()Save RDB, clear the database and reload RDB.RedisFuture<String>debugRestart(Long delay)Restart the server gracefully.RedisFuture<String>debugSdslen(K key)Get debugging information about the internal SDS length.voiddebugSegfault()Make the server crash: Invalid pointer access.RedisFuture<Long>decr(K key)Decrement the integer value of a key by one.RedisFuture<Long>decrby(K key, long amount)Decrement the integer value of a key by the given number.RedisFuture<Long>del(Iterable<K> keys)RedisFuture<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.RedisFuture<String>discard()Discard all commands issued after MULTI.protected <T> RedisFuture<T>dispatch(CommandType type, CommandOutput<K,V,T> output)protected <T> RedisFuture<T>dispatch(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)<T> RedisFuture<T>dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output)Dispatch a command to the Redis Server.<T> RedisFuture<T>dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)Dispatch a command to the Redis Server.<T> AsyncCommand<K,V,T>dispatch(RedisCommand<K,V,T> cmd)RedisFuture<byte[]>dump(K key)Return a serialized version of the value stored at the specified key.RedisFuture<V>echo(V msg)Echo the given string.<T> RedisFuture<T>eval(byte[] script, ScriptOutputType type, K... keys)Execute a Lua script server side.<T> RedisFuture<T>eval(byte[] script, ScriptOutputType type, K[] keys, V... values)Execute a Lua script server side.<T> RedisFuture<T>eval(String script, ScriptOutputType type, K... keys)Execute a Lua script server side.<T> RedisFuture<T>eval(String script, ScriptOutputType type, K[] keys, V... values)Execute a Lua script server side.<T> RedisFuture<T>evalsha(String digest, ScriptOutputType type, K... keys)Evaluates a script cached on the server side by its SHA1 digest.<T> RedisFuture<T>evalsha(String digest, ScriptOutputType type, K[] keys, V... values)Execute a Lua script server side.RedisFuture<TransactionResult>exec()Execute all commands issued after MULTI.RedisFuture<Long>exists(Iterable<K> keys)RedisFuture<Long>exists(K... keys)Determine how many keys exist.RedisFuture<Boolean>expire(K key, long seconds)Set a key's time to live in seconds.RedisFuture<Boolean>expire(K key, Duration seconds)Set a key's time to live in seconds.RedisFuture<Boolean>expireat(K key, long timestamp)Set the expiration for a key as a UNIX timestamp.RedisFuture<Boolean>expireat(K key, Instant timestamp)Set the expiration for a key as a UNIX timestamp.RedisFuture<Boolean>expireat(K key, Date timestamp)Set the expiration for a key as a UNIX timestamp.RedisFuture<String>flushall()Remove all keys from all databases.RedisFuture<String>flushall(FlushMode flushMode)Remove all keys from all databases using the specifiedFlushMode.RedisFuture<String>flushallAsync()Remove all keys asynchronously from all databases.voidflushCommands()Flush pending commands.RedisFuture<String>flushdb()Remove all keys from the current database.RedisFuture<String>flushdb(FlushMode flushMode)Remove all keys from the current database using the specifiedFlushMode.RedisFuture<String>flushdbAsync()Remove all keys asynchronously from the current database.RedisFuture<Long>geoadd(K key, double longitude, double latitude, V member)Single geo add.RedisFuture<Long>geoadd(K key, double longitude, double latitude, V member, GeoAddArgs args)Single geo add.RedisFuture<Long>geoadd(K key, GeoAddArgs args, GeoValue<V>... values)Multi geo add.RedisFuture<Long>geoadd(K key, GeoAddArgs args, Object... lngLatMember)Multi geo add.RedisFuture<Long>geoadd(K key, GeoValue<V>... values)Multi geo add.RedisFuture<Long>geoadd(K key, Object... lngLatMember)Multi geo add.RedisFuture<Double>geodist(K key, V from, V to, GeoArgs.Unit unit)Retrieve distance between pointsfromandto.RedisFuture<List<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.RedisFuture<List<GeoCoordinates>>geopos(K key, V... members)Get geo coordinates for themembers.RedisFuture<Set<V>>georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)Retrieve members selected by distance with the center oflongitudeandlatitude.RedisFuture<List<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.RedisFuture<Long>georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Perform aRedisGeoAsyncCommands.georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs)query and store the results in a sorted set.protected RedisFuture<Set<V>>georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)protected RedisFuture<List<GeoWithin<V>>>georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)RedisFuture<Set<V>>georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit)Retrieve members selected by distance with the center ofmember.RedisFuture<List<GeoWithin<V>>>georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)Retrieve members selected by distance with the center ofmember.RedisFuture<Long>georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Perform aRedisGeoAsyncCommands.georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs)query and store the results in a sorted set.protected RedisFuture<Set<V>>georadiusbymember_ro(K key, V member, double distance, GeoArgs.Unit unit)protected RedisFuture<List<GeoWithin<V>>>georadiusbymember_ro(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)RedisFuture<Set<V>>geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate)Retrieve members selected by distance with the center ofreferencethe searchpredicate.RedisFuture<List<GeoWithin<V>>>geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs)Retrieve members selected by distance with the center ofreferencethe searchpredicate.RedisFuture<Long>geosearchstore(K destination, K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs, boolean storeDist)Perform aRedisGeoAsyncCommands.geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs)query and store the results in a sorted set.RedisFuture<V>get(K key)Get the value of a key.RedisFuture<Long>getbit(K key, long offset)Returns the bit value at offset in the string value stored at key.StatefulConnection<K,V>getConnection()RedisFuture<V>getdel(K key)Get the value of key and delete the key.RedisFuture<V>getex(K key, GetExArgs args)Get the value of key and optionally set its expiration.RedisFuture<V>getrange(K key, long start, long end)Get a substring of the string stored at a key.RedisFuture<V>getset(K key, V value)Set the string value of a key and return its old value.RedisFuture<Long>hdel(K key, K... fields)Delete one or more hash fields.RedisFuture<Boolean>hexists(K key, K field)Determine if a hash field exists.RedisFuture<V>hget(K key, K field)Get the value of a hash field.RedisFuture<Long>hgetall(KeyValueStreamingChannel<K,V> channel, K key)Stream over all the fields and values in a hash.RedisFuture<Map<K,V>>hgetall(K key)Get all the fields and values in a hash.RedisFuture<Long>hincrby(K key, K field, long amount)Increment the integer value of a hash field by the given number.RedisFuture<Double>hincrbyfloat(K key, K field, double amount)Increment the float value of a hash field by the given amount.RedisFuture<Long>hkeys(KeyStreamingChannel<K> channel, K key)Stream over all the fields in a hash.RedisFuture<List<K>>hkeys(K key)Get all the fields in a hash.RedisFuture<Long>hlen(K key)Get the number of fields in a hash.RedisFuture<Long>hmget(KeyValueStreamingChannel<K,V> channel, K key, K... fields)Stream over the values of all the given hash fields.RedisFuture<List<KeyValue<K,V>>>hmget(K key, K... fields)Get the values of all the given hash fields.RedisFuture<String>hmset(K key, Map<K,V> map)Set multiple hash fields to multiple values.RedisFuture<K>hrandfield(K key)Return a random field from the hash stored atkey.RedisFuture<List<K>>hrandfield(K key, long count)Returncountrandom fields from the hash stored atkey.RedisFuture<KeyValue<K,V>>hrandfieldWithvalues(K key)Return a random field along its value from the hash stored atkey.RedisFuture<List<KeyValue<K,V>>>hrandfieldWithvalues(K key, long count)Returncountrandom fields along their value from the hash stored atkey.RedisFuture<StreamScanCursor>hscan(KeyValueStreamingChannel<K,V> channel, K key)Incrementally iterate hash fields and associated values.RedisFuture<StreamScanCursor>hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanArgs scanArgs)Incrementally iterate hash fields and associated values.RedisFuture<StreamScanCursor>hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor)Incrementally iterate hash fields and associated values.RedisFuture<StreamScanCursor>hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate hash fields and associated values.RedisFuture<MapScanCursor<K,V>>hscan(K key)Incrementally iterate hash fields and associated values.RedisFuture<MapScanCursor<K,V>>hscan(K key, ScanArgs scanArgs)Incrementally iterate hash fields and associated values.RedisFuture<MapScanCursor<K,V>>hscan(K key, ScanCursor scanCursor)Incrementally iterate hash fields and associated values.RedisFuture<MapScanCursor<K,V>>hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate hash fields and associated values.RedisFuture<Long>hset(K key, Map<K,V> map)Set multiple hash fields to multiple values.RedisFuture<Boolean>hset(K key, K field, V value)Set the string value of a hash field.RedisFuture<Boolean>hsetnx(K key, K field, V value)Set the value of a hash field, only if the field does not exist.RedisFuture<Long>hstrlen(K key, K field)Get the string length of the field value in a hash.RedisFuture<Long>hvals(ValueStreamingChannel<V> channel, K key)Stream over all the values in a hash.RedisFuture<List<V>>hvals(K key)Get all the values in a hash.RedisFuture<Long>incr(K key)Increment the integer value of a key by one.RedisFuture<Long>incrby(K key, long amount)Increment the integer value of a key by the given amount.RedisFuture<Double>incrbyfloat(K key, double amount)Increment the float value of a key by the given amount.RedisFuture<String>info()Get information and statistics about the server.RedisFuture<String>info(String section)Get information and statistics about the server.booleanisOpen()RedisFuture<Long>keys(KeyStreamingChannel<K> channel, K pattern)Find all keys matching the given pattern.RedisFuture<List<K>>keys(K pattern)Find all keys matching the given pattern.RedisFuture<Date>lastsave()Get the UNIX time stamp of the last successful save to disk.RedisFuture<V>lindex(K key, long index)Get an element from a list by its index.RedisFuture<Long>linsert(K key, boolean before, V pivot, V value)Insert an element before or after another element in a list.RedisFuture<Long>llen(K key)Get the length of a list.RedisFuture<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.RedisFuture<V>lpop(K key)Remove and get the first element in a list.RedisFuture<List<V>>lpop(K key, long count)Remove and get the firstcountelements in a list.RedisFuture<Long>lpos(K key, V value)Return the index of matching elements inside a Redis list.RedisFuture<List<Long>>lpos(K key, V value, int count)Return the index of matching elements inside a Redis list using theCOUNToption.RedisFuture<List<Long>>lpos(K key, V value, int count, LPosArgs args)Return the index of matching elements inside a Redis list using theCOUNToption.RedisFuture<Long>lpos(K key, V value, LPosArgs args)Return the index of matching elements inside a Redis list.RedisFuture<Long>lpush(K key, V... values)Prepend one or multiple values to a list.RedisFuture<Long>lpushx(K key, V... values)Prepend values to a list, only if the list exists.RedisFuture<Long>lrange(ValueStreamingChannel<V> channel, K key, long start, long stop)Get a range of elements from a list.RedisFuture<List<V>>lrange(K key, long start, long stop)Get a range of elements from a list.RedisFuture<Long>lrem(K key, long count, V value)Remove elements from a list.RedisFuture<String>lset(K key, long index, V value)Set the value of an element in a list by its index.RedisFuture<String>ltrim(K key, long start, long stop)Trim a list to the specified range.RedisFuture<Long>memoryUsage(K key)Reports the number of bytes that a key and its value require to be stored in RAM.RedisFuture<Long>mget(KeyValueStreamingChannel<K,V> channel, Iterable<K> keys)RedisFuture<Long>mget(KeyValueStreamingChannel<K,V> channel, K... keys)Stream over the values of all the given keys.RedisFuture<List<KeyValue<K,V>>>mget(Iterable<K> keys)RedisFuture<List<KeyValue<K,V>>>mget(K... keys)Get the values of all the given keys.RedisFuture<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.RedisFuture<String>migrate(String host, int port, K key, int db, long timeout)Atomically transfer a key from a Redis instance to another one.RedisFuture<Boolean>move(K key, int db)Move a key to another database.RedisFuture<String>mset(Map<K,V> map)Set multiple keys to multiple values.RedisFuture<Boolean>msetnx(Map<K,V> map)Set multiple keys to multiple values, only if none of the keys exist.RedisFuture<String>multi()Mark the start of a transaction block.RedisFuture<String>objectEncoding(K key)Returns the kind of internal representation used in order to store the value associated with thekey.RedisFuture<Long>objectFreq(K key)Returns the logarithmic access frequency counter of the object stored at the specifiedkey.RedisFuture<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).RedisFuture<Long>objectRefcount(K key)Returns the number of references of the value associated with the specified key.RedisFuture<Boolean>persist(K key)Remove the expiration from a key.RedisFuture<Boolean>pexpire(K key, long milliseconds)Set a key's time to live in milliseconds.RedisFuture<Boolean>pexpire(K key, Duration milliseconds)Set a key's time to live in milliseconds.RedisFuture<Boolean>pexpireat(K key, long timestamp)Set the expiration for a key as a UNIX timestamp specified in milliseconds.RedisFuture<Boolean>pexpireat(K key, Instant timestamp)Set the expiration for a key as a UNIX timestamp specified in milliseconds.RedisFuture<Boolean>pexpireat(K key, Date timestamp)Set the expiration for a key as a UNIX timestamp specified in milliseconds.RedisFuture<Long>pfadd(K key, V... values)Adds the specified elements to the specified HyperLogLog.RedisFuture<Long>pfcount(K... keys)Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).RedisFuture<String>pfmerge(K destkey, K... sourcekeys)Merge N different HyperLogLogs into a single one.RedisFuture<String>ping()Ping the server.RedisFuture<String>psetex(K key, long milliseconds, V value)Set the value and expiration in milliseconds of a key.RedisFuture<Long>pttl(K key)Get the time to live for a key in milliseconds.RedisFuture<Long>publish(K channel, V message)Post a message to a channel.RedisFuture<List<K>>pubsubChannels()Lists the currently *active channels*.RedisFuture<List<K>>pubsubChannels(K channel)Lists the currently *active channels*.RedisFuture<Long>pubsubNumpat()Returns the number of subscriptions to patterns.RedisFuture<Map<K,Long>>pubsubNumsub(K... channels)Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.RedisFuture<String>quit()Instructs Redis to disconnect the connection.RedisFuture<K>randomkey()Return a random key from the keyspace.RedisFuture<String>readOnly()Switch connection to Read-Only mode when connecting to a cluster.RedisFuture<String>readWrite()Switch connection to Read-Write mode (default) when connecting to a cluster.RedisFuture<String>rename(K key, K newKey)Rename a key.RedisFuture<Boolean>renamenx(K key, K newKey)Rename a key, only if the new key does not exist.voidreset()Reset the command state.RedisFuture<String>restore(K key, byte[] value, RestoreArgs args)Create a key using the provided serialized value, previously obtained using DUMP.RedisFuture<String>restore(K key, long ttl, byte[] value)Create a key using the provided serialized value, previously obtained using DUMP.RedisFuture<List<Object>>role()Return the role of the instance in the context of replication.RedisFuture<V>rpop(K key)Remove and get the last element in a list.RedisFuture<List<V>>rpop(K key, long count)Remove and get the lastcountelements in a list.RedisFuture<V>rpoplpush(K source, K destination)Remove the last element in a list, append it to another list and return it.RedisFuture<Long>rpush(K key, V... values)Append one or multiple values to a list.RedisFuture<Long>rpushx(K key, V... values)Append values to a list, only if the list exists.RedisFuture<Long>sadd(K key, V... members)Add one or more members to a set.RedisFuture<String>save()Synchronously save the dataset to disk.RedisFuture<KeyScanCursor<K>>scan()Incrementally iterate the keys space.RedisFuture<StreamScanCursor>scan(KeyStreamingChannel<K> channel)Incrementally iterate the keys space.RedisFuture<StreamScanCursor>scan(KeyStreamingChannel<K> channel, ScanArgs scanArgs)Incrementally iterate the keys space.RedisFuture<StreamScanCursor>scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor)Incrementally iterate the keys space.RedisFuture<StreamScanCursor>scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate the keys space.RedisFuture<KeyScanCursor<K>>scan(ScanArgs scanArgs)Incrementally iterate the keys space.RedisFuture<KeyScanCursor<K>>scan(ScanCursor scanCursor)Incrementally iterate the keys space.RedisFuture<KeyScanCursor<K>>scan(ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate the keys space.RedisFuture<Long>scard(K key)Get the number of members in a set.RedisFuture<List<Boolean>>scriptExists(String... digests)Check existence of scripts in the script cache.RedisFuture<String>scriptFlush()Remove all the scripts from the script cache.RedisFuture<String>scriptFlush(FlushMode flushMode)Remove all the scripts from the script cache using the specifiedFlushMode.RedisFuture<String>scriptKill()Kill the script currently in execution.RedisFuture<String>scriptLoad(byte[] script)Load the specified Lua script into the script cache.RedisFuture<String>scriptLoad(String script)Load the specified Lua script into the script cache.RedisFuture<Long>sdiff(ValueStreamingChannel<V> channel, K... keys)Subtract multiple sets.RedisFuture<Set<V>>sdiff(K... keys)Subtract multiple sets.RedisFuture<Long>sdiffstore(K destination, K... keys)Subtract multiple sets and store the resulting set in a key.RedisFuture<String>select(int db)RedisFuture<String>set(K key, V value)Set the string value of a key.RedisFuture<String>set(K key, V value, SetArgs setArgs)Set the string value of a key.voidsetAutoFlushCommands(boolean autoFlush)Disable or enable auto-flush behavior.RedisFuture<Long>setbit(K key, long offset, int value)Sets or clears the bit at offset in the string value stored at key.RedisFuture<String>setex(K key, long seconds, V value)Set the value and expiration of a key.RedisFuture<V>setGet(K key, V value)Set the string value of a key and return its old value.RedisFuture<V>setGet(K key, V value, SetArgs setArgs)Set the string value of a key and return its old value.RedisFuture<Boolean>setnx(K key, V value)Set the value of a key, only if the key does not exist.RedisFuture<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.voidshutdown(boolean save)Synchronously save the dataset to disk and then shut down the server.RedisFuture<Long>sinter(ValueStreamingChannel<V> channel, K... keys)Intersect multiple sets.RedisFuture<Set<V>>sinter(K... keys)Intersect multiple sets.RedisFuture<Long>sinterstore(K destination, K... keys)Intersect multiple sets and store the resulting set in a key.RedisFuture<Boolean>sismember(K key, V member)Determine if a given value is a member of a set.RedisFuture<String>slaveof(String host, int port)Make the server a replica of another instance, or promote it as master.RedisFuture<String>slaveofNoOne()Promote server as master.RedisFuture<List<Object>>slowlogGet()Read the slow log.RedisFuture<List<Object>>slowlogGet(int count)Read the slow log.RedisFuture<Long>slowlogLen()Obtaining the current length of the slow log.RedisFuture<String>slowlogReset()Resetting the slow log.RedisFuture<Long>smembers(ValueStreamingChannel<V> channel, K key)Get all the members in a set.RedisFuture<Set<V>>smembers(K key)Get all the members in a set.RedisFuture<List<Boolean>>smismember(K key, V... members)Returns whether each member is a member of the set stored at key.RedisFuture<Boolean>smove(K source, K destination, V member)Move a member from one set to another.RedisFuture<Long>sort(ValueStreamingChannel<V> channel, K key)Sort the elements in a list, set or sorted set.RedisFuture<Long>sort(ValueStreamingChannel<V> channel, K key, SortArgs sortArgs)Sort the elements in a list, set or sorted set.RedisFuture<List<V>>sort(K key)Sort the elements in a list, set or sorted set.RedisFuture<List<V>>sort(K key, SortArgs sortArgs)Sort the elements in a list, set or sorted set.RedisFuture<Long>sortStore(K key, SortArgs sortArgs, K destination)Sort the elements in a list, set or sorted set.RedisFuture<V>spop(K key)Remove and return a random member from a set.RedisFuture<Set<V>>spop(K key, long count)Remove and return one or multiple random members from a set.RedisFuture<Long>srandmember(ValueStreamingChannel<V> channel, K key, long count)Get one or multiple random members from a set.RedisFuture<V>srandmember(K key)Get one random member from a set.RedisFuture<List<V>>srandmember(K key, long count)Get one or multiple random members from a set.RedisFuture<Long>srem(K key, V... members)Remove one or more members from a set.RedisFuture<StreamScanCursor>sscan(ValueStreamingChannel<V> channel, K key)Incrementally iterate Set elements.RedisFuture<StreamScanCursor>sscan(ValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)Incrementally iterate Set elements.RedisFuture<StreamScanCursor>sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)Incrementally iterate Set elements.RedisFuture<StreamScanCursor>sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate Set elements.RedisFuture<ValueScanCursor<V>>sscan(K key)Incrementally iterate Set elements.RedisFuture<ValueScanCursor<V>>sscan(K key, ScanArgs scanArgs)Incrementally iterate Set elements.RedisFuture<ValueScanCursor<V>>sscan(K key, ScanCursor scanCursor)Incrementally iterate Set elements.RedisFuture<ValueScanCursor<V>>sscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate Set elements.RedisFuture<StringMatchResult>stralgoLcs(StrAlgoArgs args)The STRALGO command implements complex algorithms that operate on strings.RedisFuture<Long>strlen(K key)Get the length of the value stored in a key.RedisFuture<Long>sunion(ValueStreamingChannel<V> channel, K... keys)Add multiple sets.RedisFuture<Set<V>>sunion(K... keys)Add multiple sets.RedisFuture<Long>sunionstore(K destination, K... keys)Add multiple sets and store the resulting set in a key.RedisFuture<String>swapdb(int db1, int db2)RedisFuture<List<V>>time()Return the current server time.RedisFuture<Long>touch(Iterable<K> keys)RedisFuture<Long>touch(K... keys)Touch one or more keys.RedisFuture<Long>ttl(K key)Get the time to live for a key.RedisFuture<String>type(K key)Determine the type stored at key.RedisFuture<Long>unlink(Iterable<K> keys)RedisFuture<Long>unlink(K... keys)Unlink one or more keys (non blocking DEL).RedisFuture<String>unwatch()Forget about all watched keys.RedisFuture<Long>waitForReplication(int replicas, long timeout)Wait for replication.RedisFuture<String>watch(K... keys)Watch the given keys to determine execution of the MULTI/EXEC block.RedisFuture<Long>xack(K key, K group, String... messageIds)Acknowledge one or more messages as processed.RedisFuture<String>xadd(K key, XAddArgs args, Object... keysAndValues)Append a message to the streamkey.RedisFuture<String>xadd(K key, XAddArgs args, Map<K,V> body)Append a message to the streamkey.RedisFuture<String>xadd(K key, Object... keysAndValues)Append a message to the streamkey.RedisFuture<String>xadd(K key, Map<K,V> body)Append a message to the streamkey.RedisFuture<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<Long>xdel(K key, String... messageIds)Removes the specified entries from the stream.RedisFuture<String>xgroupCreate(XReadArgs.StreamOffset<K> offset, K group)Create a consumer group.RedisFuture<String>xgroupCreate(XReadArgs.StreamOffset<K> offset, K group, XGroupCreateArgs args)Create a consumer group.RedisFuture<Boolean>xgroupCreateconsumer(K key, Consumer<K> consumer)Create a consumer from a consumer group.RedisFuture<Long>xgroupDelconsumer(K key, Consumer<K> consumer)Delete a consumer from a consumer group.RedisFuture<Boolean>xgroupDestroy(K key, K group)Destroy a consumer group.RedisFuture<String>xgroupSetid(XReadArgs.StreamOffset<K> offset, K group)Set the currentgroupid.RedisFuture<List<Object>>xinfoConsumers(K key, K group)Retrieve information about consumer groups of groupgroupand stream atkey.RedisFuture<List<Object>>xinfoGroups(K key)Retrieve information about the stream consumer groups atkey.RedisFuture<List<Object>>xinfoStream(K key)Retrieve information about the stream atkey.RedisFuture<Long>xlen(K key)Get the length of a steam.RedisFuture<List<PendingMessage>>xpending(K key, Consumer<K> consumer, Range<String> range, Limit limit)Read pending messages from a stream within a specificRange.RedisFuture<List<PendingMessage>>xpending(K key, XPendingArgs<K> args)Read pending messages from a stream within a specificXPendingArgs.RedisFuture<PendingMessages>xpending(K key, K group)Read pending messages from a stream for agroup.RedisFuture<List<PendingMessage>>xpending(K key, K group, Range<String> range, Limit limit)Read pending messages from a stream within a specificRange.RedisFuture<List<StreamMessage<K,V>>>xrange(K key, Range<String> range)Read messages from a stream within a specificRange.RedisFuture<List<StreamMessage<K,V>>>xrange(K key, Range<String> range, Limit limit)RedisFuture<List<StreamMessage<K,V>>>xread(XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets.RedisFuture<List<StreamMessage<K,V>>>xread(XReadArgs args, XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets.RedisFuture<List<StreamMessage<K,V>>>xreadgroup(Consumer<K> consumer, XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets using a consumer group.RedisFuture<List<StreamMessage<K,V>>>xreadgroup(Consumer<K> consumer, XReadArgs args, XReadArgs.StreamOffset<K>... streams)Read messages from one or moreXReadArgs.StreamOffsets using a consumer group.RedisFuture<List<StreamMessage<K,V>>>xrevrange(K key, Range<String> range)Read messages from a stream within a specificRangein reverse order.RedisFuture<List<StreamMessage<K,V>>>xrevrange(K key, Range<String> range, Limit limit)RedisFuture<Long>xtrim(K key, boolean approximateTrimming, long count)Trims the stream tocountelements.RedisFuture<Long>xtrim(K key, long count)Trims the stream tocountelements.RedisFuture<Long>xtrim(K key, XTrimArgs args)Trims the stream within a specificXTrimArgs.RedisFuture<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.RedisFuture<Long>zadd(K key, ScoredValue<V>... scoredValues)Add one or more members to a sorted set, or update its score if it already exists.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<Long>zadd(K key, Object... scoresAndValues)Add one or more members to a sorted set, or update its score if it already exists.RedisFuture<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.RedisFuture<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.RedisFuture<Long>zcard(K key)Get the number of members in a sorted set.RedisFuture<Long>zcount(K key, double min, double max)Count the members in a sorted set with scores within the given values.RedisFuture<Long>zcount(K key, Range<? extends Number> range)Count the members in a sorted set with scores within the givenRange.RedisFuture<Long>zcount(K key, String min, String max)Count the members in a sorted set with scores within the given values.RedisFuture<List<V>>zdiff(K... keys)Computes the difference between the first and all successive input sorted sets.RedisFuture<Long>zdiffstore(K destKey, K... srcKeys)Computes the difference between the first and all successive input sorted sets and stores the result in destination.RedisFuture<List<ScoredValue<V>>>zdiffWithScores(K... keys)Computes the difference between the first and all successive input sorted sets.RedisFuture<Double>zincrby(K key, double amount, V member)Increment the score of a member in a sorted set.RedisFuture<List<V>>zinter(ZAggregateArgs aggregateArgs, K... keys)Intersect multiple sorted sets and returns the resulting sorted.RedisFuture<List<V>>zinter(K... keys)Intersect multiple sorted sets and returns the resulting sorted.RedisFuture<Long>zinterstore(K destination, ZStoreArgs zStoreArgs, K... keys)Intersect multiple sorted sets and store the resulting sorted set in a new key.RedisFuture<Long>zinterstore(K destination, K... keys)Intersect multiple sorted sets and store the resulting sorted set in a new key.RedisFuture<List<ScoredValue<V>>>zinterWithScores(ZAggregateArgs aggregateArgs, K... keys)Intersect multiple sorted sets and returns the resulting sorted.RedisFuture<List<ScoredValue<V>>>zinterWithScores(K... keys)Intersect multiple sorted sets and returns the resulting sorted.RedisFuture<Long>zlexcount(K key, Range<? extends V> range)Count the number of members in a sorted set between a given lexicographical range.RedisFuture<Long>zlexcount(K key, String min, String max)Count the number of members in a sorted set between a given lexicographical range.RedisFuture<List<Double>>zmscore(K key, V... members)Returns the scores associated with the specified members in the sorted set stored at key.RedisFuture<ScoredValue<V>>zpopmax(K key)Removes and returns up to count members with the highest scores in the sorted set stored at key.RedisFuture<List<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.RedisFuture<ScoredValue<V>>zpopmin(K key)Removes and returns up to count members with the lowest scores in the sorted set stored at key.RedisFuture<List<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.RedisFuture<V>zrandmember(K key)Return a random member from the sorted set stored atkey.RedisFuture<List<V>>zrandmember(K key, long count)Returncountrandom members from the sorted set stored atkey.RedisFuture<ScoredValue<V>>zrandmemberWithScores(K key)Return a random member along its value from the sorted set stored atkey.RedisFuture<List<ScoredValue<V>>>zrandmemberWithScores(K key, long count)Returncountrandom members along their value from the sorted set stored atkey.RedisFuture<Long>zrange(ValueStreamingChannel<V> channel, K key, long start, long stop)Return a range of members in a sorted set, by index.RedisFuture<List<V>>zrange(K key, long start, long stop)Return a range of members in a sorted set, by index.RedisFuture<List<V>>zrangebylex(K key, Range<? extends V> range)Return a range of members in a sorted set, by lexicographical range.RedisFuture<List<V>>zrangebylex(K key, Range<? extends V> range, Limit limit)Return a range of members in a sorted set, by lexicographical range.RedisFuture<List<V>>zrangebylex(K key, String min, String max)Return a range of members in a sorted set, by lexicographical range.RedisFuture<List<V>>zrangebylex(K key, String min, String max, long offset, long count)Return a range of members in a sorted set, by lexicographical range.RedisFuture<Long>zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max)Stream over a range of members in a sorted set, by score.RedisFuture<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.RedisFuture<Long>zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Stream over a range of members in a sorted set, by score.RedisFuture<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.RedisFuture<Long>zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max)Stream over a range of members in a sorted set, by score.RedisFuture<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.RedisFuture<List<V>>zrangebyscore(K key, double min, double max)Return a range of members in a sorted set, by score.RedisFuture<List<V>>zrangebyscore(K key, double min, double max, long offset, long count)Return a range of members in a sorted set, by score.RedisFuture<List<V>>zrangebyscore(K key, Range<? extends Number> range)Return a range of members in a sorted set, by score.RedisFuture<List<V>>zrangebyscore(K key, Range<? extends Number> range, Limit limit)Return a range of members in a sorted set, by score.RedisFuture<List<V>>zrangebyscore(K key, String min, String max)Return a range of members in a sorted set, by score.RedisFuture<List<V>>zrangebyscore(K key, String min, String max, long offset, long count)Return a range of members in a sorted set, by score.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<List<ScoredValue<V>>>zrangebyscoreWithScores(K key, double min, double max)Return a range of members with score in a sorted set, by score.RedisFuture<List<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.RedisFuture<List<ScoredValue<V>>>zrangebyscoreWithScores(K key, Range<? extends Number> range)Return a range of members with score in a sorted set, by score.RedisFuture<List<ScoredValue<V>>>zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)Return a range of members with score in a sorted set, by score.RedisFuture<List<ScoredValue<V>>>zrangebyscoreWithScores(K key, String min, String max)Return a range of members with score in a sorted set, by score.RedisFuture<List<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<List<ScoredValue<V>>>zrangeWithScores(K key, long start, long stop)Return a range of members with scores in a sorted set, by index.RedisFuture<Long>zrank(K key, V member)Determine the index of a member in a sorted set.RedisFuture<Long>zrem(K key, V... members)Remove one or more members from a sorted set.RedisFuture<Long>zremrangebylex(K key, Range<? extends V> range)Remove all members in a sorted set between the given lexicographical range.RedisFuture<Long>zremrangebylex(K key, String min, String max)Remove all members in a sorted set between the given lexicographical range.RedisFuture<Long>zremrangebyrank(K key, long start, long stop)Remove all members in a sorted set within the given indexes.RedisFuture<Long>zremrangebyscore(K key, double min, double max)Remove all members in a sorted set within the given scores.RedisFuture<Long>zremrangebyscore(K key, Range<? extends Number> range)Remove all members in a sorted set within the given scores.RedisFuture<Long>zremrangebyscore(K key, String min, String max)Remove all members in a sorted set within the given scores.RedisFuture<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<List<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.RedisFuture<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.RedisFuture<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.1RedisFuture<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.RedisFuture<List<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.RedisFuture<Long>zrevrank(K key, V member)Determine the index of a member in a sorted set, with scores ordered from high to low.RedisFuture<StreamScanCursor>zscan(ScoredValueStreamingChannel<V> channel, K key)Incrementally iterate sorted sets elements and associated scores.RedisFuture<StreamScanCursor>zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)Incrementally iterate sorted sets elements and associated scores.RedisFuture<StreamScanCursor>zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)Incrementally iterate sorted sets elements and associated scores.RedisFuture<StreamScanCursor>zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate sorted sets elements and associated scores.RedisFuture<ScoredValueScanCursor<V>>zscan(K key)Incrementally iterate sorted sets elements and associated scores.RedisFuture<ScoredValueScanCursor<V>>zscan(K key, ScanArgs scanArgs)Incrementally iterate sorted sets elements and associated scores.RedisFuture<ScoredValueScanCursor<V>>zscan(K key, ScanCursor scanCursor)Incrementally iterate sorted sets elements and associated scores.RedisFuture<ScoredValueScanCursor<V>>zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)Incrementally iterate sorted sets elements and associated scores.RedisFuture<Double>zscore(K key, V member)Get the score associated with the given member in a sorted set.RedisFuture<List<V>>zunion(ZAggregateArgs aggregateArgs, K... keys)Add multiple sorted sets and returns the resulting sorted set.RedisFuture<List<V>>zunion(K... keys)Add multiple sorted sets and returns the resulting sorted set.RedisFuture<Long>zunionstore(K destination, ZStoreArgs zStoreArgs, K... keys)Add multiple sorted sets and store the resulting sorted set in a new key.RedisFuture<Long>zunionstore(K destination, K... keys)Add multiple sorted sets and store the resulting sorted set in a new key.RedisFuture<List<ScoredValue<V>>>zunionWithScores(ZAggregateArgs aggregateArgs, K... keys)Add multiple sorted sets and returns the resulting sorted set.RedisFuture<List<ScoredValue<V>>>zunionWithScores(K... keys)Add multiple sorted sets and returns the resulting sorted set.
-
Constructor Details
-
AbstractRedisAsyncCommands
Initialize a new instance.- Parameters:
connection- the connection to operate oncodec- the codec for command encoding
-
-
Method Details
-
aclCat
Description copied from interface:RedisAclAsyncCommandsThe command shows the available ACL categories if called without arguments.- Specified by:
aclCatin interfaceRedisAclAsyncCommands<K,V>- Returns:
- List<AclCategory> a list of ACL categories or
-
aclCat
Description copied from interface:RedisAclAsyncCommandsThe command shows all the Redis commands in the specified category.- Specified by:
aclCatin interfaceRedisAclAsyncCommands<K,V>- Parameters:
category- the specified category- Returns:
- List<CommandType> a list of commands inside a given category
-
aclDeluser
Description copied from interface:RedisAclAsyncCommandsDelete all the specified ACL users and terminate all the connections that are authenticated with such users.- Specified by:
aclDeluserin interfaceRedisAclAsyncCommands<K,V>- Parameters:
usernames- the specified usernames- Returns:
- Long The number of users that were deleted
-
aclGenpass
Description copied from interface:RedisAclAsyncCommandsThe command generates a password.- Specified by:
aclGenpassin interfaceRedisAclAsyncCommands<K,V>- Returns:
- String bulk-string-reply 64 bytes string password representing 256 bits of pseudorandom data.
-
aclGenpass
Description copied from interface:RedisAclAsyncCommandsThe command generates a password.- Specified by:
aclGenpassin interfaceRedisAclAsyncCommands<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:RedisAclAsyncCommandsThe command returns all the rules defined for an existing ACL user.- Specified by:
aclGetuserin interfaceRedisAclAsyncCommands<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:RedisAclAsyncCommandsThe command shows the currently active ACL rules in the Redis server.- Specified by:
aclListin interfaceRedisAclAsyncCommands<K,V>- Returns:
- List<String> a list of strings.
-
aclLoad
Description copied from interface:RedisAclAsyncCommandsWhen 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 interfaceRedisAclAsyncCommands<K,V>- Returns:
- String simple-string-reply OK or error message.
-
aclLog
Description copied from interface:RedisAclAsyncCommandsThe command shows a list of recent ACL security events.- Specified by:
aclLogin interfaceRedisAclAsyncCommands<K,V>- Returns:
- List<Map<K,Object>> list of security events.
-
aclLog
Description copied from interface:RedisAclAsyncCommandsThe command shows a list of recent ACL security events.- Specified by:
aclLogin interfaceRedisAclAsyncCommands<K,V>- Parameters:
count- max count of events- Returns:
- List<Map<K, Object>> list of security events.
-
aclLogReset
Description copied from interface:RedisAclAsyncCommandsThe command clears ACL security events.- Specified by:
aclLogResetin interfaceRedisAclAsyncCommands<K,V>- Returns:
- String simple-string-reply OK if the security log was cleared.
-
aclSave
Description copied from interface:RedisAclAsyncCommandsWhen 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 interfaceRedisAclAsyncCommands<K,V>- Returns:
- String simple-string-reply OK or error message.
-
aclSetuser
Description copied from interface:RedisAclAsyncCommandsCreate an ACL user with the specified rules or modify the rules of an existing user.- Specified by:
aclSetuserin interfaceRedisAclAsyncCommands<K,V>- Parameters:
username- the specified usernameargs- rules- Returns:
- String simple-string-reply OK or error message.
-
aclUsers
Description copied from interface:RedisAclAsyncCommandsThe command shows a list of all the usernames of the currently configured users in the Redis ACL system.- Specified by:
aclUsersin interfaceRedisAclAsyncCommands<K,V>- Returns:
- List<K> a list of usernames.
-
aclWhoami
Description copied from interface:RedisAclAsyncCommandsThe command shows a list of all the usernames of the currently configured users in the Redis ACL system.- Specified by:
aclWhoamiin interfaceRedisAclAsyncCommands<K,V>- Returns:
- K bulk-string-reply the username of the current connection.
-
append
Description copied from interface:RedisStringAsyncCommandsAppend a value to a key.- Specified by:
appendin interfaceRedisStringAsyncCommands<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:RedisClusterAsyncCommandsThe 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 interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String simple-string-reply
-
auth
Description copied from interface:RedisClusterAsyncCommandsAuthenticate to the server.- Specified by:
authin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
password- the password- Returns:
- String simple-string-reply
-
auth
-
auth
Description copied from interface:RedisClusterAsyncCommandsAuthenticate to the server with username and password. Requires Redis 6 or newer.- Specified by:
authin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
username- the usernamepassword- the password- Returns:
- String simple-string-reply
-
auth
-
bgrewriteaof
Description copied from interface:RedisServerAsyncCommandsAsynchronously rewrite the append-only file.- Specified by:
bgrewriteaofin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
bgsave
Description copied from interface:RedisServerAsyncCommandsAsynchronously save the dataset to disk.- Specified by:
bgsavein interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
bitcount
Description copied from interface:RedisStringAsyncCommandsCount set bits in a string.- Specified by:
bitcountin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply The number of bits set to 1.
-
bitcount
Description copied from interface:RedisStringAsyncCommandsCount set bits in a string.- Specified by:
bitcountin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsExecuteBITFIELDwith its subcommands.- Specified by:
bitfieldin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.bitFieldArgs- the args containing subcommands, must not benull.- Returns:
- Long bulk-reply the results from the bitfield commands.
-
bitopAnd
Description copied from interface:RedisStringAsyncCommandsPerform bitwise AND between strings.- Specified by:
bitopAndin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsPerform bitwise NOT between strings.- Specified by:
bitopNotin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsPerform bitwise OR between strings.- Specified by:
bitopOrin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsPerform bitwise XOR between strings.- Specified by:
bitopXorin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsFind first bit set or clear in a string.- Specified by:
bitposin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsFind first bit set or clear in a string.- Specified by:
bitposin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsFind first bit set or clear in a string.- Specified by:
bitposin interfaceRedisStringAsyncCommands<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:RedisListAsyncCommandsAtomically 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 interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsRemove and get the first element in a list, or block until one is available.- Specified by:
blpopin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsRemove and get the last element in a list, or block until one is available.- Specified by:
brpopin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsPop a value from a list, push it to another list and return it; or block until one is available.- Specified by:
brpoplpushin interfaceRedisListAsyncCommands<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:RedisServerAsyncCommandsControl tracking of keys in the context of server-assisted client cache invalidation.- Specified by:
clientCachingin interfaceRedisServerAsyncCommands<K,V>- Parameters:
enabled-trueto enable key tracking.- Returns:
- String simple-string-reply
OK.
-
clientGetname
Description copied from interface:RedisServerAsyncCommandsGet the current connection name.- Specified by:
clientGetnamein interfaceRedisServerAsyncCommands<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:RedisServerAsyncCommandsReturns the client ID we are redirecting our tracking notifications to.- Specified by:
clientGetredirin interfaceRedisServerAsyncCommands<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:RedisServerAsyncCommandsKill the connection of a client identified by ip:port.- Specified by:
clientKillin interfaceRedisServerAsyncCommands<K,V>- Parameters:
addr- ip:port.- Returns:
- String simple-string-reply
OKif the connection exists and has been closed.
-
clientKill
Description copied from interface:RedisServerAsyncCommandsKill connections of clients which are filtered bykillArgs.- Specified by:
clientKillin interfaceRedisServerAsyncCommands<K,V>- Parameters:
killArgs- args for the kill operation.- Returns:
- Long integer-reply number of killed connections.
-
clientList
Description copied from interface:RedisServerAsyncCommandsGet the list of client connections.- Specified by:
clientListin interfaceRedisServerAsyncCommands<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:RedisServerAsyncCommandsGet the id of the current connection.- Specified by:
clientIdin interfaceRedisServerAsyncCommands<K,V>- Returns:
- Long The command just returns the ID of the current connection.
-
clientPause
Description copied from interface:RedisServerAsyncCommandsStop processing commands from clients for some time.- Specified by:
clientPausein interfaceRedisServerAsyncCommands<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:RedisServerAsyncCommandsSet the current connection name.- Specified by:
clientSetnamein interfaceRedisServerAsyncCommands<K,V>- Parameters:
name- the client name.- Returns:
- simple-string-reply
OKif the connection name was successfully set.
-
clientTracking
Description copied from interface:RedisServerAsyncCommandsEnables 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 interfaceRedisServerAsyncCommands<K,V>- Parameters:
args- for the CLIENT TRACKING operation.- Returns:
- String simple-string-reply
OK.
-
clientUnblock
Description copied from interface:RedisServerAsyncCommandsUnblock the specified blocked client.- Specified by:
clientUnblockin interfaceRedisServerAsyncCommands<K,V>- Parameters:
id- the client id.type- unblock type.- Returns:
- Long integer-reply number of unblocked connections.
-
clusterAddSlots
Description copied from interface:RedisClusterAsyncCommandsAdds slots to the cluster node. The current node will become the upstream for the specified slots.- Specified by:
clusterAddSlotsin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
slots- one or more slots from 0 to 16384- Returns:
- String simple-string-reply
-
clusterBumpepoch
Description copied from interface:RedisClusterAsyncCommandsGenerate 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 interfaceRedisClusterAsyncCommands<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:RedisClusterAsyncCommandsReturns 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 interfaceRedisClusterAsyncCommands<K,V>- Parameters:
nodeId- the node id- Returns:
- Integer reply: The number of active failure reports for the node.
-
clusterCountKeysInSlot
Description copied from interface:RedisClusterAsyncCommandsReturns the number of keys in the specified Redis Cluster hashslot.- Specified by:
clusterCountKeysInSlotin interfaceRedisClusterAsyncCommands<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:RedisClusterAsyncCommandsRemoves slots from the cluster node.- Specified by:
clusterDelSlotsin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
slots- one or more slots from 0 to 16384- Returns:
- String simple-string-reply
-
clusterFailover
Description copied from interface:RedisClusterAsyncCommandsFailover a cluster node. Turns the currently connected node into a master and the master into its replica.- Specified by:
clusterFailoverin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
force- do not coordinate with master iftrue- Returns:
- String simple-string-reply
-
clusterFlushslots
Description copied from interface:RedisClusterAsyncCommandsDelete all the slots associated with the specified node. The number of deleted slots is returned.- Specified by:
clusterFlushslotsin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String simple-string-reply
-
clusterForget
Description copied from interface:RedisClusterAsyncCommandsDisallow connections and remove the cluster node from the cluster.- Specified by:
clusterForgetin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
nodeId- the node Id- Returns:
- String simple-string-reply
-
clusterGetKeysInSlot
Description copied from interface:RedisClusterAsyncCommandsRetrieve the list of keys within theslot.- Specified by:
clusterGetKeysInSlotin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
slot- the slotcount- maximal number of keys- Returns:
- List<K> array-reply list of keys
-
clusterInfo
Description copied from interface:RedisClusterAsyncCommandsGet information and statistics about the cluster viewed by the current node.- Specified by:
clusterInfoin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String bulk-string-reply as a collection of text lines.
-
clusterKeyslot
Description copied from interface:RedisClusterAsyncCommandsReturns 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 interfaceRedisClusterAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Integer reply: The hash slot number.
-
clusterMeet
Description copied from interface:RedisClusterAsyncCommandsMeet 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 interfaceRedisClusterAsyncCommands<K,V>- Parameters:
ip- IP address of the hostport- port number.- Returns:
- String simple-string-reply
-
clusterMyId
Description copied from interface:RedisClusterAsyncCommandsObtain the nodeId for the currently connected node.- Specified by:
clusterMyIdin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String simple-string-reply
-
clusterNodes
Description copied from interface:RedisClusterAsyncCommandsObtain details about all cluster nodes. Can be parsed usingClusterPartitionParser.parse(java.lang.String)- Specified by:
clusterNodesin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String bulk-string-reply as a collection of text lines
-
clusterReplicate
Description copied from interface:RedisClusterAsyncCommandsTurn this node into a replica of the node with the idnodeId.- Specified by:
clusterReplicatein interfaceRedisClusterAsyncCommands<K,V>- Parameters:
nodeId- master node id- Returns:
- String simple-string-reply
-
clusterReset
Description copied from interface:RedisClusterAsyncCommandsReset 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 interfaceRedisClusterAsyncCommands<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:RedisClusterAsyncCommandsForces a node to save the nodes.conf configuration on disk.- Specified by:
clusterSaveconfigin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String simple-string-reply:
OKor an error if the operation fails.
-
clusterSetConfigEpoch
Description copied from interface:RedisClusterAsyncCommandsThis 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 interfaceRedisClusterAsyncCommands<K,V>- Parameters:
configEpoch- the config epoch- Returns:
- String simple-string-reply:
OKor an error if the operation fails.
-
clusterSetSlotImporting
Description copied from interface:RedisClusterAsyncCommandsFlag a slot as IMPORTING (incoming) from the node specified innodeId.- Specified by:
clusterSetSlotImportingin interfaceRedisClusterAsyncCommands<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:RedisClusterAsyncCommandsFlag 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 interfaceRedisClusterAsyncCommands<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:RedisClusterAsyncCommandsAssign a slot to a node. The command migrates the specified slot from the current node to the specified node innodeId- Specified by:
clusterSetSlotNodein interfaceRedisClusterAsyncCommands<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:RedisClusterAsyncCommandsClears migrating / importing state from the slot.- Specified by:
clusterSetSlotStablein interfaceRedisClusterAsyncCommands<K,V>- Parameters:
slot- the slot- Returns:
- String simple-string-reply
-
clusterSlaves
Description copied from interface:RedisClusterAsyncCommandsList replicas for a certain node identified by itsnodeId. Can be parsed usingClusterPartitionParser.parse(java.lang.String)- Specified by:
clusterSlavesin interfaceRedisClusterAsyncCommands<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
RedisClusterAsyncCommands.clusterNodes()but one line per replica.
-
clusterSlots
Description copied from interface:RedisClusterAsyncCommandsGet array of cluster slots to node mappings.- Specified by:
clusterSlotsin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- RedisFuture<List<Object>> array-reply nested list of slot ranges with IP/Port mappings.
-
command
Description copied from interface:RedisServerAsyncCommandsReturns an array reply of details about all Redis commands.- Specified by:
commandin interfaceRedisServerAsyncCommands<K,V>- Returns:
- List<Object> array-reply.
-
commandCount
Description copied from interface:RedisServerAsyncCommandsGet total number of Redis commands.- Specified by:
commandCountin interfaceRedisServerAsyncCommands<K,V>- Returns:
- Long integer-reply of number of total commands in this Redis server.
-
commandInfo
Description copied from interface:RedisServerAsyncCommandsReturns an array reply of details about the requested commands.- Specified by:
commandInfoin interfaceRedisServerAsyncCommands<K,V>- Parameters:
commands- the commands to query for.- Returns:
- List<Object> array-reply.
-
commandInfo
Description copied from interface:RedisServerAsyncCommandsReturns an array reply of details about the requested commands.- Specified by:
commandInfoin interfaceRedisServerAsyncCommands<K,V>- Parameters:
commands- the commands to query for.- Returns:
- List<Object> array-reply.
-
configGet
Description copied from interface:RedisServerAsyncCommandsGet the value of a configuration parameter.- Specified by:
configGetin interfaceRedisServerAsyncCommands<K,V>- Parameters:
parameter- name of the parameter.- Returns:
- Map<String, String> bulk-string-reply.
-
configResetstat
Description copied from interface:RedisServerAsyncCommandsReset the stats returned by INFO.- Specified by:
configResetstatin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
configRewrite
Description copied from interface:RedisServerAsyncCommandsRewrite the configuration file with the in memory configuration.- Specified by:
configRewritein interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply
OKwhen the configuration was rewritten properly. Otherwise an error is returned.
-
configSet
Description copied from interface:RedisServerAsyncCommandsSet a configuration parameter to the given value.- Specified by:
configSetin interfaceRedisServerAsyncCommands<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.
-
dbsize
Description copied from interface:RedisServerAsyncCommandsReturn the number of keys in the selected database.- Specified by:
dbsizein interfaceRedisServerAsyncCommands<K,V>- Returns:
- Long integer-reply.
-
debugCrashAndRecover
Description copied from interface:RedisServerAsyncCommandsCrash and recover.- Specified by:
debugCrashAndRecoverin interfaceRedisServerAsyncCommands<K,V>- Parameters:
delay- optional delay in milliseconds.- Returns:
- String simple-string-reply.
-
debugHtstats
Description copied from interface:RedisServerAsyncCommandsGet debugging information about the internal hash-table state.- Specified by:
debugHtstatsin interfaceRedisServerAsyncCommands<K,V>- Parameters:
db- the database number.- Returns:
- String simple-string-reply.
-
debugObject
Description copied from interface:RedisServerAsyncCommandsGet debugging information about a key.- Specified by:
debugObjectin interfaceRedisServerAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- String simple-string-reply.
-
debugOom
public void debugOom()Description copied from interface:RedisServerAsyncCommandsMake the server crash: Out of memory.- Specified by:
debugOomin interfaceRedisServerAsyncCommands<K,V>
-
debugReload
Description copied from interface:RedisServerAsyncCommandsSave RDB, clear the database and reload RDB.- Specified by:
debugReloadin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply The commands returns OK on success.
-
debugRestart
Description copied from interface:RedisServerAsyncCommandsRestart the server gracefully.- Specified by:
debugRestartin interfaceRedisServerAsyncCommands<K,V>- Parameters:
delay- optional delay in milliseconds.- Returns:
- String simple-string-reply.
-
debugSdslen
Description copied from interface:RedisServerAsyncCommandsGet debugging information about the internal SDS length.- Specified by:
debugSdslenin interfaceRedisServerAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- String simple-string-reply.
-
debugSegfault
public void debugSegfault()Description copied from interface:RedisServerAsyncCommandsMake the server crash: Invalid pointer access.- Specified by:
debugSegfaultin interfaceRedisServerAsyncCommands<K,V>
-
decr
Description copied from interface:RedisStringAsyncCommandsDecrement the integer value of a key by one.- Specified by:
decrin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the value of
keyafter the decrement.
-
decrby
Description copied from interface:RedisStringAsyncCommandsDecrement the integer value of a key by the given number.- Specified by:
decrbyin interfaceRedisStringAsyncCommands<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:RedisKeyAsyncCommandsDelete one or more keys.- Specified by:
delin interfaceRedisClusterAsyncCommands<K,V>- Specified by:
delin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply The number of keys that were removed.
-
del
-
digest
Description copied from interface:RedisScriptingAsyncCommandsCreate a SHA1 digest from a Lua script.- Specified by:
digestin interfaceRedisScriptingAsyncCommands<K,V>- Parameters:
script- script content.- Returns:
- the SHA1 value.
-
digest
Description copied from interface:RedisScriptingAsyncCommandsCreate a SHA1 digest from a Lua script.- Specified by:
digestin interfaceRedisScriptingAsyncCommands<K,V>- Parameters:
script- script content.- Returns:
- the SHA1 value.
-
discard
Description copied from interface:RedisTransactionalAsyncCommandsDiscard all commands issued after MULTI.- Specified by:
discardin interfaceRedisTransactionalAsyncCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
dispatch
Description copied from interface:BaseRedisAsyncCommandsDispatch a command to the Redis Server. Please note the command output type must fit to the command response.- Specified by:
dispatchin interfaceBaseRedisAsyncCommands<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> RedisFuture<T> dispatch(ProtocolKeyword type, CommandOutput<K,V,T> output, CommandArgs<K,V> args)Description copied from interface:BaseRedisAsyncCommandsDispatch a command to the Redis Server. Please note the command output type must fit to the command response.- Specified by:
dispatchin interfaceBaseRedisAsyncCommands<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.
-
dispatch
-
dispatch
protected <T> RedisFuture<T> dispatch(CommandType type, CommandOutput<K,V,T> output, CommandArgs<K,V> args) -
dispatch
-
dump
Description copied from interface:RedisKeyAsyncCommandsReturn a serialized version of the value stored at the specified key.- Specified by:
dumpin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- byte[] bulk-string-reply the serialized value.
-
echo
Description copied from interface:BaseRedisAsyncCommandsEcho the given string.- Specified by:
echoin interfaceBaseRedisAsyncCommands<K,V>- Parameters:
msg- the message type: value.- Returns:
- V bulk-string-reply.
-
eval
Description copied from interface:RedisScriptingAsyncCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingAsyncCommands<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:RedisScriptingAsyncCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingAsyncCommands<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:RedisScriptingAsyncCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingAsyncCommands<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:RedisScriptingAsyncCommandsExecute a Lua script server side.- Specified by:
evalin interfaceRedisScriptingAsyncCommands<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:RedisScriptingAsyncCommandsEvaluates a script cached on the server side by its SHA1 digest.- Specified by:
evalshain interfaceRedisScriptingAsyncCommands<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:RedisScriptingAsyncCommandsExecute a Lua script server side.- Specified by:
evalshain interfaceRedisScriptingAsyncCommands<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:RedisTransactionalAsyncCommandsExecute all commands issued after MULTI.- Specified by:
execin interfaceRedisTransactionalAsyncCommands<K,V>- Returns:
- List<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
Description copied from interface:RedisKeyAsyncCommandsDetermine how many keys exist.- Specified by:
existsin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply specifically: Number of existing keys.
-
exists
-
expire
Description copied from interface:RedisKeyAsyncCommandsSet a key's time to live in seconds.- Specified by:
expirein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet a key's time to live in seconds.- Specified by:
expirein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet the expiration for a key as a UNIX timestamp.- Specified by:
expireatin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet the expiration for a key as a UNIX timestamp.- Specified by:
expireatin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet the expiration for a key as a UNIX timestamp.- Specified by:
expireatin interfaceRedisKeyAsyncCommands<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:BaseRedisAsyncCommandsFlush 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 interfaceBaseRedisAsyncCommands<K,V>
-
flushall
Description copied from interface:RedisServerAsyncCommandsRemove all keys from all databases.- Specified by:
flushallin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
flushall
Description copied from interface:RedisServerAsyncCommandsRemove all keys from all databases using the specifiedFlushMode.- Specified by:
flushallin interfaceRedisServerAsyncCommands<K,V>- Parameters:
flushMode- the flush mode (sync/asnync).- Returns:
- String simple-string-reply.
-
flushallAsync
Description copied from interface:RedisServerAsyncCommandsRemove all keys asynchronously from all databases.- Specified by:
flushallAsyncin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
flushdb
Description copied from interface:RedisServerAsyncCommandsRemove all keys from the current database.- Specified by:
flushdbin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
flushdb
Description copied from interface:RedisServerAsyncCommandsRemove all keys from the current database using the specifiedFlushMode.- Specified by:
flushdbin interfaceRedisServerAsyncCommands<K,V>- Parameters:
flushMode- the flush mode (sync/asnync).- Returns:
- String simple-string-reply.
-
flushdbAsync
Description copied from interface:RedisServerAsyncCommandsRemove all keys asynchronously from the current database.- Specified by:
flushdbAsyncin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
geoadd
Description copied from interface:RedisGeoAsyncCommandsSingle geo add.- Specified by:
geoaddin interfaceRedisGeoAsyncCommands<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
public RedisFuture<Long> geoadd(K key, double longitude, double latitude, V member, GeoAddArgs args)Description copied from interface:RedisGeoAsyncCommandsSingle geo add.- Specified by:
geoaddin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsMulti geo add.- Specified by:
geoaddin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsRetrieve distance between pointsfromandto. If one or more elements are missingnullis returned. Default in meters by, otherwise according tounit- Specified by:
geodistin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsRetrieve Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index.- Specified by:
geohashin interfaceRedisGeoAsyncCommands<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:RedisGeoAsyncCommandsGet geo coordinates for themembers.- Specified by:
geoposin interfaceRedisGeoAsyncCommands<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 RedisFuture<Set<V>> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)Description copied from interface:RedisGeoAsyncCommandsRetrieve members selected by distance with the center oflongitudeandlatitude.- Specified by:
georadiusin interfaceRedisGeoAsyncCommands<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 RedisFuture<List<GeoWithin<V>>> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)Description copied from interface:RedisGeoAsyncCommandsRetrieve members selected by distance with the center oflongitudeandlatitude.- Specified by:
georadiusin interfaceRedisGeoAsyncCommands<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 RedisFuture<Long> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Description copied from interface:RedisGeoAsyncCommandsPerform aRedisGeoAsyncCommands.georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs)query and store the results in a sorted set.- Specified by:
georadiusin interfaceRedisGeoAsyncCommands<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 RedisFuture<Set<V>> georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit) -
georadius_ro
protected RedisFuture<List<GeoWithin<V>>> georadius_ro(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs) -
georadiusbymember
Description copied from interface:RedisGeoAsyncCommandsRetrieve members selected by distance with the center ofmember. The member itself is always contained in the results.- Specified by:
georadiusbymemberin interfaceRedisGeoAsyncCommands<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 RedisFuture<List<GeoWithin<V>>> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)Description copied from interface:RedisGeoAsyncCommandsRetrieve members selected by distance with the center ofmember. The member itself is always contained in the results.- Specified by:
georadiusbymemberin interfaceRedisGeoAsyncCommands<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 RedisFuture<Long> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)Description copied from interface:RedisGeoAsyncCommandsPerform aRedisGeoAsyncCommands.georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs)query and store the results in a sorted set.- Specified by:
georadiusbymemberin interfaceRedisGeoAsyncCommands<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
protected RedisFuture<Set<V>> georadiusbymember_ro(K key, V member, double distance, GeoArgs.Unit unit) -
georadiusbymember_ro
protected RedisFuture<List<GeoWithin<V>>> georadiusbymember_ro(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs) -
geosearch
public RedisFuture<Set<V>> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate)Description copied from interface:RedisGeoAsyncCommandsRetrieve members selected by distance with the center ofreferencethe searchpredicate. UseGeoSearchto create reference and predicate objects.- Specified by:
geosearchin interfaceRedisGeoAsyncCommands<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 RedisFuture<List<GeoWithin<V>>> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs)Description copied from interface:RedisGeoAsyncCommandsRetrieve members selected by distance with the center ofreferencethe searchpredicate. UseGeoSearchto create reference and predicate objects.- Specified by:
geosearchin interfaceRedisGeoAsyncCommands<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 RedisFuture<Long> geosearchstore(K destination, K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs, boolean storeDist)Description copied from interface:RedisGeoAsyncCommandsPerform aRedisGeoAsyncCommands.geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs)query and store the results in a sorted set.- Specified by:
geosearchstorein interfaceRedisGeoAsyncCommands<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:RedisStringAsyncCommandsGet the value of a key.- Specified by:
getin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the value of
key, ornullwhenkeydoes not exist.
-
getConnection
-
getbit
Description copied from interface:RedisStringAsyncCommandsReturns the bit value at offset in the string value stored at key.- Specified by:
getbitin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsGet the value of key and delete the key.- Specified by:
getdelin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the value of
key, ornullwhenkeydoes not exist.
-
getex
Description copied from interface:RedisStringAsyncCommandsGet the value of key and optionally set its expiration.- Specified by:
getexin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsGet a substring of the string stored at a key.- Specified by:
getrangein interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsSet the string value of a key and return its old value.- Specified by:
getsetin interfaceRedisStringAsyncCommands<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:RedisHashAsyncCommandsDelete one or more hash fields.- Specified by:
hdelin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsDetermine if a hash field exists.- Specified by:
hexistsin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsGet the value of a hash field.- Specified by:
hgetin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsGet all the fields and values in a hash.- Specified by:
hgetallin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsStream over all the fields and values in a hash.- Specified by:
hgetallin interfaceRedisHashAsyncCommands<K,V>- Parameters:
channel- the channel.key- the key.- Returns:
- Long count of the keys.
-
hincrby
Description copied from interface:RedisHashAsyncCommandsIncrement the integer value of a hash field by the given number.- Specified by:
hincrbyin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsIncrement the float value of a hash field by the given amount.- Specified by:
hincrbyfloatin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsGet all the fields in a hash.- Specified by:
hkeysin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- List<K> array-reply list of fields in the hash, or an empty list when
keydoes not exist.
-
hkeys
Description copied from interface:RedisHashAsyncCommandsStream over all the fields in a hash.- Specified by:
hkeysin interfaceRedisHashAsyncCommands<K,V>- Parameters:
channel- the channel.key- the key.- Returns:
- Long count of the keys.
-
hlen
Description copied from interface:RedisHashAsyncCommandsGet the number of fields in a hash.- Specified by:
hlenin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsGet the values of all the given hash fields.- Specified by:
hmgetin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.fields- the field type: key.- Returns:
- List<V> array-reply list of values associated with the given fields, in the same.
-
hmget
Description copied from interface:RedisHashAsyncCommandsStream over the values of all the given hash fields.- Specified by:
hmgetin interfaceRedisHashAsyncCommands<K,V>- Parameters:
channel- the channel.key- the key.fields- the fields.- Returns:
- Long count of the keys.
-
hmset
Description copied from interface:RedisHashAsyncCommandsSet multiple hash fields to multiple values.- Specified by:
hmsetin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.map- the hash to apply.- Returns:
- String simple-string-reply.
-
hrandfield
Description copied from interface:RedisHashAsyncCommandsReturn a random field from the hash stored atkey.- Specified by:
hrandfieldin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- hash field name.
-
hrandfield
Description copied from interface:RedisHashAsyncCommandsReturncountrandom fields from the hash stored atkey.- Specified by:
hrandfieldin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsReturn a random field along its value from the hash stored atkey.- Specified by:
hrandfieldWithvaluesin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- array-reply the key and value.
-
hrandfieldWithvalues
Description copied from interface:RedisHashAsyncCommandsReturncountrandom fields along their value from the hash stored atkey.- Specified by:
hrandfieldWithvaluesin interfaceRedisHashAsyncCommands<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.
-
hscan
Description copied from interface:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
Description copied from interface:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.scanArgs- scan arguments.- Returns:
- MapScanCursor<K, V> map scan cursor.
-
hscan
Description copied from interface:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key-value pair.key- the key.- Returns:
- StreamScanCursor scan cursor.
-
hscan
public RedisFuture<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanArgs scanArgs)Description copied from interface:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<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 RedisFuture<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<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 RedisFuture<StreamScanCursor> hscan(KeyValueStreamingChannel<K,V> channel, K key, ScanCursor scanCursor)Description copied from interface:RedisHashAsyncCommandsIncrementally iterate hash fields and associated values.- Specified by:
hscanin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsSet the string value of a hash field.- Specified by:
hsetin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsSet multiple hash fields to multiple values.- Specified by:
hsetin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsSet the value of a hash field, only if the field does not exist.- Specified by:
hsetnxin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsGet the string length of the field value in a hash.- Specified by:
hstrlenin interfaceRedisHashAsyncCommands<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:RedisHashAsyncCommandsGet all the values in a hash.- Specified by:
hvalsin interfaceRedisHashAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- List<V> array-reply list of values in the hash, or an empty list when
keydoes not exist.
-
hvals
Description copied from interface:RedisHashAsyncCommandsStream over all the values in a hash.- Specified by:
hvalsin interfaceRedisHashAsyncCommands<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:RedisStringAsyncCommandsIncrement the integer value of a key by one.- Specified by:
incrin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the value of
keyafter the increment.
-
incrby
Description copied from interface:RedisStringAsyncCommandsIncrement the integer value of a key by the given amount.- Specified by:
incrbyin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsIncrement the float value of a key by the given amount.- Specified by:
incrbyfloatin interfaceRedisStringAsyncCommands<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:RedisServerAsyncCommandsGet information and statistics about the server.- Specified by:
infoin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String bulk-string-reply as a collection of text lines.
-
info
Description copied from interface:RedisServerAsyncCommandsGet information and statistics about the server.- Specified by:
infoin interfaceRedisServerAsyncCommands<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 interfaceBaseRedisAsyncCommands<K,V>- Returns:
trueif the connection is open (connected and not closed).
-
keys
Description copied from interface:RedisKeyAsyncCommandsFind all keys matching the given pattern.- Specified by:
keysin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
pattern- the pattern type: patternkey (pattern).- Returns:
- List<K> array-reply list of keys matching
pattern.
-
keys
Description copied from interface:RedisKeyAsyncCommandsFind all keys matching the given pattern.- Specified by:
keysin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
channel- the channel.pattern- the pattern.- Returns:
- Long array-reply list of keys matching
pattern.
-
lastsave
Description copied from interface:RedisServerAsyncCommandsGet the UNIX time stamp of the last successful save to disk.- Specified by:
lastsavein interfaceRedisServerAsyncCommands<K,V>- Returns:
- Date integer-reply an UNIX time stamp.
-
lindex
Description copied from interface:RedisListAsyncCommandsGet an element from a list by its index.- Specified by:
lindexin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsInsert an element before or after another element in a list.- Specified by:
linsertin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsGet the length of a list.- Specified by:
llenin interfaceRedisListAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Long integer-reply the length of the list at
key.
-
lmove
Description copied from interface:RedisListAsyncCommandsAtomically 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 interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsRemove and get the first element in a list.- Specified by:
lpopin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsRemove and get the firstcountelements in a list.- Specified by:
lpopin interfaceRedisListAsyncCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
-
lpos
Description copied from interface:RedisListAsyncCommandsReturn 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 whatRedisListAsyncCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsReturn 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 whatRedisListAsyncCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsReturn 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 whatRedisListAsyncCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsReturn 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 whatRedisListAsyncCommands.lindex(java.lang.Object, long)would return. So first element from head is0, and so forth.- Specified by:
lposin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsPrepend one or multiple values to a list.- Specified by:
lpushin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsPrepend values to a list, only if the list exists.- Specified by:
lpushxin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsGet a range of elements from a list.- Specified by:
lrangein interfaceRedisListAsyncCommands<K,V>- Parameters:
key- the key.start- the start type: long.stop- the stop type: long.- Returns:
- List<V> array-reply list of elements in the specified range.
-
lrange
Description copied from interface:RedisListAsyncCommandsGet a range of elements from a list.- Specified by:
lrangein interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsRemove elements from a list.- Specified by:
lremin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsSet the value of an element in a list by its index.- Specified by:
lsetin interfaceRedisListAsyncCommands<K,V>- Parameters:
key- the key.index- the index type: long.value- the value.- Returns:
- String simple-string-reply.
-
ltrim
Description copied from interface:RedisListAsyncCommandsTrim a list to the specified range.- Specified by:
ltrimin interfaceRedisListAsyncCommands<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:RedisServerAsyncCommandsReports the number of bytes that a key and its value require to be stored in RAM.- Specified by:
memoryUsagein interfaceRedisServerAsyncCommands<K,V>- Returns:
- memory usage in bytes.
-
mget
Description copied from interface:RedisStringAsyncCommandsGet the values of all the given keys.- Specified by:
mgetin interfaceRedisClusterAsyncCommands<K,V>- Specified by:
mgetin interfaceRedisStringAsyncCommands<K,V>- Parameters:
keys- the key.- Returns:
- List<V> array-reply list of values at the specified keys.
-
mget
-
mget
Description copied from interface:RedisStringAsyncCommandsStream over the values of all the given keys.- Specified by:
mgetin interfaceRedisStringAsyncCommands<K,V>- Parameters:
channel- the channel.keys- the keys.- Returns:
- Long array-reply list of values at the specified keys.
-
mget
-
migrate
Description copied from interface:RedisKeyAsyncCommandsAtomically transfer a key from a Redis instance to another one.- Specified by:
migratein interfaceRedisKeyAsyncCommands<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 RedisFuture<String> migrate(String host, int port, int db, long timeout, MigrateArgs<K> migrateArgs)Description copied from interface:RedisKeyAsyncCommandsAtomically transfer one or more keys from a Redis instance to another one.- Specified by:
migratein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsMove a key to another database.- Specified by:
movein interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.db- the db type: long.- Returns:
- Boolean integer-reply specifically:.
-
mset
Description copied from interface:RedisStringAsyncCommandsSet multiple keys to multiple values.- Specified by:
msetin interfaceRedisClusterAsyncCommands<K,V>- Specified by:
msetin interfaceRedisStringAsyncCommands<K,V>- Parameters:
map- the null.- Returns:
- String simple-string-reply always
OKsinceMSETcan't fail.
-
msetnx
Description copied from interface:RedisStringAsyncCommandsSet multiple keys to multiple values, only if none of the keys exist.- Specified by:
msetnxin interfaceRedisClusterAsyncCommands<K,V>- Specified by:
msetnxin interfaceRedisStringAsyncCommands<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:RedisTransactionalAsyncCommandsMark the start of a transaction block.- Specified by:
multiin interfaceRedisTransactionalAsyncCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
objectEncoding
Description copied from interface:RedisKeyAsyncCommandsReturns the kind of internal representation used in order to store the value associated with thekey.- Specified by:
objectEncodingin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- String.
-
objectFreq
Description copied from interface:RedisKeyAsyncCommandsReturns the logarithmic access frequency counter of the object stored at the specifiedkey.- Specified by:
objectFreqin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Long.
-
objectIdletime
Description copied from interface:RedisKeyAsyncCommandsReturns the number of seconds since the object stored at the specified key is idle (not requested by read or write operations).- Specified by:
objectIdletimein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsReturns the number of references of the value associated with the specified key.- Specified by:
objectRefcountin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Long.
-
persist
Description copied from interface:RedisKeyAsyncCommandsRemove the expiration from a key.- Specified by:
persistin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet a key's time to live in milliseconds.- Specified by:
pexpirein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet a key's time to live in milliseconds.- Specified by:
pexpirein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet the expiration for a key as a UNIX timestamp specified in milliseconds.- Specified by:
pexpireatin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet the expiration for a key as a UNIX timestamp specified in milliseconds.- Specified by:
pexpireatin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSet the expiration for a key as a UNIX timestamp specified in milliseconds.- Specified by:
pexpireatin interfaceRedisKeyAsyncCommands<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:RedisHLLAsyncCommandsAdds the specified elements to the specified HyperLogLog.- Specified by:
pfaddin interfaceRedisHLLAsyncCommands<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.
-
pfcount
Description copied from interface:RedisHLLAsyncCommandsReturn the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).- Specified by:
pfcountin interfaceRedisHLLAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply specifically:
The approximated number of unique elements observed via
PFADD.
-
pfmerge
Description copied from interface:RedisHLLAsyncCommandsMerge N different HyperLogLogs into a single one.- Specified by:
pfmergein interfaceRedisHLLAsyncCommands<K,V>- Parameters:
destkey- the destination key.sourcekeys- the source key.- Returns:
- String simple-string-reply The command just returns
OK.
-
ping
Description copied from interface:BaseRedisAsyncCommandsPing the server.- Specified by:
pingin interfaceBaseRedisAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
psetex
Description copied from interface:RedisStringAsyncCommandsSet the value and expiration in milliseconds of a key.- Specified by:
psetexin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.milliseconds- the milliseconds type: long.value- the value.- Returns:
- String simple-string-reply.
-
pttl
Description copied from interface:RedisKeyAsyncCommandsGet the time to live for a key in milliseconds.- Specified by:
pttlin interfaceRedisKeyAsyncCommands<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:BaseRedisAsyncCommandsPost a message to a channel.- Specified by:
publishin interfaceBaseRedisAsyncCommands<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:BaseRedisAsyncCommandsLists the currently *active channels*.- Specified by:
pubsubChannelsin interfaceBaseRedisAsyncCommands<K,V>- Returns:
- List<K> array-reply a list of active channels, optionally matching the specified pattern.
-
pubsubChannels
Description copied from interface:BaseRedisAsyncCommandsLists the currently *active channels*.- Specified by:
pubsubChannelsin interfaceBaseRedisAsyncCommands<K,V>- Parameters:
channel- the key.- Returns:
- List<K> array-reply a list of active channels, optionally matching the specified pattern.
-
pubsubNumpat
Description copied from interface:BaseRedisAsyncCommandsReturns the number of subscriptions to patterns.- Specified by:
pubsubNumpatin interfaceBaseRedisAsyncCommands<K,V>- Returns:
- Long integer-reply the number of patterns all the clients are subscribed to.
-
pubsubNumsub
Description copied from interface:BaseRedisAsyncCommandsReturns the number of subscribers (not counting clients subscribed to patterns) for the specified channels.- Specified by:
pubsubNumsubin interfaceBaseRedisAsyncCommands<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:BaseRedisAsyncCommandsInstructs 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 interfaceBaseRedisAsyncCommands<K,V>- Returns:
- String simple-string-reply always OK.
-
randomkey
Description copied from interface:RedisKeyAsyncCommandsReturn a random key from the keyspace.- Specified by:
randomkeyin interfaceRedisKeyAsyncCommands<K,V>- Returns:
- K bulk-string-reply the random key, or
nullwhen the database is empty.
-
readOnly
Description copied from interface:BaseRedisAsyncCommandsSwitch connection to Read-Only mode when connecting to a cluster.- Specified by:
readOnlyin interfaceBaseRedisAsyncCommands<K,V>- Specified by:
readOnlyin interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
readWrite
Description copied from interface:BaseRedisAsyncCommandsSwitch connection to Read-Write mode (default) when connecting to a cluster.- Specified by:
readWritein interfaceBaseRedisAsyncCommands<K,V>- Specified by:
readWritein interfaceRedisClusterAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
rename
Description copied from interface:RedisKeyAsyncCommandsRename a key.- Specified by:
renamein interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.newKey- the newkey type: key.- Returns:
- String simple-string-reply.
-
renamenx
Description copied from interface:RedisKeyAsyncCommandsRename a key, only if the new key does not exist.- Specified by:
renamenxin interfaceRedisKeyAsyncCommands<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:BaseRedisAsyncCommandsReset 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 interfaceBaseRedisAsyncCommands<K,V>
-
restore
Description copied from interface:RedisKeyAsyncCommandsCreate a key using the provided serialized value, previously obtained using DUMP.- Specified by:
restorein interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsCreate a key using the provided serialized value, previously obtained using DUMP.- Specified by:
restorein interfaceRedisKeyAsyncCommands<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:BaseRedisAsyncCommandsReturn the role of the instance in the context of replication.- Specified by:
rolein interfaceBaseRedisAsyncCommands<K,V>- Returns:
- List<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:RedisListAsyncCommandsRemove and get the last element in a list.- Specified by:
rpopin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsRemove and get the lastcountelements in a list.- Specified by:
rpopin interfaceRedisListAsyncCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
- List<V> array-reply list of the last
countelements, ornullwhenkeydoes not exist.
-
rpoplpush
Description copied from interface:RedisListAsyncCommandsRemove the last element in a list, append it to another list and return it.- Specified by:
rpoplpushin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsAppend one or multiple values to a list.- Specified by:
rpushin interfaceRedisListAsyncCommands<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:RedisListAsyncCommandsAppend values to a list, only if the list exists.- Specified by:
rpushxin interfaceRedisListAsyncCommands<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:RedisSetAsyncCommandsAdd one or more members to a set.- Specified by:
saddin interfaceRedisSetAsyncCommands<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:RedisServerAsyncCommandsSynchronously save the dataset to disk.- Specified by:
savein interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply The commands returns OK on success.
-
scan
Description copied from interface:RedisKeyAsyncCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyAsyncCommands<K,V>- Returns:
- KeyScanCursor<K> scan cursor.
-
scan
Description copied from interface:RedisKeyAsyncCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
scanArgs- scan arguments.- Returns:
- KeyScanCursor<K> scan cursor.
- See Also:
KeyScanArgs
-
scan
Description copied from interface:RedisKeyAsyncCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
scanCursor- cursor to resume from a previous scan, must not benull.- Returns:
- KeyScanCursor<K> scan cursor.
-
scan
Description copied from interface:RedisKeyAsyncCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every key.- Returns:
- StreamScanCursor scan cursor.
-
scan
Description copied from interface:RedisKeyAsyncCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyAsyncCommands<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 RedisFuture<StreamScanCursor> scan(KeyStreamingChannel<K> channel, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisKeyAsyncCommandsIncrementally iterate the keys space. UseKeyScanArgsto specifySCAN-specific arguments.- Specified by:
scanin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsIncrementally iterate the keys space.- Specified by:
scanin interfaceRedisKeyAsyncCommands<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:RedisSetAsyncCommandsGet the number of members in a set.- Specified by:
scardin interfaceRedisSetAsyncCommands<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:RedisScriptingAsyncCommandsCheck existence of scripts in the script cache.- Specified by:
scriptExistsin interfaceRedisScriptingAsyncCommands<K,V>- Parameters:
digests- script digests.- Returns:
- List<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:RedisScriptingAsyncCommandsRemove all the scripts from the script cache.- Specified by:
scriptFlushin interfaceRedisScriptingAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
scriptFlush
Description copied from interface:RedisScriptingAsyncCommandsRemove all the scripts from the script cache using the specifiedFlushMode.- Specified by:
scriptFlushin interfaceRedisScriptingAsyncCommands<K,V>- Parameters:
flushMode- the flush mode (sync/asnync).- Returns:
- String simple-string-reply.
-
scriptKill
Description copied from interface:RedisScriptingAsyncCommandsKill the script currently in execution.- Specified by:
scriptKillin interfaceRedisScriptingAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
scriptLoad
Description copied from interface:RedisScriptingAsyncCommandsLoad the specified Lua script into the script cache.- Specified by:
scriptLoadin interfaceRedisScriptingAsyncCommands<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:RedisScriptingAsyncCommandsLoad the specified Lua script into the script cache.- Specified by:
scriptLoadin interfaceRedisScriptingAsyncCommands<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:RedisSetAsyncCommandsSubtract multiple sets.- Specified by:
sdiffin interfaceRedisSetAsyncCommands<K,V>- Parameters:
keys- the key.- Returns:
- Set<V> array-reply list with members of the resulting set.
-
sdiff
Description copied from interface:RedisSetAsyncCommandsSubtract multiple sets.- Specified by:
sdiffin interfaceRedisSetAsyncCommands<K,V>- Parameters:
channel- the channel.keys- the keys.- Returns:
- Long count of members of the resulting set.
-
sdiffstore
Description copied from interface:RedisSetAsyncCommandsSubtract multiple sets and store the resulting set in a key.- Specified by:
sdiffstorein interfaceRedisSetAsyncCommands<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:RedisStringAsyncCommandsSet the string value of a key.- Specified by:
setin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.value- the value.- Returns:
- String simple-string-reply
OKifSETwas executed correctly.
-
set
Description copied from interface:RedisStringAsyncCommandsSet the string value of a key.- Specified by:
setin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsSet the string value of a key and return its old value.- Specified by:
setGetin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsSet the string value of a key and return its old value.- Specified by:
setGetin interfaceRedisStringAsyncCommands<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:BaseRedisAsyncCommandsDisable 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 aBaseRedisAsyncCommands.flushCommands()is issued. After callingBaseRedisAsyncCommands.flushCommands()commands are sent to the transport and executed by Redis.- Specified by:
setAutoFlushCommandsin interfaceBaseRedisAsyncCommands<K,V>- Parameters:
autoFlush- state of autoFlush.
-
setTimeout
Description copied from interface:RedisClusterAsyncCommandsSet the default timeout for operations. A zero timeout value indicates to not time out.- Specified by:
setTimeoutin interfaceRedisClusterAsyncCommands<K,V>- Parameters:
timeout- the timeout value
-
setbit
Description copied from interface:RedisStringAsyncCommandsSets or clears the bit at offset in the string value stored at key.- Specified by:
setbitin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsSet the value and expiration of a key.- Specified by:
setexin interfaceRedisStringAsyncCommands<K,V>- Parameters:
key- the key.seconds- the seconds type: long.value- the value.- Returns:
- String simple-string-reply.
-
setnx
Description copied from interface:RedisStringAsyncCommandsSet the value of a key, only if the key does not exist.- Specified by:
setnxin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsOverwrite part of a string at key starting at the specified offset.- Specified by:
setrangein interfaceRedisStringAsyncCommands<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
public void shutdown(boolean save)Description copied from interface:RedisServerAsyncCommandsSynchronously save the dataset to disk and then shut down the server.- Specified by:
shutdownin interfaceRedisServerAsyncCommands<K,V>- Parameters:
save-trueforce save operation.
-
sinter
Description copied from interface:RedisSetAsyncCommandsIntersect multiple sets.- Specified by:
sinterin interfaceRedisSetAsyncCommands<K,V>- Parameters:
keys- the key.- Returns:
- Set<V> array-reply list with members of the resulting set.
-
sinter
Description copied from interface:RedisSetAsyncCommandsIntersect multiple sets.- Specified by:
sinterin interfaceRedisSetAsyncCommands<K,V>- Parameters:
channel- the channel.keys- the keys.- Returns:
- Long count of members of the resulting set.
-
sinterstore
Description copied from interface:RedisSetAsyncCommandsIntersect multiple sets and store the resulting set in a key.- Specified by:
sinterstorein interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsDetermine if a given value is a member of a set.- Specified by:
sismemberin interfaceRedisSetAsyncCommands<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:RedisServerAsyncCommandsMake the server a replica of another instance, or promote it as master.- Specified by:
slaveofin interfaceRedisServerAsyncCommands<K,V>- Parameters:
host- the host type: string.port- the port type: string.- Returns:
- String simple-string-reply.
-
slaveofNoOne
Description copied from interface:RedisServerAsyncCommandsPromote server as master.- Specified by:
slaveofNoOnein interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply.
-
slowlogGet
Description copied from interface:RedisServerAsyncCommandsRead the slow log.- Specified by:
slowlogGetin interfaceRedisServerAsyncCommands<K,V>- Returns:
- List<Object> deeply nested multi bulk replies.
-
slowlogGet
Description copied from interface:RedisServerAsyncCommandsRead the slow log.- Specified by:
slowlogGetin interfaceRedisServerAsyncCommands<K,V>- Parameters:
count- the count.- Returns:
- List<Object> deeply nested multi bulk replies.
-
slowlogLen
Description copied from interface:RedisServerAsyncCommandsObtaining the current length of the slow log.- Specified by:
slowlogLenin interfaceRedisServerAsyncCommands<K,V>- Returns:
- Long length of the slow log.
-
slowlogReset
Description copied from interface:RedisServerAsyncCommandsResetting the slow log.- Specified by:
slowlogResetin interfaceRedisServerAsyncCommands<K,V>- Returns:
- String simple-string-reply The commands returns OK on success.
-
smembers
Description copied from interface:RedisSetAsyncCommandsGet all the members in a set.- Specified by:
smembersin interfaceRedisSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- Set<V> array-reply all elements of the set.
-
smembers
Description copied from interface:RedisSetAsyncCommandsGet all the members in a set.- Specified by:
smembersin interfaceRedisSetAsyncCommands<K,V>- Parameters:
channel- the channel.key- the keys.- Returns:
- Long count of members of the resulting set.
-
smismember
Description copied from interface:RedisSetAsyncCommandsReturns whether each member is a member of the set stored at key.- Specified by:
smismemberin interfaceRedisSetAsyncCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- List<Boolean> array-reply list representing the membership of the given elements, in the same order as they are requested.
-
smove
Description copied from interface:RedisSetAsyncCommandsMove a member from one set to another.- Specified by:
smovein interfaceRedisSetAsyncCommands<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:RedisKeyAsyncCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- List<V> array-reply list of sorted elements.
-
sort
Description copied from interface:RedisKeyAsyncCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.sortArgs- sort arguments.- Returns:
- List<V> array-reply list of sorted elements.
-
sort
Description copied from interface:RedisKeyAsyncCommandsSort the elements in a list, set or sorted set.- Specified by:
sortin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsSort the elements in a list, set or sorted set.- Specified by:
sortStorein interfaceRedisKeyAsyncCommands<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:RedisSetAsyncCommandsRemove and return a random member from a set.- Specified by:
spopin interfaceRedisSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- V bulk-string-reply the removed element, or
nullwhenkeydoes not exist.
-
spop
Description copied from interface:RedisSetAsyncCommandsRemove and return one or multiple random members from a set.- Specified by:
spopin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsGet one random member from a set.- Specified by:
srandmemberin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsGet one or multiple random members from a set.- Specified by:
srandmemberin interfaceRedisSetAsyncCommands<K,V>- Parameters:
key- the key.count- the count type: long.- Returns:
- Set<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:RedisSetAsyncCommandsGet one or multiple random members from a set.- Specified by:
srandmemberin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsRemove one or more members from a set.- Specified by:
sremin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- ValueScanCursor<V> scan cursor.
-
sscan
Description copied from interface:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<K,V>- Parameters:
key- the key.scanArgs- scan arguments.- Returns:
- ValueScanCursor<V> scan cursor.
-
sscan
Description copied from interface:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every value.key- the key.- Returns:
- StreamScanCursor scan cursor.
-
sscan
public RedisFuture<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)Description copied from interface:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<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 RedisFuture<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<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 RedisFuture<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)Description copied from interface:RedisSetAsyncCommandsIncrementally iterate Set elements.- Specified by:
sscanin interfaceRedisSetAsyncCommands<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:RedisStringAsyncCommandsGet the length of the value stored in a key.- Specified by:
strlenin interfaceRedisStringAsyncCommands<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:RedisStringAsyncCommandsThe 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 interfaceRedisStringAsyncCommands<K,V>- Parameters:
args- command arguments.- Returns:
- StringMatchResult.
-
sunion
Description copied from interface:RedisSetAsyncCommandsAdd multiple sets.- Specified by:
sunionin interfaceRedisSetAsyncCommands<K,V>- Parameters:
keys- the key.- Returns:
- Set<V> array-reply list with members of the resulting set.
-
sunion
Description copied from interface:RedisSetAsyncCommandsAdd multiple sets.- Specified by:
sunionin interfaceRedisSetAsyncCommands<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:RedisSetAsyncCommandsAdd multiple sets and store the resulting set in a key.- Specified by:
sunionstorein interfaceRedisSetAsyncCommands<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:RedisServerAsyncCommandsReturn the current server time.- Specified by:
timein interfaceRedisServerAsyncCommands<K,V>- Returns:
- List<V> array-reply specifically: A multi bulk reply containing two elements: unix time in seconds. microseconds.
-
touch
Description copied from interface:RedisKeyAsyncCommandsTouch one or more keys. Touch sets the last accessed time for a key. Non-exsitent keys wont get created.- Specified by:
touchin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply the number of found keys.
-
touch
-
ttl
Description copied from interface:RedisKeyAsyncCommandsGet the time to live for a key.- Specified by:
ttlin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsDetermine the type stored at key.- Specified by:
typein interfaceRedisKeyAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- String simple-string-reply type of
key, ornonewhenkeydoes not exist.
-
unlink
Description copied from interface:RedisKeyAsyncCommandsUnlink one or more keys (non blocking DEL).- Specified by:
unlinkin interfaceRedisKeyAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- Long integer-reply The number of keys that were removed.
-
unlink
-
copy
Description copied from interface:RedisKeyAsyncCommandsCopy the value stored at the source key to the destination key.- Specified by:
copyin interfaceRedisKeyAsyncCommands<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:RedisKeyAsyncCommandsCopy the value stored at the source key to the destination key.- Specified by:
copyin interfaceRedisKeyAsyncCommands<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:RedisTransactionalAsyncCommandsForget about all watched keys.- Specified by:
unwatchin interfaceRedisTransactionalAsyncCommands<K,V>- Returns:
- String simple-string-reply always
OK.
-
waitForReplication
Description copied from interface:BaseRedisAsyncCommandsWait for replication.- Specified by:
waitForReplicationin interfaceBaseRedisAsyncCommands<K,V>- Parameters:
replicas- minimum number of replicas.timeout- timeout in milliseconds.- Returns:
- number of replicas.
-
watch
Description copied from interface:RedisTransactionalAsyncCommandsWatch the given keys to determine execution of the MULTI/EXEC block.- Specified by:
watchin interfaceRedisTransactionalAsyncCommands<K,V>- Parameters:
keys- the key.- Returns:
- String simple-string-reply always
OK.
-
xack
Description copied from interface:RedisStreamAsyncCommandsAcknowledge one or more messages as processed.- Specified by:
xackin interfaceRedisStreamAsyncCommands<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:RedisStreamAsyncCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.body- message body.- Returns:
- simple-reply the message Id.
-
xadd
Description copied from interface:RedisStreamAsyncCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.body- message body.- Returns:
- simple-reply the message Id.
-
xadd
Description copied from interface:RedisStreamAsyncCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.keysAndValues- message body.- Returns:
- simple-reply the message Id.
-
xadd
Description copied from interface:RedisStreamAsyncCommandsAppend a message to the streamkey.- Specified by:
xaddin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.keysAndValues- message body.- Returns:
- simple-reply the message Id.
-
xautoclaim
Description copied from interface:RedisStreamAsyncCommandsGets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.- Specified by:
xautoclaimin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.- Returns:
- simple-reply the claimed stream messages.
-
xclaim
public RedisFuture<List<StreamMessage<K,V>>> xclaim(K key, Consumer<K> consumer, long minIdleTime, String... messageIds)Description copied from interface:RedisStreamAsyncCommandsGets ownership of one or multiple messages in the Pending Entries List of a given stream consumer group.- Specified by:
xclaimin interfaceRedisStreamAsyncCommands<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 RedisFuture<List<StreamMessage<K,V>>> xclaim(K key, Consumer<K> consumer, XClaimArgs args, String... messageIds)Description copied from interface:RedisStreamAsyncCommandsGets 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 interfaceRedisStreamAsyncCommands<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:RedisStreamAsyncCommandsRemoves 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 interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.messageIds- stream message Id's.- Returns:
- simple-reply number of removed entries.
-
xgroupCreate
Description copied from interface:RedisStreamAsyncCommandsCreate a consumer group.- Specified by:
xgroupCreatein interfaceRedisStreamAsyncCommands<K,V>- Parameters:
offset- name of the stream containing the offset to set.group- name of the consumer group.- Returns:
- simple-reply
trueif successful.
-
xgroupCreate
public RedisFuture<String> xgroupCreate(XReadArgs.StreamOffset<K> offset, K group, XGroupCreateArgs args)Description copied from interface:RedisStreamAsyncCommandsCreate a consumer group.- Specified by:
xgroupCreatein interfaceRedisStreamAsyncCommands<K,V>- Parameters:
offset- 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:RedisStreamAsyncCommandsCreate a consumer from a consumer group.- Specified by:
xgroupCreateconsumerin interfaceRedisStreamAsyncCommands<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:RedisStreamAsyncCommandsDelete a consumer from a consumer group.- Specified by:
xgroupDelconsumerin interfaceRedisStreamAsyncCommands<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:RedisStreamAsyncCommandsDestroy a consumer group.- Specified by:
xgroupDestroyin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.- Returns:
- simple-reply
trueif successful.
-
xgroupSetid
Description copied from interface:RedisStreamAsyncCommandsSet the currentgroupid.- Specified by:
xgroupSetidin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
offset- name of the stream containing the offset to set.group- name of the consumer group.- Returns:
- simple-reply OK.
-
xinfoStream
Description copied from interface:RedisStreamAsyncCommandsRetrieve information about the stream atkey.- Specified by:
xinfoStreamin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.- Returns:
- List<Object> array-reply.
-
xinfoGroups
Description copied from interface:RedisStreamAsyncCommandsRetrieve information about the stream consumer groups atkey.- Specified by:
xinfoGroupsin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.- Returns:
- List<Object> array-reply.
-
xinfoConsumers
Description copied from interface:RedisStreamAsyncCommandsRetrieve information about consumer groups of groupgroupand stream atkey.- Specified by:
xinfoConsumersin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.- Returns:
- List<Object> array-reply.
-
xlen
Description copied from interface:RedisStreamAsyncCommandsGet the length of a steam.- Specified by:
xlenin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.- Returns:
- simple-reply the lenght of the stream.
-
xpending
Description copied from interface:RedisStreamAsyncCommandsRead pending messages from a stream for agroup.- Specified by:
xpendingin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.- Returns:
- List<Object> array-reply list pending entries.
-
xpending
public RedisFuture<List<PendingMessage>> xpending(K key, K group, Range<String> range, Limit limit)Description copied from interface:RedisStreamAsyncCommandsRead pending messages from a stream within a specificRange.- Specified by:
xpendingin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.group- name of the consumer group.range- must not benull.limit- must not benull.- Returns:
- List<Object> array-reply list with members of the resulting stream.
-
xpending
public RedisFuture<List<PendingMessage>> xpending(K key, Consumer<K> consumer, Range<String> range, Limit limit)Description copied from interface:RedisStreamAsyncCommandsRead pending messages from a stream within a specificRange.- Specified by:
xpendingin interfaceRedisStreamAsyncCommands<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:
- List<Object> array-reply list with members of the resulting stream.
-
xpending
Description copied from interface:RedisStreamAsyncCommandsRead pending messages from a stream within a specificXPendingArgs.- Specified by:
xpendingin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.- Returns:
- List<Object> array-reply list with members of the resulting stream.
-
xrange
Description copied from interface:RedisStreamAsyncCommandsRead messages from a stream within a specificRange.- Specified by:
xrangein interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.range- must not benull.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xrange
Description copied from interface:RedisStreamAsyncCommands- Specified by:
xrangein interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.range- must not benull.limit- must not benull.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xread
Description copied from interface:RedisStreamAsyncCommandsRead messages from one or moreXReadArgs.StreamOffsets.- Specified by:
xreadin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
streams- the streams to read from.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xread
public RedisFuture<List<StreamMessage<K,V>>> xread(XReadArgs args, XReadArgs.StreamOffset<K>... streams)Description copied from interface:RedisStreamAsyncCommandsRead messages from one or moreXReadArgs.StreamOffsets.- Specified by:
xreadin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
args- read arguments.streams- the streams to read from.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xreadgroup
public RedisFuture<List<StreamMessage<K,V>>> xreadgroup(Consumer<K> consumer, XReadArgs.StreamOffset<K>... streams)Description copied from interface:RedisStreamAsyncCommandsRead messages from one or moreXReadArgs.StreamOffsets using a consumer group.- Specified by:
xreadgroupin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
consumer- consumer/group.streams- the streams to read from.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xreadgroup
public RedisFuture<List<StreamMessage<K,V>>> xreadgroup(Consumer<K> consumer, XReadArgs args, XReadArgs.StreamOffset<K>... streams)Description copied from interface:RedisStreamAsyncCommandsRead messages from one or moreXReadArgs.StreamOffsets using a consumer group.- Specified by:
xreadgroupin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
consumer- consumer/group.args- read arguments.streams- the streams to read from.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xrevrange
Description copied from interface:RedisStreamAsyncCommandsRead messages from a stream within a specificRangein reverse order.- Specified by:
xrevrangein interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.range- must not benull.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xrevrange
Description copied from interface:RedisStreamAsyncCommands- Specified by:
xrevrangein interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.range- must not benull.limit- must not benull.- Returns:
- List<StreamMessage> array-reply list with members of the resulting stream.
-
xtrim
Description copied from interface:RedisStreamAsyncCommandsTrims the stream tocountelements.- Specified by:
xtrimin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.count- length of the stream.- Returns:
- simple-reply number of removed entries.
-
xtrim
Description copied from interface:RedisStreamAsyncCommandsTrims the stream tocountelements.- Specified by:
xtrimin interfaceRedisStreamAsyncCommands<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:RedisStreamAsyncCommandsTrims the stream within a specificXTrimArgs.- Specified by:
xtrimin interfaceRedisStreamAsyncCommands<K,V>- Parameters:
key- the stream key.- Returns:
- simple-reply number of removed entries.
-
bzpopmin
Description copied from interface:RedisSortedSetAsyncCommandsRemoves and returns a member with the lowest scores in the sorted set stored at one of the keys.- Specified by:
bzpopminin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemoves and returns a member with the highest scores in the sorted set stored at one of the keys.- Specified by:
bzpopmaxin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd one or more members to a sorted set, or update its score if it already exists.- Specified by:
zaddin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd 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 interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd 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 interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsGet the number of members in a sorted set.- Specified by:
zcardin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsCount the members in a sorted set with scores within the given values.- Specified by:
zcountin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsCount the members in a sorted set with scores within the given values.- Specified by:
zcountin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsCount the members in a sorted set with scores within the givenRange.- Specified by:
zcountin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsComputes the difference between the first and all successive input sorted sets.- Specified by:
zdiffin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- List<V> array-reply list of elements.
-
zdiffstore
Description copied from interface:RedisSortedSetAsyncCommandsComputes the difference between the first and all successive input sorted sets and stores the result in destination.- Specified by:
zdiffstorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsComputes the difference between the first and all successive input sorted sets.- Specified by:
zdiffWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- List<V> array-reply list of scored values.
-
zincrby
Description copied from interface:RedisSortedSetAsyncCommandsIncrement the score of a member in a sorted set.- Specified by:
zincrbyin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- List<V> array-reply list of elements.
-
zinter
Description copied from interface:RedisSortedSetAsyncCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- List<V> array-reply list of elements.
-
zinterWithScores
Description copied from interface:RedisSortedSetAsyncCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- List<V> array-reply list of scored values.
-
zinterWithScores
Description copied from interface:RedisSortedSetAsyncCommandsIntersect multiple sorted sets and returns the resulting sorted.- Specified by:
zinterWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- List<V> array-reply list of scored values.
-
zinterstore
Description copied from interface:RedisSortedSetAsyncCommandsIntersect multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zinterstorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsIntersect multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zinterstorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsCount the number of members in a sorted set between a given lexicographical range.- Specified by:
zlexcountin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsCount the number of members in a sorted set between a given lexicographical range.- Specified by:
zlexcountin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsReturns the scores associated with the specified members in the sorted set stored at key.- Specified by:
zmscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.members- the member type: value.- Returns:
- List<Double> array-reply list of scores or nil associated with the specified member values.
-
zpopmin
Description copied from interface:RedisSortedSetAsyncCommandsRemoves and returns up to count members with the lowest scores in the sorted set stored at key.- Specified by:
zpopminin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- ScoredValue<V> the removed element.
-
zpopmin
Description copied from interface:RedisSortedSetAsyncCommandsRemoves and returns up to count members with the lowest scores in the sorted set stored at key.- Specified by:
zpopminin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
- List<ScoredValue<V>> array-reply list of popped scores and elements.
-
zpopmax
Description copied from interface:RedisSortedSetAsyncCommandsRemoves and returns up to count members with the highest scores in the sorted set stored at key.- Specified by:
zpopmaxin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- ScoredValue<V> the removed element.
-
zpopmax
Description copied from interface:RedisSortedSetAsyncCommandsRemoves and returns up to count members with the highest scores in the sorted set stored at key.- Specified by:
zpopmaxin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.count- the number of elements to return.- Returns:
- List<ScoredValue<V>> array-reply list of popped scores and elements.
-
zrandmember
Description copied from interface:RedisSortedSetAsyncCommandsReturn a random member from the sorted set stored atkey.- Specified by:
zrandmemberin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- element.
-
zrandmember
Description copied from interface:RedisSortedSetAsyncCommandsReturncountrandom members from the sorted set stored atkey.- Specified by:
zrandmemberin interfaceRedisSortedSetAsyncCommands<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:
- List<ScoredValue<V>> array-reply list of scores and elements.
-
zrandmemberWithScores
Description copied from interface:RedisSortedSetAsyncCommandsReturn a random member along its value from the sorted set stored atkey.- Specified by:
zrandmemberWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- the score and element.
-
zrandmemberWithScores
Description copied from interface:RedisSortedSetAsyncCommandsReturncountrandom members along their value from the sorted set stored atkey.- Specified by:
zrandmemberWithScoresin interfaceRedisSortedSetAsyncCommands<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:
- List<ScoredValue<V>> array-reply list of scores and elements.
-
zrange
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by index.- Specified by:
zrangein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrange
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by index.- Specified by:
zrangein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by index.- Specified by:
zrangeWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangeWithScores
public RedisFuture<Long> zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by index.- Specified by:
zrangeWithScoresin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangebylex
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by lexicographical range.- Specified by:
zrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
public RedisFuture<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score.- Specified by:
zrangebyscorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.min- min score.max- max score.offset- the offset.count- the count.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with score in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
public RedisFuture<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score.- Specified by:
zrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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
public RedisFuture<Long> zrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsGet the specified range of elements in the sorted set stored atsrcKeyand stores the result in thedstKeydestination key.- Specified by:
zrangestorebylexin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsGet the specified range of elements in the sorted set stored atsrcKeyand stores the result in thedstKeydestination key.- Specified by:
zrangestorebyscorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsDetermine the index of a member in a sorted set.- Specified by:
zrankin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemove one or more members from a sorted set.- Specified by:
zremin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemove all members in a sorted set between the given lexicographical range.- Specified by:
zremrangebylexin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemove all members in a sorted set between the given lexicographical range.- Specified by:
zremrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyrank
Description copied from interface:RedisSortedSetAsyncCommandsRemove all members in a sorted set within the given indexes.- Specified by:
zremrangebyrankin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemove all members in a sorted set within the given scores.- Specified by:
zremrangebyscorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemove all members in a sorted set within the given scores.- Specified by:
zremrangebyscorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsRemove all members in a sorted set within the given scores.- Specified by:
zremrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- Long integer-reply the number of elements removed.
-
zrevrange
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrevrange
Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangeWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.start- the start.stop- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrevrangeWithScores
public RedisFuture<Long> zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by index, with scores ordered from high to low.- Specified by:
zrevrangeWithScoresin interfaceRedisSortedSetAsyncCommands<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.
-
zrevrangestorebylex
public RedisFuture<Long> zrevrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsGet 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 interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsGet 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 interfaceRedisSortedSetAsyncCommands<K,V>
-
zrevrangebylex
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by lexicographical range ordered from high to low.- Specified by:
zrevrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebylex
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by lexicographical range ordered from high to low.- Specified by:
zrevrangebylexin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
public RedisFuture<List<V>> zrevrangebyscore(K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the withscores.count- the null.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
public RedisFuture<List<V>> zrevrangebyscore(K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the offset.count- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.limit- the limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
public RedisFuture<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the offset.count- the count.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.max- max score.min- min score.offset- the offset.count- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public RedisFuture<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsReturn a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.range- the range.limit- limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
public RedisFuture<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)Description copied from interface:RedisSortedSetAsyncCommandsStream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Specified by:
zrevrangebyscoreWithScoresin interfaceRedisSortedSetAsyncCommands<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.
-
zrevrank
Description copied from interface:RedisSortedSetAsyncCommandsDetermine the index of a member in a sorted set, with scores ordered from high to low.- Specified by:
zrevrankin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Description copied from interface:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
key- the key.scanArgs- scan arguments.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
public RedisFuture<ScoredValueScanCursor<V>> zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
channel- streaming channel that receives a call for every scored value.key- the key.- Returns:
- StreamScanCursor scan cursor.
-
zscan
public RedisFuture<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)Description copied from interface:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)Description copied from interface:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<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 RedisFuture<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)Description copied from interface:RedisSortedSetAsyncCommandsIncrementally iterate sorted sets elements and associated scores.- Specified by:
zscanin interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsGet the score associated with the given member in a sorted set.- Specified by:
zscorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- List<V> array-reply list of elements.
-
zunion
Description copied from interface:RedisSortedSetAsyncCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- List<V> array-reply list of elements.
-
zunionWithScores
Description copied from interface:RedisSortedSetAsyncCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
keys- the keys.- Returns:
- List<V> array-reply list of scored values.
-
zunionWithScores
Description copied from interface:RedisSortedSetAsyncCommandsAdd multiple sorted sets and returns the resulting sorted set.- Specified by:
zunionWithScoresin interfaceRedisSortedSetAsyncCommands<K,V>- Parameters:
aggregateArgs- arguments to define aggregation and weights.keys- the keys.- Returns:
- List<V> array-reply list of scored values.
-
zunionstore
Description copied from interface:RedisSortedSetAsyncCommandsAdd multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zunionstorein interfaceRedisSortedSetAsyncCommands<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:RedisSortedSetAsyncCommandsAdd multiple sorted sets and store the resulting sorted set in a new key.- Specified by:
zunionstorein interfaceRedisSortedSetAsyncCommands<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.
-