Package glide.api

Class BaseClient

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void __enqueuePubSubMessage​(PubSubMessage message)
      Internal method for enqueueing PubSub messages from native callback.
      java.util.concurrent.CompletableFuture<java.lang.String[]> aclCat()  
      java.util.concurrent.CompletableFuture<java.lang.String[]> aclCat​(java.lang.String category)  
      java.util.concurrent.CompletableFuture<java.lang.Long> aclDelUser​(java.lang.String[] usernames)  
      java.util.concurrent.CompletableFuture<java.lang.String> aclDryRun​(java.lang.String username, java.lang.String command, java.lang.String[] args)  
      java.util.concurrent.CompletableFuture<java.lang.String> aclGenPass()  
      java.util.concurrent.CompletableFuture<java.lang.String> aclGenPass​(int bits)  
      java.util.concurrent.CompletableFuture<java.lang.Object> aclGetUser​(java.lang.String username)  
      java.util.concurrent.CompletableFuture<java.lang.String[]> aclList()  
      java.util.concurrent.CompletableFuture<java.lang.String> aclLoad()  
      java.util.concurrent.CompletableFuture<java.lang.Object[]> aclLog()  
      java.util.concurrent.CompletableFuture<java.lang.Object[]> aclLog​(int count)  
      java.util.concurrent.CompletableFuture<java.lang.String> aclSave()  
      java.util.concurrent.CompletableFuture<java.lang.String> aclSetUser​(java.lang.String username, java.lang.String[] rules)  
      java.util.concurrent.CompletableFuture<java.lang.String[]> aclUsers()  
      java.util.concurrent.CompletableFuture<java.lang.String> aclWhoami()  
      java.util.concurrent.CompletableFuture<java.lang.Long> append​(@NonNull GlideString key, @NonNull GlideString value)
      Appends a value to a key.
      java.util.concurrent.CompletableFuture<java.lang.Long> append​(@NonNull java.lang.String key, @NonNull java.lang.String value)
      Appends a value to a key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull GlideString key)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull GlideString key, long start)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull GlideString key, long start, long end)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull GlideString key, long start, long end, @NonNull BitmapIndexType options)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull java.lang.String key)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull java.lang.String key, long start)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull java.lang.String key, long start, long end)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull java.lang.String key, long start, long end, @NonNull BitmapIndexType options)
      Counts the number of set bits (population counting) in a string stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> bitfield​(@NonNull GlideString key, @NonNull BitFieldOptions.BitFieldSubCommands[] subCommands)
      Reads or modifies the array of bits representing the string that is held at key based on the specified subCommands.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> bitfield​(@NonNull java.lang.String key, @NonNull BitFieldOptions.BitFieldSubCommands[] subCommands)
      Reads or modifies the array of bits representing the string that is held at key based on the specified subCommands.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> bitfieldReadOnly​(@NonNull GlideString key, @NonNull BitFieldOptions.BitFieldReadOnlySubCommands[] subCommands)
      Reads the array of bits representing the string that is held at key based on the specified subCommands.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> bitfieldReadOnly​(@NonNull java.lang.String key, @NonNull BitFieldOptions.BitFieldReadOnlySubCommands[] subCommands)
      Reads the array of bits representing the string that is held at key based on the specified subCommands.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitop​(@NonNull BitwiseOperation bitwiseOperation, @NonNull GlideString destination, @NonNull GlideString[] keys)
      Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitop​(@NonNull BitwiseOperation bitwiseOperation, @NonNull java.lang.String destination, @NonNull java.lang.String[] keys)
      Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull GlideString key, long bit)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull GlideString key, long bit, long start)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull GlideString key, long bit, long start, long end)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull GlideString key, long bit, long start, long end, @NonNull BitmapIndexType options)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull java.lang.String key, long bit)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull java.lang.String key, long bit, long start)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull java.lang.String key, long bit, long start, long end)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull java.lang.String key, long bit, long start, long end, @NonNull BitmapIndexType options)
      Returns the position of the first bit matching the given bit value.
      java.util.concurrent.CompletableFuture<GlideString> blmove​(@NonNull GlideString source, @NonNull GlideString destination, @NonNull ListDirection wherefrom, @NonNull ListDirection whereto, double timeout)
      Blocks the connection until it pops atomically and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
      BLMove is the blocking variant of ListBaseCommands.lmove(String, String, ListDirection, ListDirection).
      java.util.concurrent.CompletableFuture<java.lang.String> blmove​(@NonNull java.lang.String source, @NonNull java.lang.String destination, @NonNull ListDirection wherefrom, @NonNull ListDirection whereto, double timeout)
      Blocks the connection until it pops atomically and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
      BLMove is the blocking variant of ListBaseCommands.lmove(String, String, ListDirection, ListDirection).
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> blmpop​(@NonNull GlideString[] keys, @NonNull ListDirection direction, double timeout)
      Blocks the connection until it pops one element from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection).
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> blmpop​(@NonNull GlideString[] keys, @NonNull ListDirection direction, long count, double timeout)
      Blocks the connection until it pops one or more elements from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection, long).
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> blmpop​(@NonNull java.lang.String[] keys, @NonNull ListDirection direction, double timeout)
      Blocks the connection until it pops one element from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection).
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> blmpop​(@NonNull java.lang.String[] keys, @NonNull ListDirection direction, long count, double timeout)
      Blocks the connection until it pops one or more elements from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection, long).
      java.util.concurrent.CompletableFuture<GlideString[]> blpop​(@NonNull GlideString[] keys, double timeout)
      Pops an element from the head of the first list that is non-empty, with the given keys being checked in the order that they are given.
      Blocks the connection when there are no elements to pop from any of the given lists.
      java.util.concurrent.CompletableFuture<java.lang.String[]> blpop​(@NonNull java.lang.String[] keys, double timeout)
      Pops an element from the head of the first list that is non-empty, with the given keys being checked in the order that they are given.
      Blocks the connection when there are no elements to pop from any of the given lists.
      java.util.concurrent.CompletableFuture<GlideString[]> brpop​(@NonNull GlideString[] keys, double timeout)
      Pops an element from the tail of the first list that is non-empty, with the given keys being checked in the order that they are given.
      Blocks the connection when there are no elements to pop from any of the given lists.
      java.util.concurrent.CompletableFuture<java.lang.String[]> brpop​(@NonNull java.lang.String[] keys, double timeout)
      Pops an element from the tail of the first list that is non-empty, with the given keys being checked in the order that they are given.
      Blocks the connection when there are no elements to pop from any of the given lists.
      protected static CommandManager buildCommandManager​(ConnectionManager connectionManager)
      Build CommandManager for native client
      protected static ConnectionManager buildConnectionManager()
      Build ConnectionManager for native client
      protected static MessageHandler buildMessageHandler​(BaseClientConfiguration config)
      Build MessageHandler for native client
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> bzmpop​(@NonNull GlideString[] keys, @NonNull ScoreFilter modifier, double timeout)
      Blocks the connection until it pops and returns a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter).
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> bzmpop​(@NonNull GlideString[] keys, @NonNull ScoreFilter modifier, double timeout, long count)
      Blocks the connection until it pops and returns multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter, long).
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> bzmpop​(@NonNull java.lang.String[] keys, @NonNull ScoreFilter modifier, double timeout)
      Blocks the connection until it pops and returns a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter).
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> bzmpop​(@NonNull java.lang.String[] keys, @NonNull ScoreFilter modifier, double timeout, long count)
      Blocks the connection until it pops and returns multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter, long).
      java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmax​(@NonNull GlideString[] keys, double timeout)
      Blocks the connection until it removes and returns a member with the highest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZPOPMAX is the blocking variant of SortedSetBaseCommands.zpopmax(String).
      java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmax​(@NonNull java.lang.String[] keys, double timeout)
      Blocks the connection until it removes and returns a member with the highest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZPOPMAX is the blocking variant of SortedSetBaseCommands.zpopmax(String).
      java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmin​(@NonNull GlideString[] keys, double timeout)
      Blocks the connection until it removes and returns a member with the lowest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZPOPMIN is the blocking variant of SortedSetBaseCommands.zpopmin(String).
      java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmin​(@NonNull java.lang.String[] keys, double timeout)
      Blocks the connection until it removes and returns a member with the lowest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      BZPOPMIN is the blocking variant of SortedSetBaseCommands.zpopmin(String).
      void close()
      Closes this resource, relinquishing any underlying resources.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull GlideString source, @NonNull GlideString destination)
      Copies the value stored at the source to the destination key if the destination key does not yet exist.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull GlideString source, @NonNull GlideString destination, boolean replace)
      Copies the value stored at the source to the destination key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull GlideString source, @NonNull GlideString destination, long destinationDB)
      Copies the value stored at the source to the destination key on destinationDB.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull GlideString source, @NonNull GlideString destination, long destinationDB, boolean replace)
      Copies the value stored at the source to the destination key on destinationDB.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull java.lang.String source, @NonNull java.lang.String destination)
      Copies the value stored at the source to the destination key if the destination key does not yet exist.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull java.lang.String source, @NonNull java.lang.String destination, boolean replace)
      Copies the value stored at the source to the destination key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull java.lang.String source, @NonNull java.lang.String destination, long destinationDB)
      Copies the value stored at the source to the destination key on destinationDB.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull java.lang.String source, @NonNull java.lang.String destination, long destinationDB, boolean replace)
      Copies the value stored at the source to the destination key on destinationDB.
      protected static <T extends BaseClient>
      java.util.concurrent.CompletableFuture<T>
      createClient​(@NonNull BaseClientConfiguration config, java.util.function.Function<BaseClient.ClientBuilder,​T> constructor)
      Create native client
      java.util.concurrent.CompletableFuture<java.lang.Long> decr​(@NonNull GlideString key)
      Decrements the number stored at key by one.
      java.util.concurrent.CompletableFuture<java.lang.Long> decr​(@NonNull java.lang.String key)
      Decrements the number stored at key by one.
      java.util.concurrent.CompletableFuture<java.lang.Long> decrBy​(@NonNull GlideString key, long amount)
      Decrements the number stored at key by amount.
      java.util.concurrent.CompletableFuture<java.lang.Long> decrBy​(@NonNull java.lang.String key, long amount)
      Decrements the number stored at key by amount.
      java.util.concurrent.CompletableFuture<java.lang.Long> del​(@NonNull GlideString[] keys)
      Removes the specified keys from the database.
      java.util.concurrent.CompletableFuture<java.lang.Long> del​(@NonNull java.lang.String[] keys)
      Removes the specified keys from the database.
      java.util.concurrent.CompletableFuture<byte[]> dump​(@NonNull GlideString key)
      Serialize the value stored at key in a Valkey-specific format and return it to the user.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull GlideString script)
      Executes a read-only Lua script.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull GlideString script, @NonNull GlideString[] keys, @NonNull GlideString[] args)
      Executes a read-only Lua script with keys and arguments.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull java.lang.String script)
      Executes a read-only Lua script.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull java.lang.String script, @NonNull java.lang.String[] keys, @NonNull java.lang.String[] args)
      Executes a read-only Lua script with keys and arguments.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull GlideString sha1)
      Executes a read-only Lua script by its SHA1 digest.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull GlideString sha1, @NonNull GlideString[] keys, @NonNull GlideString[] args)
      Executes a read-only Lua script by its SHA1 digest with keys and arguments.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull java.lang.String sha1)
      Executes a read-only Lua script by its SHA1 digest.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull java.lang.String sha1, @NonNull java.lang.String[] keys, @NonNull java.lang.String[] args)
      Executes a read-only Lua script by its SHA1 digest with keys and arguments.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Long> exists​(@NonNull GlideString[] keys)
      Returns the number of keys in keys that exist in the database.
      java.util.concurrent.CompletableFuture<java.lang.Long> exists​(@NonNull java.lang.String[] keys)
      Returns the number of keys in keys that exist in the database.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull GlideString key, long seconds)
      Sets a timeout on key in seconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull GlideString key, long seconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key in seconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull java.lang.String key, long seconds)
      Sets a timeout on key in seconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull java.lang.String key, long seconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key in seconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull GlideString key, long unixSeconds)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull GlideString key, long unixSeconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull java.lang.String key, long unixSeconds)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull java.lang.String key, long unixSeconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Long> expiretime​(@NonNull GlideString key)
      Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in seconds.
      To get the expiration with millisecond precision, use GenericBaseCommands.pexpiretime(String).
      java.util.concurrent.CompletableFuture<java.lang.Long> expiretime​(@NonNull java.lang.String key)
      Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in seconds.
      To get the expiration with millisecond precision, use GenericBaseCommands.pexpiretime(String).
      java.util.concurrent.CompletableFuture<java.lang.Object> fcall​(@NonNull GlideString function, @NonNull GlideString[] keys, @NonNull GlideString[] arguments)
      Invokes a previously loaded function.
      This command is routed to primary nodes only.
      To route to a replica please refer to ScriptingAndFunctionsBaseCommands.fcallReadOnly(java.lang.String, java.lang.String[], java.lang.String[]).
      java.util.concurrent.CompletableFuture<java.lang.Object> fcall​(@NonNull java.lang.String function, @NonNull java.lang.String[] keys, @NonNull java.lang.String[] arguments)
      Invokes a previously loaded function.
      This command is routed to primary nodes only.
      To route to a replica please refer to ScriptingAndFunctionsBaseCommands.fcallReadOnly(java.lang.String, java.lang.String[], java.lang.String[]).
      java.util.concurrent.CompletableFuture<java.lang.Object> fcallReadOnly​(@NonNull GlideString function, @NonNull GlideString[] keys, @NonNull GlideString[] arguments)
      Invokes a previously loaded read-only function.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Object> fcallReadOnly​(@NonNull java.lang.String function, @NonNull java.lang.String[] keys, @NonNull java.lang.String[] arguments)
      Invokes a previously loaded read-only function.
      This command is routed depending on the client's ReadFrom strategy.
      java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​GeospatialData> membersToGeospatialData)
      Adds geospatial members with their positions to the specified sorted set stored at key .
      If a member is already a part of the sorted set, its position is updated.
      To perform a geoadd operation while specifying optional parameters, use GeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions).
      java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​GeospatialData> membersToGeospatialData, @NonNull GeoAddOptions options)
      Adds geospatial members with their positions to the specified sorted set stored at key .
      If a member is already a part of the sorted set, its position is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​GeospatialData> membersToGeospatialData)
      Adds geospatial members with their positions to the specified sorted set stored at key .
      If a member is already a part of the sorted set, its position is updated.
      To perform a geoadd operation while specifying optional parameters, use GeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions).
      java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​GeospatialData> membersToGeospatialData, @NonNull GeoAddOptions options)
      Adds geospatial members with their positions to the specified sorted set stored at key .
      If a member is already a part of the sorted set, its position is updated.
      java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull GlideString key, @NonNull GlideString member1, @NonNull GlideString member2)
      Returns the distance between member1 and member2 saved in the geospatial index stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull GlideString key, @NonNull GlideString member1, @NonNull GlideString member2, @NonNull GeoUnit geoUnit)
      Returns the distance between member1 and member2 saved in the geospatial index stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull java.lang.String key, @NonNull java.lang.String member1, @NonNull java.lang.String member2)
      Returns the distance between member1 and member2 saved in the geospatial index stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull java.lang.String key, @NonNull java.lang.String member1, @NonNull java.lang.String member2, @NonNull GeoUnit geoUnit)
      Returns the distance between member1 and member2 saved in the geospatial index stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> geohash​(@NonNull GlideString key, @NonNull GlideString[] members)
      Returns the GeoHash strings representing the positions of all the specified members in the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> geohash​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Returns the GeoHash strings representing the positions of all the specified members in the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Double[][]> geopos​(@NonNull GlideString key, @NonNull GlideString[] members)
      Returns the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
      java.util.concurrent.CompletableFuture<java.lang.Double[][]> geopos​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Returns the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
      java.util.concurrent.CompletableFuture<GlideString[]> geosearch​(@NonNull GlideString key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> geosearch​(@NonNull GlideString key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchOptions options)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> geosearch​(@NonNull GlideString key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchOptions options, @NonNull GeoSearchResultOptions resultOptions)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<GlideString[]> geosearch​(@NonNull GlideString key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchResultOptions resultOptions)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.String[]> geosearch​(@NonNull java.lang.String key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> geosearch​(@NonNull java.lang.String key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchOptions options)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> geosearch​(@NonNull java.lang.String key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchOptions options, @NonNull GeoSearchResultOptions resultOptions)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.String[]> geosearch​(@NonNull java.lang.String key, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchResultOptions resultOptions)
      Returns the members of a sorted set populated with geospatial information using GeospatialIndicesBaseCommands.geoadd(String, Map), which are within the borders of the area specified by a given shape.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull GlideString destination, @NonNull GlideString source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull GlideString destination, @NonNull GlideString source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchResultOptions resultOptions)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull GlideString destination, @NonNull GlideString source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchStoreOptions options)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull GlideString destination, @NonNull GlideString source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchStoreOptions options, @NonNull GeoSearchResultOptions resultOptions)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull java.lang.String destination, @NonNull java.lang.String source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull java.lang.String destination, @NonNull java.lang.String source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchResultOptions resultOptions)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull java.lang.String destination, @NonNull java.lang.String source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchStoreOptions options)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> geosearchstore​(@NonNull java.lang.String destination, @NonNull java.lang.String source, GeoSearchOrigin.SearchOrigin searchFrom, @NonNull GeoSearchShape searchBy, @NonNull GeoSearchStoreOptions options, @NonNull GeoSearchResultOptions resultOptions)
      Searches for members in a sorted set stored at source representing geospatial data within a circular or rectangular area and stores the result in destination.
      java.util.concurrent.CompletableFuture<GlideString> get​(@NonNull GlideString key)
      Gets the value associated with the given key, or null if no such key exists.
      java.util.concurrent.CompletableFuture<java.lang.String> get​(@NonNull java.lang.String key)
      Gets the value associated with the given key, or null if no such key exists.
      java.util.concurrent.CompletableFuture<java.lang.Long> getbit​(@NonNull GlideString key, long offset)
      Returns the bit value at offset in the string value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> getbit​(@NonNull java.lang.String key, long offset)
      Returns the bit value at offset in the string value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> getCacheEntryCount()
      Get the current number of entries in the cache.
      java.util.concurrent.CompletableFuture<java.lang.Long> getCacheEvictions()
      Get the total number of cache evictions.
      java.util.concurrent.CompletableFuture<java.lang.Long> getCacheExpirations()
      Get the total number of cache expirations.
      java.util.concurrent.CompletableFuture<java.lang.Double> getCacheHitRate()
      Get the cache hit rate metric.
      java.util.concurrent.CompletableFuture<java.lang.Double> getCacheMissRate()
      Get the cache miss rate metric.
      java.util.concurrent.CompletableFuture<java.lang.Long> getCacheTotalLookups()
      Get the total number of cache lookups (hits + misses).
      java.lang.String getClientInfo()
      Get client information from the native layer.
      java.util.concurrent.CompletableFuture<GlideString> getdel​(@NonNull GlideString key)
      Gets a string value associated with the given key and deletes the key.
      java.util.concurrent.CompletableFuture<java.lang.String> getdel​(@NonNull java.lang.String key)
      Gets a string value associated with the given key and deletes the key.
      java.util.concurrent.CompletableFuture<GlideString> getex​(@NonNull GlideString key)
      Gets the value associated with the given key.
      java.util.concurrent.CompletableFuture<GlideString> getex​(@NonNull GlideString key, @NonNull GetExOptions options)
      Gets the value associated with the given key.
      java.util.concurrent.CompletableFuture<java.lang.String> getex​(@NonNull java.lang.String key)
      Gets the value associated with the given key.
      java.util.concurrent.CompletableFuture<java.lang.String> getex​(@NonNull java.lang.String key, @NonNull GetExOptions options)
      Gets the value associated with the given key.
      java.util.concurrent.CompletableFuture<PubSubMessage> getPubSubMessage()
      Returns a promise for a next pubsub message.
      Message gets unrecoverable lost if future is cancelled or reference to this future is lost.
      java.util.concurrent.CompletableFuture<GlideString> getrange​(@NonNull GlideString key, int start, int end)
      Returns the subGlideString of the GlideString value stored at key, determined by the offsets start and end (both are inclusive).
      java.util.concurrent.CompletableFuture<java.lang.String> getrange​(@NonNull java.lang.String key, int start, int end)
      Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive).
      java.util.Map<java.lang.String,​java.lang.String> getStatistics()
      Return a statistics
      protected java.lang.Object[] handleArrayOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.lang.Object[] handleArrayOrNullResponseBinary​(ResponseOuterClass.Response response)  
      protected java.lang.Object[] handleArrayResponse​(ResponseOuterClass.Response response)  
      protected java.lang.Object[] handleArrayResponseBinary​(ResponseOuterClass.Response response)  
      protected java.lang.Object handleBinaryObjectOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.util.Map<java.lang.String,​GlideString[]> handleBinaryStringMapOfArraysResponse​(ResponseOuterClass.Response response)  
      protected <V> java.util.Map<GlideString,​V> handleBinaryStringMapOrNullResponse​(ResponseOuterClass.Response response)  
      protected <V> java.util.Map<GlideString,​V> handleBinaryStringMapResponse​(ResponseOuterClass.Response response)
      Get a map and convert Map keys from byte[] to String.
      protected java.lang.Boolean handleBooleanResponse​(ResponseOuterClass.Response response)  
      protected byte[] handleBytesOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.lang.Double handleDoubleOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.lang.Double handleDoubleResponse​(ResponseOuterClass.Response response)  
      protected java.util.Map<java.lang.String,​java.lang.Object>[] handleFunctionListResponse​(java.lang.Object[] response)
      Process a FUNCTION LIST standalone response.
      protected java.util.Map<GlideString,​java.lang.Object>[] handleFunctionListResponseBinary​(java.lang.Object[] response)
      Process a FUNCTION LIST standalone response.
      protected java.util.Map<GlideString,​java.util.Map<GlideString,​java.lang.Object>> handleFunctionStatsBinaryResponse​(java.util.Map<GlideString,​java.util.Map<GlideString,​java.lang.Object>> response)
      Process a FUNCTION STATS response from one node.
      protected ClusterValue<java.util.Map<GlideString,​java.util.Map<GlideString,​java.lang.Object>>> handleFunctionStatsBinaryResponse​(ResponseOuterClass.Response response, boolean isSingleValue)
      Process a FUNCTION STATS cluster response.
      protected java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> handleFunctionStatsResponse​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> response)
      Process a FUNCTION STATS response from one node.
      protected ClusterValue<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>>> handleFunctionStatsResponse​(ResponseOuterClass.Response response, boolean isSingleValue)
      Process a FUNCTION STATS cluster response.
      protected GlideString handleGlideStringOrNullResponse​(ResponseOuterClass.Response response)  
      protected GlideString handleGlideStringResponse​(ResponseOuterClass.Response response)  
      protected java.util.Map<java.lang.String,​java.lang.Object> handleLcsIdxResponse​(java.util.Map<java.lang.String,​java.lang.Object> response)
      Process a LCS key1 key2 IDX response
      protected java.lang.Long handleLongOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.lang.Long handleLongResponse​(ResponseOuterClass.Response response)  
      protected java.util.Map<java.lang.String,​java.lang.String[]> handleMapOfArraysResponse​(ResponseOuterClass.Response response)  
      protected <V> java.util.Map<java.lang.String,​V> handleMapOrNullResponse​(ResponseOuterClass.Response response)  
      protected <V> java.util.Map<java.lang.String,​V> handleMapResponse​(ResponseOuterClass.Response response)  
      protected java.lang.Object handleObjectOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.util.Set<GlideString> handleSetBinaryResponse​(ResponseOuterClass.Response response)  
      protected java.util.Set<java.lang.String> handleSetResponse​(ResponseOuterClass.Response response)  
      protected java.lang.String handleStringOrNullResponse​(ResponseOuterClass.Response response)  
      protected java.lang.String handleStringResponse​(ResponseOuterClass.Response response)  
      protected <T> T handleValkeyResponse​(java.lang.Class<T> classType, java.util.EnumSet<BaseClient.ResponseFlags> flags, ResponseOuterClass.Response response)
      Extracts the value from a GLIDE core response message and either throws an exception or returns the value as an object of type T.
      protected java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>> handleXReadResponse​(ResponseOuterClass.Response response)  
      protected java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>> handleXReadResponseBinary​(ResponseOuterClass.Response response)  
      java.util.concurrent.CompletableFuture<java.lang.Long> hdel​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Removes the specified fields from the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> hdel​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Removes the specified fields from the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> hexists​(@NonNull GlideString key, @NonNull GlideString field)
      Returns if field is an existing field in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> hexists​(@NonNull java.lang.String key, @NonNull java.lang.String field)
      Returns if field is an existing field in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpire​(@NonNull GlideString key, long seconds, @NonNull GlideString[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpire​(@NonNull java.lang.String key, long seconds, @NonNull java.lang.String[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpireat​(@NonNull GlideString key, long unixSeconds, @NonNull GlideString[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields, in seconds, using an absolute Unix timestamp.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpireat​(@NonNull java.lang.String key, long unixSeconds, @NonNull java.lang.String[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields, in seconds, using an absolute Unix timestamp.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpiretime​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Returns the absolute Unix timestamp (in seconds) at which the given hash fields will expire.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpiretime​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Returns the absolute Unix timestamp (in seconds) at which the given hash fields will expire.
      java.util.concurrent.CompletableFuture<GlideString> hget​(@NonNull GlideString key, @NonNull GlideString field)
      Retrieves the value associated with field in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> hget​(@NonNull java.lang.String key, @NonNull java.lang.String field)
      Retrieves the value associated with field in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString>> hgetall​(@NonNull GlideString key)
      Returns all fields and values of the hash stored at key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String>> hgetall​(@NonNull java.lang.String key)
      Returns all fields and values of the hash stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> hgetex​(@NonNull GlideString key, @NonNull GlideString[] fields, HGetExOptions options)
      Retrieves the values of specified fields from the hash stored at key and optionally sets their expiration or removes it.
      java.util.concurrent.CompletableFuture<java.lang.String[]> hgetex​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields, HGetExOptions options)
      Retrieves the values of specified fields from the hash stored at key and optionally sets their expiration or removes it.
      java.util.concurrent.CompletableFuture<java.lang.Long> hincrBy​(@NonNull GlideString key, @NonNull GlideString field, long amount)
      Increments the number stored at field in the hash stored at key by increment.
      java.util.concurrent.CompletableFuture<java.lang.Long> hincrBy​(@NonNull java.lang.String key, @NonNull java.lang.String field, long amount)
      Increments the number stored at field in the hash stored at key by increment.
      java.util.concurrent.CompletableFuture<java.lang.Double> hincrByFloat​(@NonNull GlideString key, @NonNull GlideString field, double amount)
      Increments the string representing a floating point number stored at field in the hash stored at key by increment.
      java.util.concurrent.CompletableFuture<java.lang.Double> hincrByFloat​(@NonNull java.lang.String key, @NonNull java.lang.String field, double amount)
      Increments the string representing a floating point number stored at field in the hash stored at key by increment.
      java.util.concurrent.CompletableFuture<GlideString[]> hkeys​(@NonNull GlideString key)
      Returns all field names in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> hkeys​(@NonNull java.lang.String key)
      Returns all field names in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> hlen​(@NonNull GlideString key)
      Returns the number of fields contained in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> hlen​(@NonNull java.lang.String key)
      Returns the number of fields contained in the hash stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> hmget​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Returns the values associated with the specified fields in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> hmget​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Returns the values associated with the specified fields in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpersist​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Removes the expiration time for each specified field, turning the field from volatile (a field with expiration time) to persistent (a field that will never expire as no expiration time is associated).
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpersist​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Removes the expiration time for each specified field, turning the field from volatile (a field with expiration time) to persistent (a field that will never expire as no expiration time is associated).
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpire​(@NonNull GlideString key, long milliseconds, @NonNull GlideString[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpire​(@NonNull java.lang.String key, long milliseconds, @NonNull java.lang.String[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpireat​(@NonNull GlideString key, long unixMilliseconds, @NonNull GlideString[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields, using an absolute Unix timestamp in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpireat​(@NonNull java.lang.String key, long unixMilliseconds, @NonNull java.lang.String[] fields, HashFieldExpirationConditionOptions options)
      Sets expiration time for hash fields, using an absolute Unix timestamp in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpiretime​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Returns the absolute Unix timestamp (in milliseconds) at which the given hash fields will expire.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpiretime​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Returns the absolute Unix timestamp (in milliseconds) at which the given hash fields will expire.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpttl​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Returns the remaining time to live of hash fields that have a timeout, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> hpttl​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Returns the remaining time to live of hash fields that have a timeout, in milliseconds.
      java.util.concurrent.CompletableFuture<GlideString> hrandfield​(@NonNull GlideString key)
      Returns a random field name from the hash value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> hrandfield​(@NonNull java.lang.String key)
      Returns a random field name from the hash value stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> hrandfieldWithCount​(@NonNull GlideString key, long count)
      Retrieves up to count random field names from the hash value stored at key .
      java.util.concurrent.CompletableFuture<java.lang.String[]> hrandfieldWithCount​(@NonNull java.lang.String key, long count)
      Retrieves up to count random field names from the hash value stored at key .
      java.util.concurrent.CompletableFuture<GlideString[][]> hrandfieldWithCountWithValues​(@NonNull GlideString key, long count)
      Retrieves up to count random field names along with their values from the hash value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[][]> hrandfieldWithCountWithValues​(@NonNull java.lang.String key, long count)
      Retrieves up to count random field names along with their values from the hash value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull GlideString key, @NonNull GlideString cursor)
      Iterates fields of Hash types and their associated values.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull GlideString key, @NonNull GlideString cursor, @NonNull HScanOptionsBinary hScanOptions)
      Iterates fields of Hash types and their associated values.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull java.lang.String key, @NonNull java.lang.String cursor)
      Iterates fields of Hash types and their associated values.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull java.lang.String key, @NonNull java.lang.String cursor, @NonNull HScanOptions hScanOptions)
      Iterates fields of Hash types and their associated values.
      java.util.concurrent.CompletableFuture<java.lang.Long> hset​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​GlideString> fieldValueMap)
      Sets the specified fields to their respective values in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> hset​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.String> fieldValueMap)
      Sets the specified fields to their respective values in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> hsetex​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​GlideString> fieldValueMap, HSetExOptions options)
      Sets the specified fields to their respective values in the hash stored at key with optional expiration and conditional options.
      java.util.concurrent.CompletableFuture<java.lang.Long> hsetex​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.String> fieldValueMap, HSetExOptions options)
      Sets the specified fields to their respective values in the hash stored at key with optional expiration and conditional options.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> hsetnx​(@NonNull GlideString key, @NonNull GlideString field, @NonNull GlideString value)
      Sets field in the hash stored at key to value, only if field does not yet exist.
      If key does not exist, a new key holding a hash is created.
      If field already exists, this operation has no effect.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> hsetnx​(@NonNull java.lang.String key, @NonNull java.lang.String field, @NonNull java.lang.String value)
      Sets field in the hash stored at key to value, only if field does not yet exist.
      If key does not exist, a new key holding a hash is created.
      If field already exists, this operation has no effect.
      java.util.concurrent.CompletableFuture<java.lang.Long> hstrlen​(@NonNull GlideString key, @NonNull GlideString field)
      Returns the string length of the value associated with field in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> hstrlen​(@NonNull java.lang.String key, @NonNull java.lang.String field)
      Returns the string length of the value associated with field in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> httl​(@NonNull GlideString key, @NonNull GlideString[] fields)
      Returns the remaining time to live of hash fields that have a timeout, in seconds.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> httl​(@NonNull java.lang.String key, @NonNull java.lang.String[] fields)
      Returns the remaining time to live of hash fields that have a timeout, in seconds.
      java.util.concurrent.CompletableFuture<GlideString[]> hvals​(@NonNull GlideString key)
      Returns all values in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> hvals​(@NonNull java.lang.String key)
      Returns all values in the hash stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> incr​(@NonNull GlideString key)
      Increments the number stored at key by one.
      java.util.concurrent.CompletableFuture<java.lang.Long> incr​(@NonNull java.lang.String key)
      Increments the number stored at key by one.
      java.util.concurrent.CompletableFuture<java.lang.Long> incrBy​(@NonNull GlideString key, long amount)
      Increments the number stored at key by amount.
      java.util.concurrent.CompletableFuture<java.lang.Long> incrBy​(@NonNull java.lang.String key, long amount)
      Increments the number stored at key by amount.
      java.util.concurrent.CompletableFuture<java.lang.Double> incrByFloat​(@NonNull GlideString key, double amount)
      Increments the string representing a floating point number stored at key by amount.
      java.util.concurrent.CompletableFuture<java.lang.Double> incrByFloat​(@NonNull java.lang.String key, double amount)
      Increments the string representing a floating point number stored at key by amount.
      java.util.concurrent.CompletableFuture<java.lang.Object> invokeScript​(@NonNull Script script)
      Invokes a Lua script.
      This method simplifies the process of invoking scripts on the server by using an object that represents a Lua script.
      java.util.concurrent.CompletableFuture<java.lang.Object> invokeScript​(@NonNull Script script, @NonNull ScriptOptions options)
      Invokes a Lua script with its keys and arguments.
      This method simplifies the process of invoking scripts on the server by using an object that represents a Lua script.
      java.util.concurrent.CompletableFuture<java.lang.Object> invokeScript​(@NonNull Script script, @NonNull ScriptOptionsGlideString options)
      Invokes a Lua script with its keys and arguments.
      This method simplifies the process of invoking scripts on the server by using an object that represents a Lua script.
      boolean isConnected()
      Check if the client is connected and ready for commands.
      java.util.concurrent.CompletableFuture<GlideString> lcs​(@NonNull GlideString key1, @NonNull GlideString key2)
      Returns all the longest common subsequences combined between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.lang.String> lcs​(@NonNull java.lang.String key1, @NonNull java.lang.String key2)
      Returns all the longest common subsequences combined between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull GlideString key1, @NonNull GlideString key2)
      Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull GlideString key1, @NonNull GlideString key2, long minMatchLen)
      Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull java.lang.String key1, @NonNull java.lang.String key2)
      Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull java.lang.String key1, @NonNull java.lang.String key2, long minMatchLen)
      Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull GlideString key1, @NonNull GlideString key2)
      Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull GlideString key1, @NonNull GlideString key2, long minMatchLen)
      Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull java.lang.String key1, @NonNull java.lang.String key2)
      Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull java.lang.String key1, @NonNull java.lang.String key2, long minMatchLen)
      Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.lang.Long> lcsLen​(@NonNull GlideString key1, @NonNull GlideString key2)
      Returns the total length of all the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<java.lang.Long> lcsLen​(@NonNull java.lang.String key1, @NonNull java.lang.String key2)
      Returns the total length of all the longest common subsequences between strings stored at key1 and key2.
      java.util.concurrent.CompletableFuture<GlideString> lindex​(@NonNull GlideString key, long index)
      Returns the element at index from the list stored at key.
      The index is zero-based, so 0 means the first element, 1 the second element and so on.
      java.util.concurrent.CompletableFuture<java.lang.String> lindex​(@NonNull java.lang.String key, long index)
      Returns the element at index from the list stored at key.
      The index is zero-based, so 0 means the first element, 1 the second element and so on.
      java.util.concurrent.CompletableFuture<java.lang.Long> linsert​(@NonNull GlideString key, @NonNull LInsertOptions.InsertPosition position, @NonNull GlideString pivot, @NonNull GlideString element)
      Inserts element in the list at key either before or after the pivot.
      java.util.concurrent.CompletableFuture<java.lang.Long> linsert​(@NonNull java.lang.String key, @NonNull LInsertOptions.InsertPosition position, @NonNull java.lang.String pivot, @NonNull java.lang.String element)
      Inserts element in the list at key either before or after the pivot.
      java.util.concurrent.CompletableFuture<java.lang.Long> llen​(@NonNull GlideString key)
      Returns the length of the list stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> llen​(@NonNull java.lang.String key)
      Returns the length of the list stored at key.
      java.util.concurrent.CompletableFuture<GlideString> lmove​(@NonNull GlideString source, @NonNull GlideString destination, @NonNull ListDirection wherefrom, @NonNull ListDirection whereto)
      Atomically pops and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
      java.util.concurrent.CompletableFuture<java.lang.String> lmove​(@NonNull java.lang.String source, @NonNull java.lang.String destination, @NonNull ListDirection wherefrom, @NonNull ListDirection whereto)
      Atomically pops and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> lmpop​(@NonNull GlideString[] keys, @NonNull ListDirection direction)
      Pops one element from the first non-empty list from the provided keys.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> lmpop​(@NonNull GlideString[] keys, @NonNull ListDirection direction, long count)
      Pops one or more elements from the first non-empty list from the provided keys .
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> lmpop​(@NonNull java.lang.String[] keys, @NonNull ListDirection direction)
      Pops one element from the first non-empty list from the provided keys.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> lmpop​(@NonNull java.lang.String[] keys, @NonNull ListDirection direction, long count)
      Pops one or more elements from the first non-empty list from the provided keys .
      java.util.concurrent.CompletableFuture<GlideString> lpop​(@NonNull GlideString key)
      Removes and returns the first elements of the list stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> lpop​(@NonNull java.lang.String key)
      Removes and returns the first elements of the list stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> lpopCount​(@NonNull GlideString key, long count)
      Removes and returns up to count elements of the list stored at key, depending on the list's length.
      java.util.concurrent.CompletableFuture<java.lang.String[]> lpopCount​(@NonNull java.lang.String key, long count)
      Removes and returns up to count elements of the list stored at key, depending on the list's length.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull GlideString key, @NonNull GlideString element)
      Returns the index of the first occurrence of element inside the list specified by key.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull GlideString key, @NonNull GlideString element, @NonNull LPosOptions options)
      Returns the index of an occurrence of element within a list based on the given options.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull java.lang.String key, @NonNull java.lang.String element)
      Returns the index of the first occurrence of element inside the list specified by key.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull java.lang.String key, @NonNull java.lang.String element, @NonNull LPosOptions options)
      Returns the index of an occurrence of element within a list based on the given options.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull GlideString key, @NonNull GlideString element, long count)
      Returns an array of indices of matching elements within a list.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull GlideString key, @NonNull GlideString element, long count, @NonNull LPosOptions options)
      Returns an array of indices of matching elements within a list based on the given options.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull java.lang.String key, @NonNull java.lang.String element, long count)
      Returns an array of indices of matching elements within a list.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull java.lang.String key, @NonNull java.lang.String element, long count, @NonNull LPosOptions options)
      Returns an array of indices of matching elements within a list based on the given options.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpush​(@NonNull GlideString key, @NonNull GlideString[] elements)
      Inserts all the specified values at the head of the list stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpush​(@NonNull java.lang.String key, @NonNull java.lang.String[] elements)
      Inserts all the specified values at the head of the list stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpushx​(@NonNull GlideString key, @NonNull GlideString[] elements)
      Inserts all the specified values at the head of the list stored at key, only if key exists and holds a list.
      java.util.concurrent.CompletableFuture<java.lang.Long> lpushx​(@NonNull java.lang.String key, @NonNull java.lang.String[] elements)
      Inserts all the specified values at the head of the list stored at key, only if key exists and holds a list.
      java.util.concurrent.CompletableFuture<GlideString[]> lrange​(@NonNull GlideString key, long start, long end)
      Returns the specified elements of the list stored at key.
      The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on.
      java.util.concurrent.CompletableFuture<java.lang.String[]> lrange​(@NonNull java.lang.String key, long start, long end)
      Returns the specified elements of the list stored at key.
      The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on.
      java.util.concurrent.CompletableFuture<java.lang.Long> lrem​(@NonNull GlideString key, long count, @NonNull GlideString element)
      Removes the first count occurrences of elements equal to element from the list stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> lrem​(@NonNull java.lang.String key, long count, @NonNull java.lang.String element)
      Removes the first count occurrences of elements equal to element from the list stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> lset​(@NonNull GlideString key, long index, @NonNull GlideString element)
      Sets the list element at index to element.
      The index is zero-based, so 0 means the first element, 1 the second element and so on.
      java.util.concurrent.CompletableFuture<java.lang.String> lset​(@NonNull java.lang.String key, long index, @NonNull java.lang.String element)
      Sets the list element at index to element.
      The index is zero-based, so 0 means the first element, 1 the second element and so on.
      java.util.concurrent.CompletableFuture<java.lang.String> ltrim​(@NonNull GlideString key, long start, long end)
      Trims an existing list so that it will contain only the specified range of elements specified.
      java.util.concurrent.CompletableFuture<java.lang.String> ltrim​(@NonNull java.lang.String key, long start, long end)
      Trims an existing list so that it will contain only the specified range of elements specified.
      java.util.concurrent.CompletableFuture<GlideString[]> mget​(@NonNull GlideString[] keys)
      Retrieves the values of multiple keys.
      java.util.concurrent.CompletableFuture<java.lang.String[]> mget​(@NonNull java.lang.String[] keys)
      Retrieves the values of multiple keys.
      java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost, long destinationPort, GlideString key, long destinationDB, long timeout)
      Atomically transfers a key from a source Valkey instance to a destination Valkey instance.
      java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost, long destinationPort, GlideString key, long destinationDB, long timeout, MigrateOptions migrateOptions)
      Atomically transfers a key from a source Valkey instance to a destination Valkey instance.
      java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost, long destinationPort, java.lang.String key, long destinationDB, long timeout)
      Atomically transfers a key from a source Valkey instance to a destination Valkey instance.
      java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost, long destinationPort, java.lang.String key, long destinationDB, long timeout, MigrateOptions migrateOptions)
      Atomically transfers a key from a source Valkey instance to a destination Valkey instance.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> move​(@NonNull GlideString key, long dbIndex)
      Move key from the currently selected database to the database specified by dbIndex.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> move​(@NonNull java.lang.String key, long dbIndex)
      Move key from the currently selected database to the database specified by dbIndex.
      java.util.concurrent.CompletableFuture<java.lang.String> mset​(@NonNull java.util.Map<java.lang.String,​java.lang.String> keyValueMap)
      Sets multiple keys to multiple values in a single operation.
      java.util.concurrent.CompletableFuture<java.lang.String> msetBinary​(@NonNull java.util.Map<GlideString,​GlideString> keyValueMap)
      Sets multiple keys to multiple values in a single operation.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> msetnx​(@NonNull java.util.Map<java.lang.String,​java.lang.String> keyValueMap)
      Sets multiple keys to values if the key does not exist.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> msetnxBinary​(@NonNull java.util.Map<GlideString,​GlideString> keyValueMap)
      Sets multiple keys to values if the key does not exist.
      java.util.concurrent.CompletableFuture<java.lang.String> objectEncoding​(@NonNull GlideString key)
      Returns the internal encoding for the Valkey object stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> objectEncoding​(@NonNull java.lang.String key)
      Returns the internal encoding for the Valkey object stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> objectFreq​(@NonNull GlideString key)
      Returns the logarithmic access frequency counter of a Valkey object stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> objectFreq​(@NonNull java.lang.String key)
      Returns the logarithmic access frequency counter of a Valkey object stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> objectIdletime​(@NonNull GlideString key)
      Returns the time in seconds since the last access to the value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> objectIdletime​(@NonNull java.lang.String key)
      Returns the time in seconds since the last access to the value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> objectRefcount​(@NonNull GlideString key)
      Returns the reference count of the object stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> objectRefcount​(@NonNull java.lang.String key)
      Returns the reference count of the object stored at key.
      protected java.lang.Object parseSubscriptionState​(java.lang.Object response)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean> persist​(@NonNull GlideString key)
      Removes the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).
      java.util.concurrent.CompletableFuture<java.lang.Boolean> persist​(@NonNull java.lang.String key)
      Removes the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull GlideString key, long milliseconds)
      Sets a timeout on key in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull GlideString key, long milliseconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull java.lang.String key, long milliseconds)
      Sets a timeout on key in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull java.lang.String key, long milliseconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull GlideString key, long unixMilliseconds)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull GlideString key, long unixMilliseconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull java.lang.String key, long unixMilliseconds)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull java.lang.String key, long unixMilliseconds, @NonNull ExpireOptions expireOptions)
      Sets a timeout on key.
      java.util.concurrent.CompletableFuture<java.lang.Long> pexpiretime​(@NonNull GlideString key)
      Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long> pexpiretime​(@NonNull java.lang.String key)
      Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pfadd​(@NonNull GlideString key, @NonNull GlideString[] elements)
      Adds all elements to the HyperLogLog data structure stored at the specified key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> pfadd​(@NonNull java.lang.String key, @NonNull java.lang.String[] elements)
      Adds all elements to the HyperLogLog data structure stored at the specified key.
      java.util.concurrent.CompletableFuture<java.lang.Long> pfcount​(@NonNull GlideString[] keys)
      Estimates the cardinality of the data stored in a HyperLogLog structure for a single key or calculates the combined cardinality of multiple keys by merging their HyperLogLogs temporarily.
      java.util.concurrent.CompletableFuture<java.lang.Long> pfcount​(@NonNull java.lang.String[] keys)
      Estimates the cardinality of the data stored in a HyperLogLog structure for a single key or calculates the combined cardinality of multiple keys by merging their HyperLogLogs temporarily.
      java.util.concurrent.CompletableFuture<java.lang.String> pfmerge​(@NonNull GlideString destination, @NonNull GlideString[] sourceKeys)
      Merges multiple HyperLogLog values into a unique value.
      If the destination variable exists, it is treated as one of the source HyperLogLog data sets, otherwise a new HyperLogLog is created.
      java.util.concurrent.CompletableFuture<java.lang.String> pfmerge​(@NonNull java.lang.String destination, @NonNull java.lang.String[] sourceKeys)
      Merges multiple HyperLogLog values into a unique value.
      If the destination variable exists, it is treated as one of the source HyperLogLog data sets, otherwise a new HyperLogLog is created.
      java.util.concurrent.CompletableFuture<java.lang.Void> psubscribe​(java.util.Set<java.lang.String> patterns, int timeoutMs)
      Subscribes the client to channels matching the specified patterns with a timeout.
      java.util.concurrent.CompletableFuture<java.lang.Void> psubscribeLazy​(java.util.Set<java.lang.String> patterns)
      Subscribes the client to channels matching the specified patterns.
      java.util.concurrent.CompletableFuture<java.lang.Long> pttl​(@NonNull GlideString key)
      Returns the remaining time to live of key that has a timeout, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.Long> pttl​(@NonNull java.lang.String key)
      Returns the remaining time to live of key that has a timeout, in milliseconds.
      java.util.concurrent.CompletableFuture<java.lang.String> publish​(@NonNull GlideString message, @NonNull GlideString channel)
      Publishes message on pubsub channel.
      java.util.concurrent.CompletableFuture<java.lang.String> publish​(@NonNull java.lang.String message, @NonNull java.lang.String channel)
      Publishes message on pubsub channel.
      java.util.concurrent.CompletableFuture<java.lang.String[]> pubsubChannels()
      Lists the currently active channels.
      java.util.concurrent.CompletableFuture<GlideString[]> pubsubChannels​(@NonNull GlideString pattern)
      Lists the currently active channels.
      java.util.concurrent.CompletableFuture<java.lang.String[]> pubsubChannels​(@NonNull java.lang.String pattern)
      Lists the currently active channels.
      java.util.concurrent.CompletableFuture<GlideString[]> pubsubChannelsBinary()
      Lists the currently active channels.
      Unlike of PubSubBaseCommands.pubsubChannels(), returns channel names as GlideStrings.
      java.util.concurrent.CompletableFuture<java.lang.Long> pubsubNumPat()
      Returns the number of unique patterns that are subscribed to by clients.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Long>> pubsubNumSub​(@NonNull GlideString[] channels)
      Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified channels.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Long>> pubsubNumSub​(@NonNull java.lang.String[] channels)
      Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified channels.
      java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribe​(int timeoutMs)
      Unsubscribes the client from all currently subscribed patterns with a timeout.
      java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribe​(java.util.Set<java.lang.String> patterns, int timeoutMs)
      Unsubscribes the client from the specified patterns with a timeout.
      java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribeLazy()
      Unsubscribes the client from all currently subscribed patterns.
      java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribeLazy​(java.util.Set<java.lang.String> patterns)
      Unsubscribes the client from the specified patterns.
      java.util.concurrent.CompletableFuture<java.lang.String> refreshIamToken()
      Manually refresh the IAM token for the current connection.
      java.util.concurrent.CompletableFuture<java.lang.String> rename​(@NonNull GlideString key, @NonNull GlideString newKey)
      Renames key to newKey.
      If newKey already exists it is overwritten.
      java.util.concurrent.CompletableFuture<java.lang.String> rename​(@NonNull java.lang.String key, @NonNull java.lang.String newKey)
      Renames key to newKey.
      If newKey already exists it is overwritten.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> renamenx​(@NonNull GlideString key, @NonNull GlideString newKey)
      Renames key to newKey if newKey does not yet exist.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> renamenx​(@NonNull java.lang.String key, @NonNull java.lang.String newKey)
      Renames key to newKey if newKey does not yet exist.
      java.util.concurrent.CompletableFuture<java.lang.String> restore​(@NonNull GlideString key, long ttl, @lombok.NonNull byte[] value)
      Create a key associated with a value that is obtained by deserializing the provided serialized value (obtained via GenericBaseCommands.dump(glide.api.models.GlideString)).
      java.util.concurrent.CompletableFuture<java.lang.String> restore​(@NonNull GlideString key, long ttl, @lombok.NonNull byte[] value, @NonNull RestoreOptions restoreOptions)
      Create a key associated with a value that is obtained by deserializing the provided serialized value (obtained via GenericBaseCommands.dump(glide.api.models.GlideString)).
      java.util.concurrent.CompletableFuture<GlideString> rpop​(@NonNull GlideString key)
      Removes and returns the last elements of the list stored at key.
      The command pops a single element from the end of the list.
      java.util.concurrent.CompletableFuture<java.lang.String> rpop​(@NonNull java.lang.String key)
      Removes and returns the last elements of the list stored at key.
      The command pops a single element from the end of the list.
      java.util.concurrent.CompletableFuture<GlideString[]> rpopCount​(@NonNull GlideString key, long count)
      Removes and returns up to count elements from the list stored at key, depending on the list's length.
      java.util.concurrent.CompletableFuture<java.lang.String[]> rpopCount​(@NonNull java.lang.String key, long count)
      Removes and returns up to count elements from the list stored at key, depending on the list's length.
      java.util.concurrent.CompletableFuture<java.lang.Long> rpush​(@NonNull GlideString key, @NonNull GlideString[] elements)
      Inserts all the specified values at the tail of the list stored at key.
      elements are inserted one after the other to the tail of the list, from the leftmost element to the rightmost element.
      java.util.concurrent.CompletableFuture<java.lang.Long> rpush​(@NonNull java.lang.String key, @NonNull java.lang.String[] elements)
      Inserts all the specified values at the tail of the list stored at key.
      elements are inserted one after the other to the tail of the list, from the leftmost element to the rightmost element.
      java.util.concurrent.CompletableFuture<java.lang.Long> rpushx​(@NonNull GlideString key, @NonNull GlideString[] elements)
      Inserts all the specified values at the tail of the list stored at key, only if key exists and holds a list.
      java.util.concurrent.CompletableFuture<java.lang.Long> rpushx​(@NonNull java.lang.String key, @NonNull java.lang.String[] elements)
      Inserts all the specified values at the tail of the list stored at key, only if key exists and holds a list.
      java.util.concurrent.CompletableFuture<java.lang.Long> sadd​(@NonNull GlideString key, @NonNull GlideString[] members)
      Adds specified members to the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> sadd​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Adds specified members to the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> scard​(@NonNull GlideString key)
      Retrieves the set cardinality (number of elements) of the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> scard​(@NonNull java.lang.String key)
      Retrieves the set cardinality (number of elements) of the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> scriptDebug​(@NonNull ScriptDebugMode mode)
      Sets the debugging mode for executed scripts.
      java.util.concurrent.CompletableFuture<java.lang.Boolean[]> scriptExists​(@NonNull GlideString[] sha1s)  
      java.util.concurrent.CompletableFuture<java.lang.Boolean[]> scriptExists​(@NonNull java.lang.String[] sha1s)  
      java.util.concurrent.CompletableFuture<java.lang.String> scriptFlush()  
      java.util.concurrent.CompletableFuture<java.lang.String> scriptFlush​(@NonNull FlushMode flushMode)  
      java.util.concurrent.CompletableFuture<java.lang.String> scriptKill()  
      java.util.concurrent.CompletableFuture<GlideString> scriptShow​(@NonNull GlideString sha1)
      Returns the original source code of a script in the script cache.
      java.util.concurrent.CompletableFuture<java.lang.String> scriptShow​(@NonNull java.lang.String sha1)
      Returns the original source code of a script in the script cache.
      java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> sdiff​(@NonNull GlideString[] keys)
      Computes the difference between the first set and all the successive sets in keys.
      java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> sdiff​(@NonNull java.lang.String[] keys)
      Computes the difference between the first set and all the successive sets in keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> sdiffstore​(@NonNull GlideString destination, @NonNull GlideString[] keys)
      Stores the difference between the first set and all the successive sets in keys into a new set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> sdiffstore​(@NonNull java.lang.String destination, @NonNull java.lang.String[] keys)
      Stores the difference between the first set and all the successive sets in keys into a new set at destination.
      java.util.concurrent.CompletableFuture<java.lang.String> set​(@NonNull GlideString key, @NonNull GlideString value)
      Sets the given key with the given value.
      java.util.concurrent.CompletableFuture<java.lang.String> set​(@NonNull GlideString key, @NonNull GlideString value, @NonNull SetOptions options)
      Sets the given key with the given value.
      java.util.concurrent.CompletableFuture<java.lang.String> set​(@NonNull java.lang.String key, @NonNull java.lang.String value)
      Sets the given key with the given value.
      java.util.concurrent.CompletableFuture<java.lang.String> set​(@NonNull java.lang.String key, @NonNull java.lang.String value, @NonNull SetOptions options)
      Sets the given key with the given value.
      java.util.concurrent.CompletableFuture<java.lang.Long> setbit​(@NonNull GlideString key, long offset, long value)
      Sets or clears the bit at offset in the string value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> setbit​(@NonNull java.lang.String key, long offset, long value)
      Sets or clears the bit at offset in the string value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> setrange​(@NonNull GlideString key, int offset, @NonNull GlideString value)
      Overwrites part of the GlideString stored at key, starting at the specified offset, for the entire length of value.
      If the offset is larger than the current length of the GlideString at key , the GlideString is padded with zero bytes to make offset fit.
      java.util.concurrent.CompletableFuture<java.lang.Long> setrange​(@NonNull java.lang.String key, int offset, @NonNull java.lang.String value)
      Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value.
      If the offset is larger than the current length of the string at key, the string is padded with zero bytes to make offset fit.
      java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> sinter​(@NonNull GlideString[] keys)
      Gets the intersection of all the given sets.
      java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> sinter​(@NonNull java.lang.String[] keys)
      Gets the intersection of all the given sets.
      java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull GlideString[] keys)
      Gets the cardinality of the intersection of all the given sets.
      java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull GlideString[] keys, long limit)
      Gets the cardinality of the intersection of all the given sets.
      java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull java.lang.String[] keys)
      Gets the cardinality of the intersection of all the given sets.
      java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull java.lang.String[] keys, long limit)
      Gets the cardinality of the intersection of all the given sets.
      java.util.concurrent.CompletableFuture<java.lang.Long> sinterstore​(@NonNull GlideString destination, @NonNull GlideString[] keys)
      Stores the members of the intersection of all given sets specified by keys into a new set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> sinterstore​(@NonNull java.lang.String destination, @NonNull java.lang.String[] keys)
      Stores the members of the intersection of all given sets specified by keys into a new set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> sismember​(@NonNull GlideString key, @NonNull GlideString member)
      Returns if member is a member of the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> sismember​(@NonNull java.lang.String key, @NonNull java.lang.String member)
      Returns if member is a member of the set stored at key.
      java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> smembers​(@NonNull GlideString key)
      Retrieves all the members of the set value stored at key.
      java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> smembers​(@NonNull java.lang.String key)
      Retrieves all the members of the set value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean[]> smismember​(@NonNull GlideString key, @NonNull GlideString[] members)
      Checks whether each member is contained in the members of the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean[]> smismember​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Checks whether each member is contained in the members of the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> smove​(@NonNull GlideString source, @NonNull GlideString destination, @NonNull GlideString member)
      Moves member from the set at source to the set at destination , removing it from the source set.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> smove​(@NonNull java.lang.String source, @NonNull java.lang.String destination, @NonNull java.lang.String member)
      Moves member from the set at source to the set at destination , removing it from the source set.
      java.util.concurrent.CompletableFuture<GlideString[]> sort​(@NonNull GlideString key)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<GlideString[]> sort​(@NonNull GlideString key, @NonNull SortOptionsBinary sortOptions)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<java.lang.String[]> sort​(@NonNull java.lang.String key)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<java.lang.String[]> sort​(@NonNull java.lang.String key, @NonNull SortOptions sortOptions)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<GlideString[]> sortReadOnly​(@NonNull GlideString key)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<GlideString[]> sortReadOnly​(@NonNull GlideString key, @NonNull SortOptionsBinary sortOptions)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<java.lang.String[]> sortReadOnly​(@NonNull java.lang.String key)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<java.lang.String[]> sortReadOnly​(@NonNull java.lang.String key, @NonNull SortOptions sortOptions)
      Sorts the elements in the list, set, or sorted set at key and returns the result.
      java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull GlideString key, @NonNull GlideString destination)
      Sorts the elements in the list, set, or sorted set at key and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull GlideString key, @NonNull GlideString destination, @NonNull SortOptionsBinary sortOptions)
      Sorts the elements in the list, set, or sorted set at key and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull java.lang.String key, @NonNull java.lang.String destination)
      Sorts the elements in the list, set, or sorted set at key and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull java.lang.String key, @NonNull java.lang.String destination, @NonNull SortOptions sortOptions)
      Sorts the elements in the list, set, or sorted set at key and stores the result in destination.
      java.util.concurrent.CompletableFuture<GlideString> spop​(@NonNull GlideString key)
      Removes and returns one random member from the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> spop​(@NonNull java.lang.String key)
      Removes and returns one random member from the set stored at key.
      java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> spopCount​(@NonNull GlideString key, long count)
      Removes and returns up to count random members from the set stored at key , depending on the set's length.
      java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> spopCount​(@NonNull java.lang.String key, long count)
      Removes and returns up to count random members from the set stored at key , depending on the set's length.
      java.util.concurrent.CompletableFuture<GlideString> srandmember​(@NonNull GlideString key)
      Returns a random element from the set value stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> srandmember​(@NonNull GlideString key, long count)
      Returns one or more random elements from the set value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> srandmember​(@NonNull java.lang.String key)
      Returns a random element from the set value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> srandmember​(@NonNull java.lang.String key, long count)
      Returns one or more random elements from the set value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> srem​(@NonNull GlideString key, @NonNull GlideString[] members)
      Removes specified members from the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> srem​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Removes specified members from the set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull GlideString key, @NonNull GlideString cursor)
      Iterates incrementally over a set.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull GlideString key, @NonNull GlideString cursor, @NonNull SScanOptionsBinary sScanOptions)
      Iterates incrementally over a set.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull java.lang.String key, @NonNull java.lang.String cursor)
      Iterates incrementally over a set.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull java.lang.String key, @NonNull java.lang.String cursor, @NonNull SScanOptions sScanOptions)
      Iterates incrementally over a set.
      java.util.concurrent.CompletableFuture<java.lang.Long> strlen​(@NonNull GlideString key)
      Returns the length of the string value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> strlen​(@NonNull java.lang.String key)
      Returns the length of the string value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Void> subscribe​(java.util.Set<java.lang.String> channels, int timeoutMs)
      Subscribes the client to the specified channels with a timeout.
      java.util.concurrent.CompletableFuture<java.lang.Void> subscribeLazy​(java.util.Set<java.lang.String> channels)
      Subscribes the client to the specified channels.
      java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> sunion​(@NonNull GlideString[] keys)
      Gets the union of all the given sets.
      java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> sunion​(@NonNull java.lang.String[] keys)
      Gets the union of all the given sets.
      java.util.concurrent.CompletableFuture<java.lang.Long> sunionstore​(@NonNull GlideString destination, @NonNull GlideString[] keys)
      Stores the members of the union of all given sets specified by keys into a new set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> sunionstore​(@NonNull java.lang.String destination, @NonNull java.lang.String[] keys)
      Stores the members of the union of all given sets specified by keys into a new set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> touch​(@NonNull GlideString[] keys)
      Updates the last access time of specified keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> touch​(@NonNull java.lang.String[] keys)
      Updates the last access time of specified keys.
      PubSubMessage tryGetPubSubMessage()
      Return a next pubsub message if it is present.
      java.util.concurrent.CompletableFuture<java.lang.Long> ttl​(@NonNull GlideString key)
      Returns the remaining time to live of key that has a timeout, in seconds.
      java.util.concurrent.CompletableFuture<java.lang.Long> ttl​(@NonNull java.lang.String key)
      Returns the remaining time to live of key that has a timeout, in seconds.
      java.util.concurrent.CompletableFuture<java.lang.String> type​(@NonNull GlideString key)
      Returns the string representation of the type of the value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> type​(@NonNull java.lang.String key)
      Returns the string representation of the type of the value stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> unlink​(@NonNull GlideString[] keys)
      Unlink (delete) multiple keys from the database.
      java.util.concurrent.CompletableFuture<java.lang.Long> unlink​(@NonNull java.lang.String[] keys)
      Unlink (delete) multiple keys from the database.
      java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe​(int timeoutMs)
      Unsubscribes the client from all currently subscribed channels with a timeout.
      java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe​(java.util.Set<java.lang.String> channels, int timeoutMs)
      Unsubscribes the client from the specified channels with a timeout.
      java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribeLazy()
      Unsubscribes the client from all currently subscribed channels.
      java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribeLazy​(java.util.Set<java.lang.String> channels)
      Unsubscribes the client from the specified channels.
      java.util.concurrent.CompletableFuture<java.lang.String> updateConnectionPassword​(boolean immediateAuth)
      Update the current connection by removing the password.
      java.util.concurrent.CompletableFuture<java.lang.String> updateConnectionPassword​(@NonNull java.lang.String password, boolean immediateAuth)
      Update the current connection with a new password.
      java.util.concurrent.CompletableFuture<java.lang.Long> wait​(long numreplicas, long timeout)
      Blocks the current client until all the previous write commands are successfully transferred and acknowledged by at least numreplicas of replicas.
      java.util.concurrent.CompletableFuture<java.lang.Long[]> waitaof​(long numlocal, long numreplicas, long timeout)
      Blocks the current client until all previous write commands are successfully transferred and acknowledged by at least numlocal and numreplicas of replicas.
      java.util.concurrent.CompletableFuture<java.lang.String> watch​(@NonNull GlideString[] keys)
      Marks the given keys to be watched for conditional execution of a transaction.
      java.util.concurrent.CompletableFuture<java.lang.String> watch​(@NonNull java.lang.String[] keys)
      Marks the given keys to be watched for conditional execution of a transaction.
      java.util.concurrent.CompletableFuture<java.lang.Long> xack​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString[] ids)
      Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.
      java.util.concurrent.CompletableFuture<java.lang.Long> xack​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String[] ids)
      Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.
      java.util.concurrent.CompletableFuture<GlideString> xadd​(@NonNull GlideString key, @NonNull GlideString[][] values)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<GlideString> xadd​(@NonNull GlideString key, @NonNull GlideString[][] values, @NonNull StreamAddOptionsBinary options)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<GlideString> xadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​GlideString> values)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<GlideString> xadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​GlideString> values, @NonNull StreamAddOptionsBinary options)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull java.lang.String key, @NonNull java.lang.String[][] values)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull java.lang.String key, @NonNull java.lang.String[][] values, @NonNull StreamAddOptions options)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.String> values)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.String> values, @NonNull StreamAddOptions options)
      Adds an entry to the specified stream stored at key.
      If the key doesn't exist, the stream is created.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString start)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString start, long count)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String start)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String start, long count)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString start)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString start, long count)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String start)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String start, long count)
      Transfers ownership of pending stream entries that match the specified criteria.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xclaim​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString[] ids)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xclaim​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString[] ids, @NonNull StreamClaimOptions options)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xclaim​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String[] ids)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xclaim​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String[] ids, @NonNull StreamClaimOptions options)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<GlideString[]> xclaimJustId​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString[] ids)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<GlideString[]> xclaimJustId​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer, long minIdleTime, @NonNull GlideString[] ids, @NonNull StreamClaimOptions options)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<java.lang.String[]> xclaimJustId​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String[] ids)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<java.lang.String[]> xclaimJustId​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer, long minIdleTime, @NonNull java.lang.String[] ids, @NonNull StreamClaimOptions options)
      Changes the ownership of a pending message.
      java.util.concurrent.CompletableFuture<java.lang.Long> xdel​(@NonNull GlideString key, @NonNull GlideString[] ids)
      Removes the specified entries by id from a stream, and returns the number of entries deleted.
      java.util.concurrent.CompletableFuture<java.lang.Long> xdel​(@NonNull java.lang.String key, @NonNull java.lang.String[] ids)
      Removes the specified entries by id from a stream, and returns the number of entries deleted.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull GlideString key, @NonNull GlideString groupName, @NonNull GlideString id)
      Creates a new consumer group uniquely identified by groupname for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull GlideString key, @NonNull GlideString groupName, @NonNull GlideString id, @NonNull StreamGroupOptions options)
      Creates a new consumer group uniquely identified by groupname for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull java.lang.String key, @NonNull java.lang.String groupName, @NonNull java.lang.String id)
      Creates a new consumer group uniquely identified by groupname for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull java.lang.String key, @NonNull java.lang.String groupName, @NonNull java.lang.String id, @NonNull StreamGroupOptions options)
      Creates a new consumer group uniquely identified by groupname for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupCreateConsumer​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer)
      Creates a consumer named consumer in the consumer group group for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupCreateConsumer​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer)
      Creates a consumer named consumer in the consumer group group for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> xgroupDelConsumer​(@NonNull GlideString key, @NonNull GlideString group, @NonNull GlideString consumer)
      Deletes a consumer named consumer in the consumer group group.
      java.util.concurrent.CompletableFuture<java.lang.Long> xgroupDelConsumer​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull java.lang.String consumer)
      Deletes a consumer named consumer in the consumer group group.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupDestroy​(@NonNull GlideString key, @NonNull GlideString groupname)
      Destroys the consumer group groupname for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupDestroy​(@NonNull java.lang.String key, @NonNull java.lang.String groupname)
      Destroys the consumer group groupname for the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull GlideString key, @NonNull GlideString groupName, @NonNull GlideString id)
      Sets the last delivered ID for a consumer group.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull GlideString key, @NonNull GlideString groupName, @NonNull GlideString id, long entriesRead)
      Sets the last delivered ID for a consumer group.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull java.lang.String key, @NonNull java.lang.String groupName, @NonNull java.lang.String id)
      Sets the last delivered ID for a consumer group.
      java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull java.lang.String key, @NonNull java.lang.String groupName, @NonNull java.lang.String id, long entriesRead)
      Sets the last delivered ID for a consumer group.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>[]> xinfoConsumers​(@NonNull GlideString key, @NonNull GlideString groupName)
      Returns the list of all consumers and their attributes for the given consumer group of the stream stored at key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>[]> xinfoConsumers​(@NonNull java.lang.String key, @NonNull java.lang.String groupName)
      Returns the list of all consumers and their attributes for the given consumer group of the stream stored at key.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>[]> xinfoGroups​(@NonNull GlideString key)
      Returns the list of all consumer groups and their attributes for the stream stored at key .
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>[]> xinfoGroups​(@NonNull java.lang.String key)
      Returns the list of all consumer groups and their attributes for the stream stored at key .
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> xinfoStream​(@NonNull GlideString key)
      Returns information about the stream stored at key key.
      To get more detailed information use StreamBaseCommands.xinfoStreamFull(GlideString) or StreamBaseCommands.xinfoStreamFull(GlideString, int).
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> xinfoStream​(@NonNull java.lang.String key)
      Returns information about the stream stored at key key.
      To get more detailed information use StreamBaseCommands.xinfoStreamFull(String) or StreamBaseCommands.xinfoStreamFull(String, int).
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> xinfoStreamFull​(@NonNull GlideString key)
      Returns verbose information about the stream stored at key key.
      The output is limited by first 10 PEL entries.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> xinfoStreamFull​(@NonNull GlideString key, int count)
      Returns verbose information about the stream stored at key key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> xinfoStreamFull​(@NonNull java.lang.String key)
      Returns verbose information about the stream stored at key key.
      The output is limited by first 10 PEL entries.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> xinfoStreamFull​(@NonNull java.lang.String key, int count)
      Returns verbose information about the stream stored at key key.
      java.util.concurrent.CompletableFuture<java.lang.Long> xlen​(@NonNull GlideString key)
      Returns the number of entries in the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> xlen​(@NonNull java.lang.String key)
      Returns the number of entries in the stream stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xpending​(@NonNull GlideString key, @NonNull GlideString group)
      Returns stream message summary information for pending messages matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull GlideString key, @NonNull GlideString group, @NonNull StreamRange start, @NonNull StreamRange end, long count)
      Returns an extended form of stream message information for pending messages matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull GlideString key, @NonNull GlideString group, @NonNull StreamRange start, @NonNull StreamRange end, long count, @NonNull StreamPendingOptionsBinary options)
      Returns an extended form of stream message information for pending messages matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> xpending​(@NonNull java.lang.String key, @NonNull java.lang.String group)
      Returns stream message summary information for pending messages matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull StreamRange start, @NonNull StreamRange end, long count)
      Returns an extended form of stream message information for pending messages matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull java.lang.String key, @NonNull java.lang.String group, @NonNull StreamRange start, @NonNull StreamRange end, long count, @NonNull StreamPendingOptions options)
      Returns an extended form of stream message information for pending messages matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xrange​(@NonNull GlideString key, @NonNull StreamRange start, @NonNull StreamRange end)
      Returns stream entries matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xrange​(@NonNull GlideString key, @NonNull StreamRange start, @NonNull StreamRange end, long count)
      Returns stream entries matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xrange​(@NonNull java.lang.String key, @NonNull StreamRange start, @NonNull StreamRange end)
      Returns stream entries matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xrange​(@NonNull java.lang.String key, @NonNull StreamRange start, @NonNull StreamRange end, long count)
      Returns stream entries matching a given range of IDs.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xread​(@NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds)
      Reads entries from the given streams.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xread​(@NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds, @NonNull StreamReadOptions options)
      Reads entries from the given streams.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadBinary​(@NonNull java.util.Map<GlideString,​GlideString> keysAndIds)
      Reads entries from the given streams.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadBinary​(@NonNull java.util.Map<GlideString,​GlideString> keysAndIds, @NonNull StreamReadOptions options)
      Reads entries from the given streams.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadgroup​(@NonNull java.util.Map<GlideString,​GlideString> keysAndIds, @NonNull GlideString group, @NonNull GlideString consumer)
      Reads entries from the given streams owned by a consumer group.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadgroup​(@NonNull java.util.Map<GlideString,​GlideString> keysAndIds, @NonNull GlideString group, @NonNull GlideString consumer, @NonNull StreamReadGroupOptions options)
      Reads entries from the given streams owned by a consumer group.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xreadgroup​(@NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds, @NonNull java.lang.String group, @NonNull java.lang.String consumer)
      Reads entries from the given streams owned by a consumer group.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xreadgroup​(@NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds, @NonNull java.lang.String group, @NonNull java.lang.String consumer, @NonNull StreamReadGroupOptions options)
      Reads entries from the given streams owned by a consumer group.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xrevrange​(@NonNull GlideString key, @NonNull StreamRange end, @NonNull StreamRange start)
      Returns stream entries matching a given range of IDs in reverse order.
      Equivalent to StreamBaseCommands.xrange(GlideString, StreamRange, StreamRange) but returns the entries in reverse order.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xrevrange​(@NonNull GlideString key, @NonNull StreamRange end, @NonNull StreamRange start, long count)
      Returns stream entries matching a given range of IDs in reverse order.
      Equivalent to StreamBaseCommands.xrange(GlideString, StreamRange, StreamRange, long) but returns the entries in reverse order.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xrevrange​(@NonNull java.lang.String key, @NonNull StreamRange end, @NonNull StreamRange start)
      Returns stream entries matching a given range of IDs in reverse order.
      Equivalent to StreamBaseCommands.xrange(String, StreamRange, StreamRange) but returns the entries in reverse order.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xrevrange​(@NonNull java.lang.String key, @NonNull StreamRange end, @NonNull StreamRange start, long count)
      Returns stream entries matching a given range of IDs in reverse order.
      Equivalent to StreamBaseCommands.xrange(String, StreamRange, StreamRange, long) but returns the entries in reverse order.
      java.util.concurrent.CompletableFuture<java.lang.Long> xtrim​(@NonNull GlideString key, @NonNull StreamTrimOptions options)
      Trims the stream by evicting older entries.
      java.util.concurrent.CompletableFuture<java.lang.Long> xtrim​(@NonNull java.lang.String key, @NonNull StreamTrimOptions options)
      Trims the stream by evicting older entries.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap, boolean changed)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap, @NonNull ZAddOptions options)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull GlideString key, @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap, @NonNull ZAddOptions options, boolean changed)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap, boolean changed)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap, @NonNull ZAddOptions options)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull java.lang.String key, @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap, @NonNull ZAddOptions options, boolean changed)
      Adds members with their scores to the sorted set stored at key.
      If a member is already a part of the sorted set, its score is updated.
      java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull GlideString key, @NonNull GlideString member, double increment)
      Increments the score of member in the sorted set stored at key by increment .
      If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
      If key does not exist, a new sorted set with the specified member as its sole member is created.
      java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull GlideString key, @NonNull GlideString member, double increment, @NonNull ZAddOptions options)
      Increments the score of member in the sorted set stored at key by increment .
      If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
      If key does not exist, a new sorted set with the specified member as its sole member is created.
      zaddIncr with empty option acts as SortedSetBaseCommands.zincrby(GlideString, double, GlideString).
      java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull java.lang.String key, @NonNull java.lang.String member, double increment)
      Increments the score of member in the sorted set stored at key by increment .
      If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
      If key does not exist, a new sorted set with the specified member as its sole member is created.
      zaddIncr with empty option acts as SortedSetBaseCommands.zincrby(GlideString, double, GlideString).
      java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull java.lang.String key, @NonNull java.lang.String member, double increment, @NonNull ZAddOptions options)
      Increments the score of member in the sorted set stored at key by increment .
      If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
      If key does not exist, a new sorted set with the specified member as its sole member is created.
      zaddIncr with empty option acts as SortedSetBaseCommands.zincrby(String, double, String).
      java.util.concurrent.CompletableFuture<java.lang.Long> zcard​(@NonNull GlideString key)
      Returns the cardinality (number of elements) of the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> zcard​(@NonNull java.lang.String key)
      Returns the cardinality (number of elements) of the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Long> zcount​(@NonNull GlideString key, @NonNull RangeOptions.ScoreRange minScore, @NonNull RangeOptions.ScoreRange maxScore)
      Returns the number of members in the sorted set stored at key with scores between minScore and maxScore.
      java.util.concurrent.CompletableFuture<java.lang.Long> zcount​(@NonNull java.lang.String key, @NonNull RangeOptions.ScoreRange minScore, @NonNull RangeOptions.ScoreRange maxScore)
      Returns the number of members in the sorted set stored at key with scores between minScore and maxScore.
      java.util.concurrent.CompletableFuture<GlideString[]> zdiff​(@NonNull GlideString[] keys)
      Returns the difference between the first sorted set and all the successive sorted sets.
      To get the elements with their scores, see SortedSetBaseCommands.zdiffWithScores(java.lang.String[]).
      java.util.concurrent.CompletableFuture<java.lang.String[]> zdiff​(@NonNull java.lang.String[] keys)
      Returns the difference between the first sorted set and all the successive sorted sets.
      To get the elements with their scores, see SortedSetBaseCommands.zdiffWithScores(java.lang.String[]).
      java.util.concurrent.CompletableFuture<java.lang.Long> zdiffstore​(@NonNull GlideString destination, @NonNull GlideString[] keys)
      Calculates the difference between the first sorted set and all the successive sorted sets at keys and stores the difference as a sorted set to destination, overwriting it if it already exists.
      java.util.concurrent.CompletableFuture<java.lang.Long> zdiffstore​(@NonNull java.lang.String destination, @NonNull java.lang.String[] keys)
      Calculates the difference between the first sorted set and all the successive sorted sets at keys and stores the difference as a sorted set to destination, overwriting it if it already exists.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zdiffWithScores​(@NonNull GlideString[] keys)
      Returns the difference between the first sorted set and all the successive sorted sets.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zdiffWithScores​(@NonNull java.lang.String[] keys)
      Returns the difference between the first sorted set and all the successive sorted sets.
      java.util.concurrent.CompletableFuture<java.lang.Double> zincrby​(@NonNull GlideString key, double increment, @NonNull GlideString member)
      Increments the score of member in the sorted set stored at key by increment.
      If member does not exist in the sorted set, it is added with increment as its score.
      java.util.concurrent.CompletableFuture<java.lang.Double> zincrby​(@NonNull java.lang.String key, double increment, @NonNull java.lang.String member)
      Increments the score of member in the sorted set stored at key by increment.
      If member does not exist in the sorted set, it is added with increment as its score.
      java.util.concurrent.CompletableFuture<java.lang.String[]> zinter​(@NonNull WeightAggregateOptions.KeyArray keys)
      Returns the intersection of members from sorted sets specified by the given keys.
      java.util.concurrent.CompletableFuture<GlideString[]> zinter​(@NonNull WeightAggregateOptions.KeyArrayBinary keys)
      Returns the intersection of members from sorted sets specified by the given keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull GlideString[] keys)
      Returns the cardinality of the intersection of the sorted sets specified by keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull GlideString[] keys, long limit)
      Returns the cardinality of the intersection of the sorted sets specified by keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull java.lang.String[] keys)
      Returns the cardinality of the intersection of the sorted sets specified by keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull java.lang.String[] keys, long limit)
      Returns the cardinality of the intersection of the sorted sets specified by keys.
      java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull GlideString destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys)
      Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull GlideString destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull java.lang.String destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys)
      Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull java.lang.String destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zinterWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys)
      Returns the intersection of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zinterWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys)
      Returns the intersection of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zinterWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Returns the intersection of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zinterWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Returns the intersection of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      java.util.concurrent.CompletableFuture<java.lang.Long> zlexcount​(@NonNull GlideString key, @NonNull RangeOptions.LexRange minLex, @NonNull RangeOptions.LexRange maxLex)
      Returns the number of members in the sorted set stored at key with scores between minLex and maxLex.
      java.util.concurrent.CompletableFuture<java.lang.Long> zlexcount​(@NonNull java.lang.String key, @NonNull RangeOptions.LexRange minLex, @NonNull RangeOptions.LexRange maxLex)
      Returns the number of members in the sorted set stored at key with scores between minLex and maxLex.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> zmpop​(@NonNull GlideString[] keys, @NonNull ScoreFilter modifier)
      Pops a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> zmpop​(@NonNull GlideString[] keys, @NonNull ScoreFilter modifier, long count)
      Pops multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> zmpop​(@NonNull java.lang.String[] keys, @NonNull ScoreFilter modifier)
      Pops a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> zmpop​(@NonNull java.lang.String[] keys, @NonNull ScoreFilter modifier, long count)
      Pops multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
      java.util.concurrent.CompletableFuture<java.lang.Double[]> zmscore​(@NonNull GlideString key, @NonNull GlideString[] members)
      Returns the scores associated with the specified members in the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Double[]> zmscore​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Returns the scores associated with the specified members in the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmax​(@NonNull GlideString key)
      Removes and returns the member with the highest score from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmax​(@NonNull GlideString key, long count)
      Removes and returns up to count members with the highest scores from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmax​(@NonNull java.lang.String key)
      Removes and returns the member with the highest score from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmax​(@NonNull java.lang.String key, long count)
      Removes and returns up to count members with the highest scores from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmin​(@NonNull GlideString key)
      Removes and returns the member with the lowest score from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmin​(@NonNull GlideString key, long count)
      Removes and returns up to count members with the lowest scores from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmin​(@NonNull java.lang.String key)
      Removes and returns the member with the lowest score from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmin​(@NonNull java.lang.String key, long count)
      Removes and returns up to count members with the lowest scores from the sorted set stored at the specified key.
      java.util.concurrent.CompletableFuture<GlideString> zrandmember​(@NonNull GlideString key)
      Returns a random element from the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String> zrandmember​(@NonNull java.lang.String key)
      Returns a random element from the sorted set stored at key.
      java.util.concurrent.CompletableFuture<GlideString[]> zrandmemberWithCount​(@NonNull GlideString key, long count)
      Retrieves random elements from the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> zrandmemberWithCount​(@NonNull java.lang.String key, long count)
      Returns a random element from the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Object[][]> zrandmemberWithCountWithScores​(@NonNull GlideString key, long count)
      Retrieves random elements along with their scores from the sorted set stored at key .
      java.util.concurrent.CompletableFuture<java.lang.Object[][]> zrandmemberWithCountWithScores​(@NonNull java.lang.String key, long count)
      Retrieves random elements along with their scores from the sorted set stored at key .
      java.util.concurrent.CompletableFuture<GlideString[]> zrange​(@NonNull GlideString key, @NonNull RangeOptions.RangeQuery rangeQuery)
      Returns the specified range of elements in the sorted set stored at key.
      ZRANGE can perform different types of range queries: by index (rank), by the score, or by lexicographical order.
      To get the elements with their scores, see SortedSetBaseCommands.zrangeWithScores(java.lang.String, glide.api.models.commands.RangeOptions.ScoredRangeQuery, boolean).
      java.util.concurrent.CompletableFuture<GlideString[]> zrange​(@NonNull GlideString key, @NonNull RangeOptions.RangeQuery rangeQuery, boolean reverse)
      Returns the specified range of elements in the sorted set stored at key.
      ZRANGE can perform different types of range queries: by index (rank), by the score, or by lexicographical order.
      To get the elements with their scores, see SortedSetBaseCommands.zrangeWithScores(java.lang.String, glide.api.models.commands.RangeOptions.ScoredRangeQuery, boolean).
      java.util.concurrent.CompletableFuture<java.lang.String[]> zrange​(@NonNull java.lang.String key, @NonNull RangeOptions.RangeQuery rangeQuery)
      Returns the specified range of elements in the sorted set stored at key.
      ZRANGE can perform different types of range queries: by index (rank), by the score, or by lexicographical order.
      To get the elements with their scores, see SortedSetBaseCommands.zrangeWithScores(java.lang.String, glide.api.models.commands.RangeOptions.ScoredRangeQuery, boolean).
      java.util.concurrent.CompletableFuture<java.lang.String[]> zrange​(@NonNull java.lang.String key, @NonNull RangeOptions.RangeQuery rangeQuery, boolean reverse)
      Returns the specified range of elements in the sorted set stored at key.
      ZRANGE can perform different types of range queries: by index (rank), by the score, or by lexicographical order.
      To get the elements with their scores, see SortedSetBaseCommands.zrangeWithScores(java.lang.String, glide.api.models.commands.RangeOptions.ScoredRangeQuery, boolean).
      java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull GlideString destination, @NonNull GlideString source, @NonNull RangeOptions.RangeQuery rangeQuery)
      Stores a specified range of elements from the sorted set at source, into a new sorted set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull GlideString destination, @NonNull GlideString source, @NonNull RangeOptions.RangeQuery rangeQuery, boolean reverse)
      Stores a specified range of elements from the sorted set at source, into a new sorted set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull java.lang.String destination, @NonNull java.lang.String source, @NonNull RangeOptions.RangeQuery rangeQuery)
      Stores a specified range of elements from the sorted set at source, into a new sorted set at destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull java.lang.String destination, @NonNull java.lang.String source, @NonNull RangeOptions.RangeQuery rangeQuery, boolean reverse)
      Stores a specified range of elements from the sorted set at source, into a new sorted set at destination.
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zrangeWithScores​(@NonNull GlideString key, @NonNull RangeOptions.ScoredRangeQuery rangeQuery)
      Returns the specified range of elements with their scores in the sorted set stored at key .
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zrangeWithScores​(@NonNull GlideString key, @NonNull RangeOptions.ScoredRangeQuery rangeQuery, boolean reverse)
      Returns the specified range of elements with their scores in the sorted set stored at key .
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zrangeWithScores​(@NonNull java.lang.String key, @NonNull RangeOptions.ScoredRangeQuery rangeQuery)
      Returns the specified range of elements with their scores in the sorted set stored at key .
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zrangeWithScores​(@NonNull java.lang.String key, @NonNull RangeOptions.ScoredRangeQuery rangeQuery, boolean reverse)
      Returns the specified range of elements with their scores in the sorted set stored at key .
      java.util.concurrent.CompletableFuture<java.lang.Long> zrank​(@NonNull GlideString key, @NonNull GlideString member)
      Returns the rank of member in the sorted set stored at key, with scores ordered from low to high, starting from 0.
      To get the rank of member with its score, see SortedSetBaseCommands.zrankWithScore(java.lang.String, java.lang.String).
      java.util.concurrent.CompletableFuture<java.lang.Long> zrank​(@NonNull java.lang.String key, @NonNull java.lang.String member)
      Returns the rank of member in the sorted set stored at key, with scores ordered from low to high, starting from 0.
      To get the rank of member with its score, see SortedSetBaseCommands.zrankWithScore(java.lang.String, java.lang.String).
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zrankWithScore​(@NonNull GlideString key, @NonNull GlideString member)
      Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the lowest to highest, starting from 0.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zrankWithScore​(@NonNull java.lang.String key, @NonNull java.lang.String member)
      Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the lowest to highest, starting from 0.
      java.util.concurrent.CompletableFuture<java.lang.Long> zrem​(@NonNull GlideString key, @NonNull GlideString[] members)
      Removes the specified members from the sorted set stored at key.
      Specified members that are not a member of this set are ignored.
      java.util.concurrent.CompletableFuture<java.lang.Long> zrem​(@NonNull java.lang.String key, @NonNull java.lang.String[] members)
      Removes the specified members from the sorted set stored at key.
      Specified members that are not a member of this set are ignored.
      java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebylex​(@NonNull GlideString key, @NonNull RangeOptions.LexRange minLex, @NonNull RangeOptions.LexRange maxLex)
      Removes all elements in the sorted set stored at key with a lexicographical order between minLex and maxLex.
      java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebylex​(@NonNull java.lang.String key, @NonNull RangeOptions.LexRange minLex, @NonNull RangeOptions.LexRange maxLex)
      Removes all elements in the sorted set stored at key with a lexicographical order between minLex and maxLex.
      java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyrank​(@NonNull GlideString key, long start, long end)
      Removes all elements in the sorted set stored at key with rank between start and end.
      java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyrank​(@NonNull java.lang.String key, long start, long end)
      Removes all elements in the sorted set stored at key with rank between start and end.
      java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyscore​(@NonNull GlideString key, @NonNull RangeOptions.ScoreRange minScore, @NonNull RangeOptions.ScoreRange maxScore)
      Removes all elements in the sorted set stored at key with a score between minScore and maxScore.
      java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyscore​(@NonNull java.lang.String key, @NonNull RangeOptions.ScoreRange minScore, @NonNull RangeOptions.ScoreRange maxScore)
      Removes all elements in the sorted set stored at key with a score between minScore and maxScore.
      java.util.concurrent.CompletableFuture<java.lang.Long> zrevrank​(@NonNull GlideString key, @NonNull GlideString member)
      Returns the rank of member in the sorted set stored at key, where scores are ordered from the highest to lowest, starting from 0.
      To get the rank of member with its score, see SortedSetBaseCommands.zrevrankWithScore(java.lang.String, java.lang.String).
      java.util.concurrent.CompletableFuture<java.lang.Long> zrevrank​(@NonNull java.lang.String key, @NonNull java.lang.String member)
      Returns the rank of member in the sorted set stored at key, where scores are ordered from the highest to lowest, starting from 0.
      To get the rank of member with its score, see SortedSetBaseCommands.zrevrankWithScore(java.lang.String, java.lang.String).
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zrevrankWithScore​(@NonNull GlideString key, @NonNull GlideString member)
      Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the highest to lowest, starting from 0.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zrevrankWithScore​(@NonNull java.lang.String key, @NonNull java.lang.String member)
      Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the highest to lowest, starting from 0.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull GlideString key, @NonNull GlideString cursor)
      Iterates incrementally over a sorted set.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull GlideString key, @NonNull GlideString cursor, @NonNull ZScanOptionsBinary zScanOptions)
      Iterates incrementally over a sorted set.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull java.lang.String key, @NonNull java.lang.String cursor)
      Iterates incrementally over a sorted set.
      java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull java.lang.String key, @NonNull java.lang.String cursor, @NonNull ZScanOptions zScanOptions)
      Iterates incrementally over a sorted set.
      java.util.concurrent.CompletableFuture<java.lang.Double> zscore​(@NonNull GlideString key, @NonNull GlideString member)
      Returns the score of member in the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.Double> zscore​(@NonNull java.lang.String key, @NonNull java.lang.String member)
      Returns the score of member in the sorted set stored at key.
      java.util.concurrent.CompletableFuture<java.lang.String[]> zunion​(@NonNull WeightAggregateOptions.KeyArray keys)
      Returns the union of members from sorted sets specified by the given keys.
      To get the elements with their scores, see SortedSetBaseCommands.zunionWithScores(glide.api.models.commands.WeightAggregateOptions.KeysOrWeightedKeys, glide.api.models.commands.WeightAggregateOptions.Aggregate).
      java.util.concurrent.CompletableFuture<GlideString[]> zunion​(@NonNull WeightAggregateOptions.KeyArrayBinary keys)
      Returns the union of members from sorted sets specified by the given keys.
      To get the elements with their scores, see SortedSetBaseCommands.zunionWithScores(glide.api.models.commands.WeightAggregateOptions.KeysOrWeightedKeys, glide.api.models.commands.WeightAggregateOptions.Aggregate).
      java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull GlideString destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys)
      Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull GlideString destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull java.lang.String destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys)
      Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull java.lang.String destination, @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zunionWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys)
      Returns the union of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      To perform a zunion operation while specifying aggregation settings, use SortedSetBaseCommands.zunionWithScores(KeysOrWeightedKeys, Aggregate).
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zunionWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys)
      Returns the union of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      To perform a zunion operation while specifying aggregation settings, use SortedSetBaseCommands.zunionWithScores(KeysOrWeightedKeys, Aggregate).
      java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zunionWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Returns the union of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zunionWithScores​(@NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys, @NonNull WeightAggregateOptions.Aggregate aggregate)
      Returns the union of members and their scores from sorted sets specified by the given keysOrWeightedKeys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OK

        public static final java.lang.String OK
        Valkey simple string response with "OK"
      • WITH_VALUES_VALKEY_API

        public static final java.lang.String WITH_VALUES_VALKEY_API
        See Also:
        Constant Field Values
      • COUNT_VALKEY_API

        public static final java.lang.String COUNT_VALKEY_API
        See Also:
        Constant Field Values
      • WITH_SCORE_VALKEY_API

        public static final java.lang.String WITH_SCORE_VALKEY_API
        See Also:
        Constant Field Values
      • WITH_SCORES_VALKEY_API

        public static final java.lang.String WITH_SCORES_VALKEY_API
        See Also:
        Constant Field Values
      • LIMIT_VALKEY_API

        public static final java.lang.String LIMIT_VALKEY_API
        See Also:
        Constant Field Values
      • SET_LIMIT_VALKEY_API

        public static final java.lang.String SET_LIMIT_VALKEY_API
        See Also:
        Constant Field Values
      • COUNT_FOR_LIST_VALKEY_API

        public static final java.lang.String COUNT_FOR_LIST_VALKEY_API
        See Also:
        Constant Field Values
      • REPLACE_VALKEY_API

        public static final java.lang.String REPLACE_VALKEY_API
        See Also:
        Constant Field Values
      • IDX_COMMAND_STRING

        public static final java.lang.String IDX_COMMAND_STRING
        See Also:
        Constant Field Values
      • MINMATCHLEN_COMMAND_STRING

        public static final java.lang.String MINMATCHLEN_COMMAND_STRING
        See Also:
        Constant Field Values
      • WITHMATCHLEN_COMMAND_STRING

        public static final java.lang.String WITHMATCHLEN_COMMAND_STRING
        See Also:
        Constant Field Values
      • LCS_MATCHES_RESULT_KEY

        public static final java.lang.String LCS_MATCHES_RESULT_KEY
        See Also:
        Constant Field Values
      • SCHEDULE_VALKEY_API

        protected static final java.lang.String SCHEDULE_VALKEY_API
        See Also:
        Constant Field Values
      • CANCEL_VALKEY_API

        protected static final java.lang.String CANCEL_VALKEY_API
        See Also:
        Constant Field Values
      • EMPTY_STRING_ARRAY

        protected static final java.lang.String[] EMPTY_STRING_ARRAY
      • EMPTY_GLIDE_STRING_ARRAY

        protected static final GlideString[] EMPTY_GLIDE_STRING_ARRAY
    • Method Detail

      • createClient

        protected static <T extends BaseClient> java.util.concurrent.CompletableFuture<T> createClient​(@NonNull
                                                                                                       @NonNull BaseClientConfiguration config,
                                                                                                       java.util.function.Function<BaseClient.ClientBuilder,​T> constructor)
        Create native client
        Type Parameters:
        T - Client type.
        Parameters:
        config - client Configuration.
        constructor - client constructor reference.
        Returns:
        a Future to connect and return a client.
      • buildConnectionManager

        protected static ConnectionManager buildConnectionManager()
        Build ConnectionManager for native client
      • buildCommandManager

        protected static CommandManager buildCommandManager​(ConnectionManager connectionManager)
        Build CommandManager for native client
      • getStatistics

        public java.util.Map<java.lang.String,​java.lang.String> getStatistics()
        Return a statistics
        Returns:
        Return a Map that contains the statistics collected internally by GLIDE core
      • tryGetPubSubMessage

        public PubSubMessage tryGetPubSubMessage()
        Return a next pubsub message if it is present.
        Returns:
        A message if any or null if there are no unread messages.
        Throws:
        ConfigurationError - If client is not subscribed to any channel or if client configured with a callback.
      • getPubSubMessage

        public java.util.concurrent.CompletableFuture<PubSubMessage> getPubSubMessage()
        Returns a promise for a next pubsub message.
        Message gets unrecoverable lost if future is cancelled or reference to this future is lost.
        Returns:
        A CompletableFuture which will asynchronously hold the next available message.
        Throws:
        ConfigurationError - If client is not subscribed to any channel or if client configured with a callback.
      • close

        public void close()
                   throws java.util.concurrent.ExecutionException
        Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.util.concurrent.ExecutionException
        See Also:
        AutoCloseable::close()
      • isConnected

        public boolean isConnected()
        Check if the client is connected and ready for commands.
      • getClientInfo

        public java.lang.String getClientInfo()
        Get client information from the native layer.
      • handleValkeyResponse

        protected <T> T handleValkeyResponse​(java.lang.Class<T> classType,
                                             java.util.EnumSet<BaseClient.ResponseFlags> flags,
                                             ResponseOuterClass.Response response)
                                      throws GlideException
        Extracts the value from a GLIDE core response message and either throws an exception or returns the value as an object of type T.
        Type Parameters:
        T - The return value type.
        Parameters:
        response - protobuf message.
        classType - Parameter T class type.
        flags - A set of parameters which describes how to handle the response. Could be empty or any combination of
        Returns:
        Response as an object of type T or null.
        Throws:
        GlideException - On a type mismatch.
      • handleMapResponse

        protected <V> java.util.Map<java.lang.String,​V> handleMapResponse​(ResponseOuterClass.Response response)
                                                                         throws GlideException
        Type Parameters:
        V - Value type.
        Parameters:
        response - A Protobuf response
        Returns:
        A map of String to V.
        Throws:
        GlideException
      • handleBinaryStringMapResponse

        protected <V> java.util.Map<GlideString,​V> handleBinaryStringMapResponse​(ResponseOuterClass.Response response)
                                                                                throws GlideException
        Get a map and convert Map keys from byte[] to String.
        Type Parameters:
        V - Value type.
        Parameters:
        response - A Protobuf response
        Returns:
        A map of GlideString to V.
        Throws:
        GlideException
      • handleMapOrNullResponse

        protected <V> java.util.Map<java.lang.String,​V> handleMapOrNullResponse​(ResponseOuterClass.Response response)
                                                                               throws GlideException
        Type Parameters:
        V - Value type.
        Parameters:
        response - A Protobuf response
        Returns:
        A map of String to V or null
        Throws:
        GlideException
      • handleMapOfArraysResponse

        protected java.util.Map<java.lang.String,​java.lang.String[]> handleMapOfArraysResponse​(ResponseOuterClass.Response response)
                                                                                              throws GlideException
        Parameters:
        response - A Protobuf response
        Returns:
        A map of String to String[]
        Throws:
        GlideException
      • handleXReadResponse

        protected java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>> handleXReadResponse​(ResponseOuterClass.Response response)
                                                                                                                                throws GlideException
        Parameters:
        response - A Protobuf response
        Returns:
        A map of a map of String[][]
        Throws:
        GlideException
      • handleFunctionListResponse

        protected java.util.Map<java.lang.String,​java.lang.Object>[] handleFunctionListResponse​(java.lang.Object[] response)
        Process a FUNCTION LIST standalone response.
      • handleFunctionListResponseBinary

        protected java.util.Map<GlideString,​java.lang.Object>[] handleFunctionListResponseBinary​(java.lang.Object[] response)
        Process a FUNCTION LIST standalone response.
      • handleFunctionStatsResponse

        protected java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> handleFunctionStatsResponse​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> response)
        Process a FUNCTION STATS response from one node.
      • handleFunctionStatsBinaryResponse

        protected java.util.Map<GlideString,​java.util.Map<GlideString,​java.lang.Object>> handleFunctionStatsBinaryResponse​(java.util.Map<GlideString,​java.util.Map<GlideString,​java.lang.Object>> response)
        Process a FUNCTION STATS response from one node.
      • handleFunctionStatsResponse

        protected ClusterValue<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>>> handleFunctionStatsResponse​(ResponseOuterClass.Response response,
                                                                                                                                                         boolean isSingleValue)
        Process a FUNCTION STATS cluster response.
      • handleLcsIdxResponse

        protected java.util.Map<java.lang.String,​java.lang.Object> handleLcsIdxResponse​(java.util.Map<java.lang.String,​java.lang.Object> response)
                                                                                       throws GlideException
        Process a LCS key1 key2 IDX response
        Throws:
        GlideException
      • updateConnectionPassword

        public java.util.concurrent.CompletableFuture<java.lang.String> updateConnectionPassword​(@NonNull
                                                                                                 @NonNull java.lang.String password,
                                                                                                 boolean immediateAuth)
        Update the current connection with a new password.

        This method is useful in scenarios where the server password has changed or when utilizing short-lived passwords for enhanced security. It allows the client to update its password to reconnect upon disconnection without the need to recreate the client instance. This ensures that the internal reconnection mechanism can handle reconnection seamlessly, preventing the loss of in-flight commands.

        Parameters:
        immediateAuth - A boolean flag. If true, the client will authenticate immediately with the new password against all connections, Using AUTH command.
        If password supplied is an empty string, the client will not perform auth and a warning will be returned.
        The default is `false`.
        password - A new password to set.
        Returns:
        "OK".
        Throws:
        ConfigurationError - if the client is using IAM authentication.
        Example:
        
         String response = client.resetConnectionPassword("new_password", RE_AUTHENTICATE).get();
         assert response.equals("OK");
         
      • updateConnectionPassword

        public java.util.concurrent.CompletableFuture<java.lang.String> updateConnectionPassword​(boolean immediateAuth)
        Update the current connection by removing the password.

        This method is useful in scenarios where the server password has changed or when utilizing short-lived passwords for enhanced security. It allows the client to update its password to reconnect upon disconnection without the need to recreate the client instance. This ensures that the internal reconnection mechanism can handle reconnection seamlessly, preventing the loss of in-flight commands.

        Parameters:
        immediateAuth - A boolean flag. If true, the client will authenticate immediately with the new password against all connections, Using AUTH command.
        If password supplied is an empty string, the client will not perform auth and a warning will be returned.
        The default is `false`.
        Returns:
        "OK".
        Throws:
        ConfigurationError - if the client is using IAM authentication.
        Example:
        
         String response = client.resetConnectionPassword(true).get();
         assert response.equals("OK");
         
      • refreshIamToken

        public java.util.concurrent.CompletableFuture<java.lang.String> refreshIamToken()
        Manually refresh the IAM token for the current connection.

        This method is only available if the client was created with IAM authentication. It triggers an immediate refresh of the IAM token and updates the connection.

        Returns:
        A CompletableFuture that resolves to "OK" on success.
        Throws:
        ConfigurationError - if the client is not using IAM authentication.
        Example:
        
         // Create client with IAM authentication
         GlideClientConfiguration config = GlideClientConfiguration.builder()
             .address(NodeAddress.builder().host("my-cluster.amazonaws.com").port(6379).build())
             .credentials(ServerCredentials.builder()
                 .username("myUser")
                 .iamConfig(IamAuthConfig.builder()
                     .clusterName("my-cluster")
                     .service(ServiceType.ELASTICACHE)
                     .region("us-east-1")
                     .build())
                 .build())
             .build();
         GlideClient client = GlideClient.createClient(config).get();
        
         // Manually refresh the IAM token
         String response = client.refreshIamToken().get();
         assert response.equals("OK");
         
      • getCacheHitRate

        public java.util.concurrent.CompletableFuture<java.lang.Double> getCacheHitRate()
        Get the cache hit rate metric.

        This method returns the percentage of cache hits out of total cache requests. Only available when client-side caching is enabled with metrics collection.

        Returns:
        A CompletableFuture that resolves to the cache hit rate as a percentage (0.0 to 100.0).
        Throws:
        RequestException - if caching is not enabled or metrics are disabled.
        Example:
        
         // Get cache hit rate
         Double hitRate = client.getCacheHitRate().get();
         System.out.println("Cache hit rate: " + hitRate + "%");
         
      • getCacheMissRate

        public java.util.concurrent.CompletableFuture<java.lang.Double> getCacheMissRate()
        Get the cache miss rate metric.

        This method returns the percentage of cache misses out of total cache requests. Only available when client-side caching is enabled with metrics collection.

        Returns:
        A CompletableFuture that resolves to the cache miss rate as a percentage (0.0 to 100.0).
        Throws:
        RequestException - if caching is not enabled or metrics are disabled.
        Example:
        
         // Get cache miss rate
         Double missRate = client.getCacheMissRate().get();
         System.out.println("Cache miss rate: " + missRate + "%");
         
      • getCacheEntryCount

        public java.util.concurrent.CompletableFuture<java.lang.Long> getCacheEntryCount()
        Get the current number of entries in the cache.

        This method returns the total count of cached entries currently stored in the client-side cache. Available when client-side caching is enabled.

        Returns:
        A CompletableFuture that resolves to the number of cache entries.
        Throws:
        RequestException - if caching is not enabled.
        Example:
        
         // Get cache entry count
         Long entryCount = client.getCacheEntryCount().get();
         System.out.println("Cache entries: " + entryCount);
         
      • getCacheEvictions

        public java.util.concurrent.CompletableFuture<java.lang.Long> getCacheEvictions()
        Get the total number of cache evictions.

        This method returns the count of entries that have been evicted from the cache due to memory limits or eviction policies. Only available when client-side caching is enabled with metrics collection.

        Returns:
        A CompletableFuture that resolves to the total number of evictions.
        Throws:
        RequestException - if caching is not enabled or metrics are disabled.
        Example:
        
         // Get cache evictions count
         Long evictions = client.getCacheEvictions().get();
         System.out.println("Cache evictions: " + evictions);
         
      • getCacheExpirations

        public java.util.concurrent.CompletableFuture<java.lang.Long> getCacheExpirations()
        Get the total number of cache expirations.

        This method returns the count of entries that have expired from the cache due to TTL settings. Only available when client-side caching is enabled with metrics collection.

        Returns:
        A CompletableFuture that resolves to the total number of expirations.
        Throws:
        RequestException - if caching is not enabled or metrics are disabled.
        Example:
        
         // Get cache expirations count
         Long expirations = client.getCacheExpirations().get();
         System.out.println("Cache expirations: " + expirations);
         
      • getCacheTotalLookups

        public java.util.concurrent.CompletableFuture<java.lang.Long> getCacheTotalLookups()
        Get the total number of cache lookups (hits + misses).

        This method returns the sum of cache hits and misses, representing the total number of cache lookup operations performed. Only available when client-side caching is enabled with metrics collection.

        Returns:
        A CompletableFuture that resolves to the total number of cache lookups.
        Throws:
        RequestException - if caching is not enabled or metrics are disabled.
        Example:
        
         // Get total cache lookups
         Long totalLookups = client.getCacheTotalLookups().get();
         System.out.println("Total cache lookups: " + totalLookups);
         
      • del

        public java.util.concurrent.CompletableFuture<java.lang.Long> del​(@NonNull
                                                                          @NonNull java.lang.String[] keys)
        Description copied from interface: GenericBaseCommands
        Removes the specified keys from the database. A key is ignored if it does not exist.
        Specified by:
        del in interface GenericBaseCommands
        Parameters:
        keys - The keys we wanted to remove.
        Returns:
        The number of keys that were removed.
        See Also:
        valkey.io for details.
      • del

        public java.util.concurrent.CompletableFuture<java.lang.Long> del​(@NonNull
                                                                          @NonNull GlideString[] keys)
        Description copied from interface: GenericBaseCommands
        Removes the specified keys from the database. A key is ignored if it does not exist.
        Specified by:
        del in interface GenericBaseCommands
        Parameters:
        keys - The keys we wanted to remove.
        Returns:
        The number of keys that were removed.
        See Also:
        valkey.io for details.
      • get

        public java.util.concurrent.CompletableFuture<java.lang.String> get​(@NonNull
                                                                            @NonNull java.lang.String key)
        Description copied from interface: StringBaseCommands
        Gets the value associated with the given key, or null if no such key exists.
        Specified by:
        get in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        Returns:
        If key exists, returns the value of key as a String. Otherwise, return null.
        See Also:
        valkey.io for details.
      • get

        public java.util.concurrent.CompletableFuture<GlideString> get​(@NonNull
                                                                       @NonNull GlideString key)
        Description copied from interface: StringBaseCommands
        Gets the value associated with the given key, or null if no such key exists.
        Specified by:
        get in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        Returns:
        If key exists, returns the value of key as a String. Otherwise, return null.
        See Also:
        valkey.io for details.
      • getdel

        public java.util.concurrent.CompletableFuture<java.lang.String> getdel​(@NonNull
                                                                               @NonNull java.lang.String key)
        Description copied from interface: StringBaseCommands
        Gets a string value associated with the given key and deletes the key.
        Specified by:
        getdel in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        Returns:
        If key exists, returns the value of key. Otherwise, return null.
        See Also:
        valkey.io for details.
      • getdel

        public java.util.concurrent.CompletableFuture<GlideString> getdel​(@NonNull
                                                                          @NonNull GlideString key)
        Description copied from interface: StringBaseCommands
        Gets a string value associated with the given key and deletes the key.
        Specified by:
        getdel in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        Returns:
        If key exists, returns the value of key. Otherwise, return null.
        See Also:
        valkey.io for details.
      • getex

        public java.util.concurrent.CompletableFuture<java.lang.String> getex​(@NonNull
                                                                              @NonNull java.lang.String key)
        Description copied from interface: StringBaseCommands
        Gets the value associated with the given key.
        Specified by:
        getex in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        Returns:
        If key exists, return the value of the key. Otherwise, return null.
        See Also:
        valkey.io for details.
      • getex

        public java.util.concurrent.CompletableFuture<GlideString> getex​(@NonNull
                                                                         @NonNull GlideString key)
        Description copied from interface: StringBaseCommands
        Gets the value associated with the given key.
        Specified by:
        getex in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        Returns:
        If key exists, return the value of the key. Otherwise, return null.
        See Also:
        valkey.io for details.
      • getex

        public java.util.concurrent.CompletableFuture<java.lang.String> getex​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              @NonNull
                                                                              @NonNull GetExOptions options)
        Description copied from interface: StringBaseCommands
        Gets the value associated with the given key.
        Specified by:
        getex in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        options - The GetExOptions options.
        Returns:
        If key exists, return the value of the key. Otherwise, return null.
        See Also:
        valkey.io for details.
      • getex

        public java.util.concurrent.CompletableFuture<GlideString> getex​(@NonNull
                                                                         @NonNull GlideString key,
                                                                         @NonNull
                                                                         @NonNull GetExOptions options)
        Description copied from interface: StringBaseCommands
        Gets the value associated with the given key.
        Specified by:
        getex in interface StringBaseCommands
        Parameters:
        key - The key to retrieve from the database.
        options - The GetExOptions options.
        Returns:
        If key exists, return the value of the key. Otherwise, return null.
        See Also:
        valkey.io for details.
      • set

        public java.util.concurrent.CompletableFuture<java.lang.String> set​(@NonNull
                                                                            @NonNull java.lang.String key,
                                                                            @NonNull
                                                                            @NonNull java.lang.String value)
        Description copied from interface: StringBaseCommands
        Sets the given key with the given value.
        Specified by:
        set in interface StringBaseCommands
        Parameters:
        key - The key to store.
        value - The value to store with the given key.
        Returns:
        A simple "OK" response.
        See Also:
        valkey.io for details.
      • set

        public java.util.concurrent.CompletableFuture<java.lang.String> set​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            @NonNull
                                                                            @NonNull GlideString value)
        Description copied from interface: StringBaseCommands
        Sets the given key with the given value.
        Specified by:
        set in interface StringBaseCommands
        Parameters:
        key - The key to store.
        value - The value to store with the given key.
        Returns:
        A simple "OK" response.
        See Also:
        valkey.io for details.
      • append

        public java.util.concurrent.CompletableFuture<java.lang.Long> append​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String value)
        Description copied from interface: StringBaseCommands
        Appends a value to a key. If key does not exist it is created and set as an empty string, so APPEND will be similar to {@see #set} in this special case.
        Specified by:
        append in interface StringBaseCommands
        Parameters:
        key - The key of the string.
        value - The value to append.
        Returns:
        The length of the string after appending the value.
        See Also:
        valkey.io for details.
      • append

        public java.util.concurrent.CompletableFuture<java.lang.Long> append​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull GlideString value)
        Description copied from interface: StringBaseCommands
        Appends a value to a key. If key does not exist it is created and set as an empty string, so APPEND will be similar to {@see #set} in this special case.
        Specified by:
        append in interface StringBaseCommands
        Parameters:
        key - The key of the string.
        value - The value to append.
        Returns:
        The length of the string after appending the value.
        See Also:
        valkey.io for details.
      • mget

        public java.util.concurrent.CompletableFuture<java.lang.String[]> mget​(@NonNull
                                                                               @NonNull java.lang.String[] keys)
        Description copied from interface: StringBaseCommands
        Retrieves the values of multiple keys.
        Specified by:
        mget in interface StringBaseCommands
        Parameters:
        keys - A list of keys to retrieve values for.
        Returns:
        An array of values corresponding to the provided keys.
        If a keyis not found, its corresponding value in the list will be null .
        See Also:
        valkey.io for details.
      • mget

        public java.util.concurrent.CompletableFuture<GlideString[]> mget​(@NonNull
                                                                          @NonNull GlideString[] keys)
        Description copied from interface: StringBaseCommands
        Retrieves the values of multiple keys.
        Specified by:
        mget in interface StringBaseCommands
        Parameters:
        keys - A list of keys to retrieve values for.
        Returns:
        An array of values corresponding to the provided keys.
        If a keyis not found, its corresponding value in the list will be null .
        See Also:
        valkey.io for details.
      • mset

        public java.util.concurrent.CompletableFuture<java.lang.String> mset​(@NonNull
                                                                             @NonNull java.util.Map<java.lang.String,​java.lang.String> keyValueMap)
        Description copied from interface: StringBaseCommands
        Sets multiple keys to multiple values in a single operation.
        Specified by:
        mset in interface StringBaseCommands
        Parameters:
        keyValueMap - A key-value map consisting of keys and their respective values to set.
        Returns:
        A simple OK response.
        See Also:
        valkey.io for details.
      • msetBinary

        public java.util.concurrent.CompletableFuture<java.lang.String> msetBinary​(@NonNull
                                                                                   @NonNull java.util.Map<GlideString,​GlideString> keyValueMap)
        Description copied from interface: StringBaseCommands
        Sets multiple keys to multiple values in a single operation.
        Specified by:
        msetBinary in interface StringBaseCommands
        Parameters:
        keyValueMap - A key-value map consisting of keys and their respective values to set.
        Returns:
        A simple OK response.
        See Also:
        valkey.io for details.
      • move

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> move​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              long dbIndex)
        Description copied from interface: GenericBaseCommands
        Move key from the currently selected database to the database specified by dbIndex.
        Specified by:
        move in interface GenericBaseCommands
        Parameters:
        key - The key to move.
        dbIndex - The index of the database to move key to.
        Returns:
        true if key was moved, or false if the key already exists in the destination database or does not exist in the source database.
        See Also:
        valkey.io for more details.
      • move

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> move​(@NonNull
                                                                              @NonNull GlideString key,
                                                                              long dbIndex)
        Description copied from interface: GenericBaseCommands
        Move key from the currently selected database to the database specified by dbIndex.
        Specified by:
        move in interface GenericBaseCommands
        Parameters:
        key - The key to move.
        dbIndex - The index of the database to move key to.
        Returns:
        true if key was moved, or false if the key already exists in the destination database or does not exist in the source database.
        See Also:
        valkey.io for more details.
      • objectEncoding

        public java.util.concurrent.CompletableFuture<java.lang.String> objectEncoding​(@NonNull
                                                                                       @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the internal encoding for the Valkey object stored at key.
        Specified by:
        objectEncoding in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the internal encoding of.
        Returns:
        If key exists, returns the internal encoding of the object stored at key as a String. Otherwise, returns null.
        See Also:
        valkey.io for details.
      • objectEncoding

        public java.util.concurrent.CompletableFuture<java.lang.String> objectEncoding​(@NonNull
                                                                                       @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the internal encoding for the Valkey object stored at key.
        Specified by:
        objectEncoding in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the internal encoding of.
        Returns:
        If key exists, returns the internal encoding of the object stored at key as a String. Otherwise, returns null.
        See Also:
        valkey.io for details.
      • objectFreq

        public java.util.concurrent.CompletableFuture<java.lang.Long> objectFreq​(@NonNull
                                                                                 @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the logarithmic access frequency counter of a Valkey object stored at key.
        Specified by:
        objectFreq in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the logarithmic access frequency counter of.
        Returns:
        If key exists, returns the logarithmic access frequency counter of the object stored at key as a Long. Otherwise, returns null .
        See Also:
        valkey.io for details.
      • objectFreq

        public java.util.concurrent.CompletableFuture<java.lang.Long> objectFreq​(@NonNull
                                                                                 @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the logarithmic access frequency counter of a Valkey object stored at key.
        Specified by:
        objectFreq in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the logarithmic access frequency counter of.
        Returns:
        If key exists, returns the logarithmic access frequency counter of the object stored at key as a Long. Otherwise, returns null .
        See Also:
        valkey.io for details.
      • objectIdletime

        public java.util.concurrent.CompletableFuture<java.lang.Long> objectIdletime​(@NonNull
                                                                                     @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the time in seconds since the last access to the value stored at key.
        Specified by:
        objectIdletime in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the idle time of.
        Returns:
        If key exists, returns the idle time in seconds. Otherwise, returns null.
        See Also:
        valkey.io for details.
      • objectIdletime

        public java.util.concurrent.CompletableFuture<java.lang.Long> objectIdletime​(@NonNull
                                                                                     @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the time in seconds since the last access to the value stored at key.
        Specified by:
        objectIdletime in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the idle time of.
        Returns:
        If key exists, returns the idle time in seconds. Otherwise, returns null.
        See Also:
        valkey.io for details.
      • objectRefcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> objectRefcount​(@NonNull
                                                                                     @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the reference count of the object stored at key.
        Specified by:
        objectRefcount in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the reference count of.
        Returns:
        If key exists, returns the reference count of the object stored at key as a Long. Otherwise, returns null.
        See Also:
        valkey.io for details.
      • objectRefcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> objectRefcount​(@NonNull
                                                                                     @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the reference count of the object stored at key.
        Specified by:
        objectRefcount in interface GenericBaseCommands
        Parameters:
        key - The key of the object to get the reference count of.
        Returns:
        If key exists, returns the reference count of the object stored at key as a Long. Otherwise, returns null.
        See Also:
        valkey.io for details.
      • rename

        public java.util.concurrent.CompletableFuture<java.lang.String> rename​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               @NonNull
                                                                               @NonNull java.lang.String newKey)
        Description copied from interface: GenericBaseCommands
        Renames key to newKey.
        If newKey already exists it is overwritten.
        Specified by:
        rename in interface GenericBaseCommands
        Parameters:
        key - The key to rename.
        newKey - The new name of the key.
        Returns:
        If the key was successfully renamed, return "OK". If key does not exist, an error is thrown.
        See Also:
        valkey.io for details.
      • rename

        public java.util.concurrent.CompletableFuture<java.lang.String> rename​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               @NonNull
                                                                               @NonNull GlideString newKey)
        Description copied from interface: GenericBaseCommands
        Renames key to newKey.
        If newKey already exists it is overwritten.
        Specified by:
        rename in interface GenericBaseCommands
        Parameters:
        key - The key to rename.
        newKey - The new name of the key.
        Returns:
        If the key was successfully renamed, return "OK". If key does not exist, an error is thrown.
        See Also:
        valkey.io for details.
      • renamenx

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> renamenx​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String newKey)
        Description copied from interface: GenericBaseCommands
        Renames key to newKey if newKey does not yet exist.
        Specified by:
        renamenx in interface GenericBaseCommands
        Parameters:
        key - The key to rename.
        newKey - The new key name.
        Returns:
        true if key was renamed to newKey, false if newKey already exists.
        See Also:
        valkey.io for details.
      • renamenx

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> renamenx​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull GlideString newKey)
        Description copied from interface: GenericBaseCommands
        Renames key to newKey if newKey does not yet exist.
        Specified by:
        renamenx in interface GenericBaseCommands
        Parameters:
        key - The key to rename.
        newKey - The new key name.
        Returns:
        true if key was renamed to newKey, false if newKey already exists.
        See Also:
        valkey.io for details.
      • incr

        public java.util.concurrent.CompletableFuture<java.lang.Long> incr​(@NonNull
                                                                           @NonNull java.lang.String key)
        Description copied from interface: StringBaseCommands
        Increments the number stored at key by one. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        incr in interface StringBaseCommands
        Parameters:
        key - The key to increment its value.
        Returns:
        The value of key after the increment.
        See Also:
        valkey.io for details.
      • incr

        public java.util.concurrent.CompletableFuture<java.lang.Long> incr​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: StringBaseCommands
        Increments the number stored at key by one. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        incr in interface StringBaseCommands
        Parameters:
        key - The key to increment its value.
        Returns:
        The value of key after the increment.
        See Also:
        valkey.io for details.
      • incrBy

        public java.util.concurrent.CompletableFuture<java.lang.Long> incrBy​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long amount)
        Description copied from interface: StringBaseCommands
        Increments the number stored at key by amount. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        incrBy in interface StringBaseCommands
        Parameters:
        key - The key to increment its value.
        amount - The amount to increment.
        Returns:
        The value of key after the increment.
        See Also:
        valkey.io for details.
      • incrBy

        public java.util.concurrent.CompletableFuture<java.lang.Long> incrBy​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long amount)
        Description copied from interface: StringBaseCommands
        Increments the number stored at key by amount. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        incrBy in interface StringBaseCommands
        Parameters:
        key - The key to increment its value.
        amount - The amount to increment.
        Returns:
        The value of key after the increment.
        See Also:
        valkey.io for details.
      • incrByFloat

        public java.util.concurrent.CompletableFuture<java.lang.Double> incrByFloat​(@NonNull
                                                                                    @NonNull java.lang.String key,
                                                                                    double amount)
        Description copied from interface: StringBaseCommands
        Increments the string representing a floating point number stored at key by amount. By using a negative increment value, the result is that the value stored at key is decremented. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        incrByFloat in interface StringBaseCommands
        Parameters:
        key - The key to increment its value.
        amount - The amount to increment.
        Returns:
        The value of key after the increment.
        See Also:
        valkey.io for details.
      • incrByFloat

        public java.util.concurrent.CompletableFuture<java.lang.Double> incrByFloat​(@NonNull
                                                                                    @NonNull GlideString key,
                                                                                    double amount)
        Description copied from interface: StringBaseCommands
        Increments the string representing a floating point number stored at key by amount. By using a negative increment value, the result is that the value stored at key is decremented. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        incrByFloat in interface StringBaseCommands
        Parameters:
        key - The key to increment its value.
        amount - The amount to increment.
        Returns:
        The value of key after the increment.
        See Also:
        valkey.io for details.
      • decr

        public java.util.concurrent.CompletableFuture<java.lang.Long> decr​(@NonNull
                                                                           @NonNull java.lang.String key)
        Description copied from interface: StringBaseCommands
        Decrements the number stored at key by one. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        decr in interface StringBaseCommands
        Parameters:
        key - The key to decrement its value.
        Returns:
        The value of key after the decrement.
        See Also:
        valkey.io for details.
      • decr

        public java.util.concurrent.CompletableFuture<java.lang.Long> decr​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: StringBaseCommands
        Decrements the number stored at key by one. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        decr in interface StringBaseCommands
        Parameters:
        key - The key to decrement its value.
        Returns:
        The value of key after the decrement.
        See Also:
        valkey.io for details.
      • decrBy

        public java.util.concurrent.CompletableFuture<java.lang.Long> decrBy​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long amount)
        Description copied from interface: StringBaseCommands
        Decrements the number stored at key by amount. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        decrBy in interface StringBaseCommands
        Parameters:
        key - The key to decrement its value.
        amount - The amount to decrement.
        Returns:
        The value of key after the decrement.
        See Also:
        valkey.io for details.
      • decrBy

        public java.util.concurrent.CompletableFuture<java.lang.Long> decrBy​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long amount)
        Description copied from interface: StringBaseCommands
        Decrements the number stored at key by amount. If key does not exist, it is set to 0 before performing the operation.
        Specified by:
        decrBy in interface StringBaseCommands
        Parameters:
        key - The key to decrement its value.
        amount - The amount to decrement.
        Returns:
        The value of key after the decrement.
        See Also:
        valkey.io for details.
      • strlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> strlen​(@NonNull
                                                                             @NonNull java.lang.String key)
        Description copied from interface: StringBaseCommands
        Returns the length of the string value stored at key.
        Specified by:
        strlen in interface StringBaseCommands
        Parameters:
        key - The key to check its length.
        Returns:
        The length of the string value stored at key.
        If key does not exist, it is treated as an empty string, and the command returns 0.
        See Also:
        valkey.io for details.
      • strlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> strlen​(@NonNull
                                                                             @NonNull GlideString key)
        Description copied from interface: StringBaseCommands
        Returns the length of the string value stored at key.
        Specified by:
        strlen in interface StringBaseCommands
        Parameters:
        key - The key to check its length.
        Returns:
        The length of the string value stored at key.
        If key does not exist, it is treated as an empty string, and the command returns 0.
        See Also:
        valkey.io for details.
      • setrange

        public java.util.concurrent.CompletableFuture<java.lang.Long> setrange​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               int offset,
                                                                               @NonNull
                                                                               @NonNull java.lang.String value)
        Description copied from interface: StringBaseCommands
        Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value.
        If the offset is larger than the current length of the string at key, the string is padded with zero bytes to make offset fit. Creates the key if it doesn't exist.
        Specified by:
        setrange in interface StringBaseCommands
        Parameters:
        key - The key of the string to update.
        offset - The position in the string where value should be written.
        value - The string written with offset.
        Returns:
        The length of the string stored at key after it was modified.
        See Also:
        valkey.io for details.
      • setrange

        public java.util.concurrent.CompletableFuture<java.lang.Long> setrange​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               int offset,
                                                                               @NonNull
                                                                               @NonNull GlideString value)
        Description copied from interface: StringBaseCommands
        Overwrites part of the GlideString stored at key, starting at the specified offset, for the entire length of value.
        If the offset is larger than the current length of the GlideString at key , the GlideString is padded with zero bytes to make offset fit. Creates the key if it doesn't exist.
        Specified by:
        setrange in interface StringBaseCommands
        Parameters:
        key - The key of the GlideString to update.
        offset - The position in the GlideString where value should be written.
        value - The GlideString written with offset.
        Returns:
        The length of the GlideString stored at key after it was modified.
        See Also:
        valkey.io for details.
      • getrange

        public java.util.concurrent.CompletableFuture<java.lang.String> getrange​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 int start,
                                                                                 int end)
        Description copied from interface: StringBaseCommands
        Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string. So -1 means the last character, -2 the penultimate and so forth. If key does not exist, an empty string is returned. If start or end are out of range, returns the substring within the valid range of the string.
        Specified by:
        getrange in interface StringBaseCommands
        Parameters:
        key - The key of the string.
        start - The starting offset.
        end - The ending offset.
        Returns:
        A substring extracted from the value stored at key..
        See Also:
        valkey.io for details.
      • getrange

        public java.util.concurrent.CompletableFuture<GlideString> getrange​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            int start,
                                                                            int end)
        Description copied from interface: StringBaseCommands
        Returns the subGlideString of the GlideString value stored at key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the GlideString. So -1 means the last character, -2 the penultimate and so forth. If key does not exist, an empty GlideString is returned. If start or end are out of range, returns the subGlideString within the valid range of the GlideString.
        Specified by:
        getrange in interface StringBaseCommands
        Parameters:
        key - The key of the GlideString.
        start - The starting offset.
        end - The ending offset.
        Returns:
        A subGlideString extracted from the value stored at key..
        See Also:
        valkey.io for details.
      • hget

        public java.util.concurrent.CompletableFuture<java.lang.String> hget​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String field)
        Description copied from interface: HashBaseCommands
        Retrieves the value associated with field in the hash stored at key.
        Specified by:
        hget in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash stored at key to retrieve from the database.
        Returns:
        The value associated with field, or null when field is not present in the hash or key does not exist.
        See Also:
        valkey.io for details.
      • hget

        public java.util.concurrent.CompletableFuture<GlideString> hget​(@NonNull
                                                                        @NonNull GlideString key,
                                                                        @NonNull
                                                                        @NonNull GlideString field)
        Description copied from interface: HashBaseCommands
        Retrieves the value associated with field in the hash stored at key.
        Specified by:
        hget in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash stored at key to retrieve from the database.
        Returns:
        The value associated with field, or null when field is not present in the hash or key does not exist.
        See Also:
        valkey.io for details.
      • hset

        public java.util.concurrent.CompletableFuture<java.lang.Long> hset​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<java.lang.String,​java.lang.String> fieldValueMap)
        Description copied from interface: HashBaseCommands
        Sets the specified fields to their respective values in the hash stored at key.
        Specified by:
        hset in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fieldValueMap - A field-value map consisting of fields and their corresponding values to be set in the hash stored at the specified key.
        Returns:
        The number of fields that were added.
        See Also:
        valkey.io for details.
      • hset

        public java.util.concurrent.CompletableFuture<java.lang.Long> hset​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<GlideString,​GlideString> fieldValueMap)
        Description copied from interface: HashBaseCommands
        Sets the specified fields to their respective values in the hash stored at key.
        Specified by:
        hset in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fieldValueMap - A field-value map consisting of fields and their corresponding values to be set in the hash stored at the specified key.
        Returns:
        The number of fields that were added.
        See Also:
        valkey.io for details.
      • hsetnx

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> hsetnx​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String field,
                                                                                @NonNull
                                                                                @NonNull java.lang.String value)
        Description copied from interface: HashBaseCommands
        Sets field in the hash stored at key to value, only if field does not yet exist.
        If key does not exist, a new key holding a hash is created.
        If field already exists, this operation has no effect.
        Specified by:
        hsetnx in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field to set the value for.
        value - The value to set.
        Returns:
        true if the field was set, false if the field already existed and was not set.
        See Also:
        valkey.io for details.
      • hsetnx

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> hsetnx​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString field,
                                                                                @NonNull
                                                                                @NonNull GlideString value)
        Description copied from interface: HashBaseCommands
        Sets field in the hash stored at key to value, only if field does not yet exist.
        If key does not exist, a new key holding a hash is created.
        If field already exists, this operation has no effect.
        Specified by:
        hsetnx in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field to set the value for.
        value - The value to set.
        Returns:
        true if the field was set, false if the field already existed and was not set.
        See Also:
        valkey.io for details.
      • hsetex

        public java.util.concurrent.CompletableFuture<java.lang.Long> hsetex​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<java.lang.String,​java.lang.String> fieldValueMap,
                                                                             HSetExOptions options)
        Description copied from interface: HashBaseCommands
        Sets the specified fields to their respective values in the hash stored at key with optional expiration and conditional options.
        Specified by:
        hsetex in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fieldValueMap - A field-value map consisting of fields and their corresponding values to be set in the hash stored at the specified key.
        options - Optional parameters for the command including conditional changes and expiry settings. See HSetExOptions.
        Returns:
        1 if all the fields' values and expiration times were set successfully, 0 otherwise.
        See Also:
        valkey.io for details.
      • hsetex

        public java.util.concurrent.CompletableFuture<java.lang.Long> hsetex​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<GlideString,​GlideString> fieldValueMap,
                                                                             HSetExOptions options)
        Description copied from interface: HashBaseCommands
        Sets the specified fields to their respective values in the hash stored at key with optional expiration and conditional options.
        Specified by:
        hsetex in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fieldValueMap - A field-value map consisting of fields and their corresponding values to be set in the hash stored at the specified key.
        options - Optional parameters for the command including conditional changes and expiry settings. See HSetExOptions.
        Returns:
        1 if all the fields' values and expiration times were set successfully, 0 otherwise.
        See Also:
        valkey.io for details.
      • hgetex

        public java.util.concurrent.CompletableFuture<java.lang.String[]> hgetex​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String[] fields,
                                                                                 HGetExOptions options)
        Description copied from interface: HashBaseCommands
        Retrieves the values of specified fields from the hash stored at key and optionally sets their expiration or removes it.
        Specified by:
        hgetex in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields in the hash stored at key to retrieve from the database.
        options - Optional parameters for the command including expiry settings or persist option. See HGetExOptions.
        Returns:
        An array of values associated with the given fields, in the same order as they are requested.
        For every field that does not exist in the hash, a null value is returned.
        If key does not exist, it returns null.
        See Also:
        valkey.io for details.
      • hgetex

        public java.util.concurrent.CompletableFuture<GlideString[]> hgetex​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            @NonNull
                                                                            @NonNull GlideString[] fields,
                                                                            HGetExOptions options)
        Description copied from interface: HashBaseCommands
        Retrieves the values of specified fields from the hash stored at key and optionally sets their expiration or removes it.
        Specified by:
        hgetex in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields in the hash stored at key to retrieve from the database.
        options - Optional parameters for the command including expiry settings or persist option. See HGetExOptions.
        Returns:
        An array of values associated with the given fields, in the same order as they are requested.
        For every field that does not exist in the hash, a null value is returned.
        If key does not exist, it returns null.
        See Also:
        valkey.io for details.
      • hexpire

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpire​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                long seconds,
                                                                                @NonNull
                                                                                @NonNull java.lang.String[] fields,
                                                                                HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields. HEXPIRE sets the expiration time in seconds for the specified fields of the hash stored at key. You can specify whether to set the expiration only if the field has no expiration, only if the field has an existing expiration, only if the new expiration is greater than the current one, or only if the new expiration is less than the current one.
        Specified by:
        hexpire in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        seconds - The expiration time in seconds.
        fields - The fields in the hash stored at key to set expiration for.
        options - The expiration condition options. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values indicating the result of setting expiration for each field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or key does not exist.
        • 2 when called with 0 seconds.
        See Also:
        valkey.io for details.
      • hexpire

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpire​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                long seconds,
                                                                                @NonNull
                                                                                @NonNull GlideString[] fields,
                                                                                HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields. HEXPIRE sets the expiration time in seconds for the specified fields of the hash stored at key. You can specify whether to set the expiration only if the field has no expiration, only if the field has an existing expiration, only if the new expiration is greater than the current one, or only if the new expiration is less than the current one.
        Specified by:
        hexpire in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        seconds - The expiration time in seconds.
        fields - The fields in the hash stored at key to set expiration for.
        options - The expiration condition options. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values indicating the result of setting expiration for each field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or key does not exist.
        • 2 when called with 0 seconds.
        See Also:
        valkey.io for details.
      • hpersist

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpersist​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Removes the expiration time for each specified field, turning the field from volatile (a field with expiration time) to persistent (a field that will never expire as no expiration time is associated).
        Specified by:
        hpersist in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to remove expiration from.
        Returns:
        An array of Long values, each corresponding to a field:
        • 1 if the expiration time was successfully removed from the field.
        • -1 if the field exists but has no expiration time.
        • -2 if the field does not exist in the provided hash key, or the hash key does not exist.
        See Also:
        valkey.io for details.
      • hpersist

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpersist​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 @NonNull
                                                                                 @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Removes the expiration time for each specified field, turning the field from volatile (a field with expiration time) to persistent (a field that will never expire as no expiration time is associated).
        Specified by:
        hpersist in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to remove expiration from.
        Returns:
        An array of Long values, each corresponding to a field:
        • 1 if the expiration time was successfully removed from the field.
        • -1 if the field exists but has no expiration time.
        • -2 if the field does not exist in the provided hash key, or the hash key does not exist.
        See Also:
        valkey.io for details.
      • hpexpire

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpire​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 long milliseconds,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String[] fields,
                                                                                 HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields, in milliseconds. Creates the hash if it doesn't exist. If a field is already expired, it will be deleted rather than expired.
        Specified by:
        hpexpire in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        milliseconds - The expiration time to set for the fields, in milliseconds.
        fields - The fields to set expiration for.
        options - The expiration options. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values, each corresponding to a field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or HASH is empty.
        • 2 when called with 0 milliseconds.
        See Also:
        valkey.io for details.
      • hpexpire

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpire​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 long milliseconds,
                                                                                 @NonNull
                                                                                 @NonNull GlideString[] fields,
                                                                                 HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields, in milliseconds. Creates the hash if it doesn't exist. If a field is already expired, it will be deleted rather than expired.
        Specified by:
        hpexpire in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        milliseconds - The expiration time to set for the fields, in milliseconds.
        fields - The fields to set expiration for.
        options - The expiration options. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values, each corresponding to a field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or HASH is empty.
        • 2 when called with 0 milliseconds.
        See Also:
        valkey.io for details.
      • hexpireat

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpireat​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  long unixSeconds,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String[] fields,
                                                                                  HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields, in seconds, using an absolute Unix timestamp. Creates the hash if it doesn't exist. If a field is already expired, it will be deleted rather than expired.
        Specified by:
        hexpireat in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        unixSeconds - The expiration time to set for the fields, as a Unix timestamp in seconds.
        fields - The fields to set expiration for.
        options - The expiration options. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values, each corresponding to a field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or HASH is empty.
        • 2 when called with 0 seconds or past Unix time.
        See Also:
        valkey.io for details.
      • hexpireat

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpireat​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  long unixSeconds,
                                                                                  @NonNull
                                                                                  @NonNull GlideString[] fields,
                                                                                  HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields, in seconds, using an absolute Unix timestamp. Creates the hash if it doesn't exist. If a field is already expired, it will be deleted rather than expired.
        Specified by:
        hexpireat in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        unixSeconds - The expiration time to set for the fields, as a Unix timestamp in seconds.
        fields - The fields to set expiration for.
        options - The expiration options. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values, each corresponding to a field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or HASH is empty.
        • 2 when called with 0 seconds or past Unix time.
        See Also:
        valkey.io for details.
      • hpexpireat

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpireat​(@NonNull
                                                                                   @NonNull java.lang.String key,
                                                                                   long unixMilliseconds,
                                                                                   @NonNull
                                                                                   @NonNull java.lang.String[] fields,
                                                                                   HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields, using an absolute Unix timestamp in milliseconds. HPEXPIREAT has the same effect and semantic as HEXPIREAT, but the Unix time at which the field will expire is specified in milliseconds instead of seconds.
        Specified by:
        hpexpireat in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        unixMilliseconds - The expiration time to set for the fields, as a Unix timestamp in milliseconds.
        fields - An array of hash field names for which to set the expiration.
        options - Optional conditions and configurations for the expiration. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values indicating the result for each field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or HASH is empty.
        • 2 when called with 0 seconds or past Unix time in milliseconds.
        If unixMilliseconds is in the past, the field will be deleted rather than expired.
        See Also:
        valkey.io for details.
      • hpexpireat

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpireat​(@NonNull
                                                                                   @NonNull GlideString key,
                                                                                   long unixMilliseconds,
                                                                                   @NonNull
                                                                                   @NonNull GlideString[] fields,
                                                                                   HashFieldExpirationConditionOptions options)
        Description copied from interface: HashBaseCommands
        Sets expiration time for hash fields, using an absolute Unix timestamp in milliseconds. HPEXPIREAT has the same effect and semantic as HEXPIREAT, but the Unix time at which the field will expire is specified in milliseconds instead of seconds.
        Specified by:
        hpexpireat in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        unixMilliseconds - The expiration time to set for the fields, as a Unix timestamp in milliseconds.
        fields - An array of hash field names for which to set the expiration.
        options - Optional conditions and configurations for the expiration. See HashFieldExpirationConditionOptions.
        Returns:
        An array of Long values indicating the result for each field:
        • 1 if the expiration time was successfully set for the field.
        • 0 if the specified condition was not met.
        • -2 if the field does not exist in the HASH, or HASH is empty.
        • 2 when called with 0 seconds or past Unix time in milliseconds.
        If unixMilliseconds is in the past, the field will be deleted rather than expired.
        See Also:
        valkey.io for details.
      • httl

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> httl​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Returns the remaining time to live of hash fields that have a timeout, in seconds.
        Specified by:
        httl in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the TTL for.
        Returns:
        An array of Long values, each corresponding to a field:
        • TTL in seconds if the field exists and has a timeout.
        • -1 if the field exists but has no associated expire.
        • -2 if the field does not exist in the provided hash key, or the hash key is empty.
        See Also:
        valkey.io for details.
      • httl

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> httl​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Returns the remaining time to live of hash fields that have a timeout, in seconds.
        Specified by:
        httl in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the TTL for.
        Returns:
        An array of Long values, each corresponding to a field:
        • TTL in seconds if the field exists and has a timeout.
        • -1 if the field exists but has no associated expire.
        • -2 if the field does not exist in the provided hash key, or the hash key is empty.
        See Also:
        valkey.io for details.
      • hpttl

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpttl​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              @NonNull
                                                                              @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Returns the remaining time to live of hash fields that have a timeout, in milliseconds.
        Specified by:
        hpttl in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the TTL for.
        Returns:
        An array of TTL values in milliseconds for the specified fields:
        • For fields with a timeout, returns the remaining TTL in milliseconds.
        • For fields that exist but have no associated expire, returns -1.
        • For fields that do not exist in the provided hash key, or the hash key is empty, returns -2.
        See Also:
        valkey.io for details.
      • hpttl

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpttl​(@NonNull
                                                                              @NonNull GlideString key,
                                                                              @NonNull
                                                                              @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Returns the remaining time to live of hash fields that have a timeout, in milliseconds.
        Specified by:
        hpttl in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the TTL for.
        Returns:
        An array of TTL values in milliseconds for the specified fields:
        • For fields with a timeout, returns the remaining TTL in milliseconds.
        • For fields that exist but have no associated expire, returns -1.
        • For fields that do not exist in the provided hash key, or the hash key is empty, returns -2.
        See Also:
        valkey.io for details.
      • hexpiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpiretime​(@NonNull
                                                                                    @NonNull java.lang.String key,
                                                                                    @NonNull
                                                                                    @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Returns the absolute Unix timestamp (in seconds) at which the given hash fields will expire.
        Specified by:
        hexpiretime in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the expiration timestamp for.
        Returns:
        An array of expiration timestamps in seconds for the specified fields:
        • For fields with a timeout, returns the absolute Unix timestamp in seconds.
        • For fields that exist but have no associated expire, returns -1.
        • For fields that do not exist in the provided hash key, or the hash key is empty, returns -2.
        See Also:
        valkey.io for details.
      • hexpiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hexpiretime​(@NonNull
                                                                                    @NonNull GlideString key,
                                                                                    @NonNull
                                                                                    @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Returns the absolute Unix timestamp (in seconds) at which the given hash fields will expire.
        Specified by:
        hexpiretime in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the expiration timestamp for.
        Returns:
        An array of expiration timestamps in seconds for the specified fields:
        • For fields with a timeout, returns the absolute Unix timestamp in seconds.
        • For fields that exist but have no associated expire, returns -1.
        • For fields that do not exist in the provided hash key, or the hash key is empty, returns -2.
        See Also:
        valkey.io for details.
      • hpexpiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpiretime​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Returns the absolute Unix timestamp (in milliseconds) at which the given hash fields will expire.
        Specified by:
        hpexpiretime in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the expiration timestamp for.
        Returns:
        An array of expiration timestamps in milliseconds for the specified fields:
        • For fields with a timeout, returns the absolute Unix timestamp in milliseconds.
        • For fields that exist but have no associated expire, returns -1.
        • For fields that do not exist in the provided hash key, or the hash key is empty, returns -2.
        See Also:
        valkey.io for details.
      • hpexpiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> hpexpiretime​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Returns the absolute Unix timestamp (in milliseconds) at which the given hash fields will expire.
        Specified by:
        hpexpiretime in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to get the expiration timestamp for.
        Returns:
        An array of expiration timestamps in milliseconds for the specified fields:
        • For fields with a timeout, returns the absolute Unix timestamp in milliseconds.
        • For fields that exist but have no associated expire, returns -1.
        • For fields that do not exist in the provided hash key, or the hash key is empty, returns -2.
        See Also:
        valkey.io for details.
      • hdel

        public java.util.concurrent.CompletableFuture<java.lang.Long> hdel​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored.
        Specified by:
        hdel in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to remove from the hash stored at key.
        Returns:
        The number of fields that were removed from the hash, not including specified but non-existing fields.
        If key does not exist, it is treated as an empty hash and it returns 0.
        See Also:
        valkey.io for details.
      • hdel

        public java.util.concurrent.CompletableFuture<java.lang.Long> hdel​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored.
        Specified by:
        hdel in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields to remove from the hash stored at key.
        Returns:
        The number of fields that were removed from the hash, not including specified but non-existing fields.
        If key does not exist, it is treated as an empty hash and it returns 0.
        See Also:
        valkey.io for details.
      • hlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> hlen​(@NonNull
                                                                           @NonNull java.lang.String key)
        Description copied from interface: HashBaseCommands
        Returns the number of fields contained in the hash stored at key.
        Specified by:
        hlen in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        The number of fields in the hash, or 0 when the key does not exist.
        If key holds a value that is not a hash, an error is returned.
        See Also:
        valkey.io for details.
      • hlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> hlen​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: HashBaseCommands
        Returns the number of fields contained in the hash stored at key.
        Specified by:
        hlen in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        The number of fields in the hash, or 0 when the key does not exist.
        If key holds a value that is not a hash, an error is returned.
        See Also:
        valkey.io for details.
      • hvals

        public java.util.concurrent.CompletableFuture<java.lang.String[]> hvals​(@NonNull
                                                                                @NonNull java.lang.String key)
        Description copied from interface: HashBaseCommands
        Returns all values in the hash stored at key.
        Specified by:
        hvals in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        An array of values in the hash, or an empty array when the key does not exist.
        See Also:
        valkey.io for details.
      • hvals

        public java.util.concurrent.CompletableFuture<GlideString[]> hvals​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: HashBaseCommands
        Returns all values in the hash stored at key.
        Specified by:
        hvals in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        An array of values in the hash, or an empty array when the key does not exist.
        See Also:
        valkey.io for details.
      • hmget

        public java.util.concurrent.CompletableFuture<java.lang.String[]> hmget​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String[] fields)
        Description copied from interface: HashBaseCommands
        Returns the values associated with the specified fields in the hash stored at key.
        Specified by:
        hmget in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields in the hash stored at key to retrieve from the database.
        Returns:
        An array of values associated with the given fields, in the same order as they are requested.
        For every field that does not exist in the hash, a null value is returned.
        If key does not exist, it is treated as an empty hash, and it returns an array of null values.
        See Also:
        valkey.io for details.
      • hmget

        public java.util.concurrent.CompletableFuture<GlideString[]> hmget​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString[] fields)
        Description copied from interface: HashBaseCommands
        Returns the values associated with the specified fields in the hash stored at key.
        Specified by:
        hmget in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        fields - The fields in the hash stored at key to retrieve from the database.
        Returns:
        An array of values associated with the given fields, in the same order as they are requested.
        For every field that does not exist in the hash, a null value is returned.
        If key does not exist, it is treated as an empty hash, and it returns an array of null values.
        See Also:
        valkey.io for details.
      • hexists

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> hexists​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String field)
        Description copied from interface: HashBaseCommands
        Returns if field is an existing field in the hash stored at key.
        Specified by:
        hexists in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field to check in the hash stored at key.
        Returns:
        True if the hash contains the specified field. If the hash does not contain the field, or if the key does not exist, it returns False.
        See Also:
        valkey.io for details.
      • hexists

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> hexists​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 @NonNull
                                                                                 @NonNull GlideString field)
        Description copied from interface: HashBaseCommands
        Returns if field is an existing field in the hash stored at key.
        Specified by:
        hexists in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field to check in the hash stored at key.
        Returns:
        True if the hash contains the specified field. If the hash does not contain the field, or if the key does not exist, it returns False.
        See Also:
        valkey.io for details.
      • hgetall

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String>> hgetall​(@NonNull
                                                                                                                      @NonNull java.lang.String key)
        Description copied from interface: HashBaseCommands
        Returns all fields and values of the hash stored at key.
        Specified by:
        hgetall in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        A Map of fields and their values stored in the hash. Every field name in the map is associated with its corresponding value.
        If key does not exist, it returns an empty map.
        See Also:
        valkey.io for details.
      • hgetall

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString>> hgetall​(@NonNull
                                                                                                            @NonNull GlideString key)
        Description copied from interface: HashBaseCommands
        Returns all fields and values of the hash stored at key.
        Specified by:
        hgetall in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        A Map of fields and their values stored in the hash. Every field name in the map is associated with its corresponding value.
        If key does not exist, it returns an empty map.
        See Also:
        valkey.io for details.
      • hincrBy

        public java.util.concurrent.CompletableFuture<java.lang.Long> hincrBy​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              @NonNull
                                                                              @NonNull java.lang.String field,
                                                                              long amount)
        Description copied from interface: HashBaseCommands
        Increments the number stored at field in the hash stored at key by increment. By using a negative increment value, the value stored at field in the hash stored at key is decremented. If field or key does not exist, it is set to 0 before performing the operation.
        Specified by:
        hincrBy in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash stored at key to increment or decrement its value.
        amount - The amount by which to increment or decrement the field's value. Use a negative value to decrement.
        Returns:
        The value of field in the hash stored at key after the increment or decrement.
        See Also:
        valkey.io for details.
      • hincrBy

        public java.util.concurrent.CompletableFuture<java.lang.Long> hincrBy​(@NonNull
                                                                              @NonNull GlideString key,
                                                                              @NonNull
                                                                              @NonNull GlideString field,
                                                                              long amount)
        Description copied from interface: HashBaseCommands
        Increments the number stored at field in the hash stored at key by increment. By using a negative increment value, the value stored at field in the hash stored at key is decremented. If field or key does not exist, it is set to 0 before performing the operation.
        Specified by:
        hincrBy in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash stored at key to increment or decrement its value.
        amount - The amount by which to increment or decrement the field's value. Use a negative value to decrement.
        Returns:
        The value of field in the hash stored at key after the increment or decrement.
        See Also:
        valkey.io for details.
      • hincrByFloat

        public java.util.concurrent.CompletableFuture<java.lang.Double> hincrByFloat​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String field,
                                                                                     double amount)
        Description copied from interface: HashBaseCommands
        Increments the string representing a floating point number stored at field in the hash stored at key by increment. By using a negative increment value, the value stored at field in the hash stored at key is decremented. If field or key does not exist, it is set to 0 before performing the operation.
        Specified by:
        hincrByFloat in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash stored at key to increment or decrement its value.
        amount - The amount by which to increment or decrement the field's value. Use a negative value to decrement.
        Returns:
        The value of field in the hash stored at key after the increment or decrement.
        See Also:
        valkey.io for details.
      • hincrByFloat

        public java.util.concurrent.CompletableFuture<java.lang.Double> hincrByFloat​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString field,
                                                                                     double amount)
        Description copied from interface: HashBaseCommands
        Increments the string representing a floating point number stored at field in the hash stored at key by increment. By using a negative increment value, the value stored at field in the hash stored at key is decremented. If field or key does not exist, it is set to 0 before performing the operation.
        Specified by:
        hincrByFloat in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash stored at key to increment or decrement its value.
        amount - The amount by which to increment or decrement the field's value. Use a negative value to decrement.
        Returns:
        The value of field in the hash stored at key after the increment or decrement.
        See Also:
        valkey.io for details.
      • hkeys

        public java.util.concurrent.CompletableFuture<java.lang.String[]> hkeys​(@NonNull
                                                                                @NonNull java.lang.String key)
        Description copied from interface: HashBaseCommands
        Returns all field names in the hash stored at key.
        Specified by:
        hkeys in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        An array of field names in the hash, or an empty array when the key does not exist.
        See Also:
        valkey.io for details.
      • hkeys

        public java.util.concurrent.CompletableFuture<GlideString[]> hkeys​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: HashBaseCommands
        Returns all field names in the hash stored at key.
        Specified by:
        hkeys in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        An array of field names in the hash, or an empty array when the key does not exist.
        See Also:
        valkey.io for details.
      • hstrlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> hstrlen​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              @NonNull
                                                                              @NonNull java.lang.String field)
        Description copied from interface: HashBaseCommands
        Returns the string length of the value associated with field in the hash stored at key.
        Specified by:
        hstrlen in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash.
        Returns:
        The string length or 0 if field or key does not exist.
        See Also:
        valkey.io for details.
      • hstrlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> hstrlen​(@NonNull
                                                                              @NonNull GlideString key,
                                                                              @NonNull
                                                                              @NonNull GlideString field)
        Description copied from interface: HashBaseCommands
        Returns the string length of the value associated with field in the hash stored at key.
        Specified by:
        hstrlen in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        field - The field in the hash.
        Returns:
        The string length or 0 if field or key does not exist.
        See Also:
        valkey.io for details.
      • hrandfield

        public java.util.concurrent.CompletableFuture<java.lang.String> hrandfield​(@NonNull
                                                                                   @NonNull java.lang.String key)
        Description copied from interface: HashBaseCommands
        Returns a random field name from the hash value stored at key.
        Specified by:
        hrandfield in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        A random field name from the hash stored at key, or null when the key does not exist.
        See Also:
        valkey.io for details.
      • hrandfield

        public java.util.concurrent.CompletableFuture<GlideString> hrandfield​(@NonNull
                                                                              @NonNull GlideString key)
        Description copied from interface: HashBaseCommands
        Returns a random field name from the hash value stored at key.
        Specified by:
        hrandfield in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        Returns:
        A random field name from the hash stored at key, or null when the key does not exist.
        See Also:
        valkey.io for details.
      • hrandfieldWithCount

        public java.util.concurrent.CompletableFuture<java.lang.String[]> hrandfieldWithCount​(@NonNull
                                                                                              @NonNull java.lang.String key,
                                                                                              long count)
        Description copied from interface: HashBaseCommands
        Retrieves up to count random field names from the hash value stored at key .
        Specified by:
        hrandfieldWithCount in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        count - The number of field names to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        An array of random field names from the hash stored at key, or an empty array when the key does not exist.
        See Also:
        valkey.io for details.
      • hrandfieldWithCount

        public java.util.concurrent.CompletableFuture<GlideString[]> hrandfieldWithCount​(@NonNull
                                                                                         @NonNull GlideString key,
                                                                                         long count)
        Description copied from interface: HashBaseCommands
        Retrieves up to count random field names from the hash value stored at key .
        Specified by:
        hrandfieldWithCount in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        count - The number of field names to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        An array of random field names from the hash stored at key, or an empty array when the key does not exist.
        See Also:
        valkey.io for details.
      • hrandfieldWithCountWithValues

        public java.util.concurrent.CompletableFuture<java.lang.String[][]> hrandfieldWithCountWithValues​(@NonNull
                                                                                                          @NonNull java.lang.String key,
                                                                                                          long count)
        Description copied from interface: HashBaseCommands
        Retrieves up to count random field names along with their values from the hash value stored at key.
        Specified by:
        hrandfieldWithCountWithValues in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        count - The number of field names to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        A 2D array of [fieldName, value] arrays, where fieldName is a random field name from the hash and value is the associated value of the field name.
        If the hash does not exist or is empty, the response will be an empty array.
        See Also:
        valkey.io for details.
      • hrandfieldWithCountWithValues

        public java.util.concurrent.CompletableFuture<GlideString[][]> hrandfieldWithCountWithValues​(@NonNull
                                                                                                     @NonNull GlideString key,
                                                                                                     long count)
        Description copied from interface: HashBaseCommands
        Retrieves up to count random field names along with their values from the hash value stored at key.
        Specified by:
        hrandfieldWithCountWithValues in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        count - The number of field names to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        A 2D array of [fieldName, value] arrays, where fieldName is a random field name from the hash and value is the associated value of the field name.
        If the hash does not exist or is empty, the response will be an empty array.
        See Also:
        valkey.io for details.
      • lpush

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpush​(@NonNull
                                                                            @NonNull java.lang.String key,
                                                                            @NonNull
                                                                            @NonNull java.lang.String[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the head of the list stored at key. elements are inserted one after the other to the head of the list, from the leftmost element to the rightmost element. If key does not exist, it is created as an empty list before performing the push operation.
        Specified by:
        lpush in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the head of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • lpush

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpush​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            @NonNull
                                                                            @NonNull GlideString[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the head of the list stored at key. elements are inserted one after the other to the head of the list, from the leftmost element to the rightmost element. If key does not exist, it is created as an empty list before performing the push operation.
        Specified by:
        lpush in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the head of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • lpop

        public java.util.concurrent.CompletableFuture<java.lang.String> lpop​(@NonNull
                                                                             @NonNull java.lang.String key)
        Description copied from interface: ListBaseCommands
        Removes and returns the first elements of the list stored at key. The command pops a single element from the beginning of the list.
        Specified by:
        lpop in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        Returns:
        The value of the first element.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • lpop

        public java.util.concurrent.CompletableFuture<GlideString> lpop​(@NonNull
                                                                        @NonNull GlideString key)
        Description copied from interface: ListBaseCommands
        Removes and returns the first elements of the list stored at key. The command pops a single element from the beginning of the list.
        Specified by:
        lpop in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        Returns:
        The value of the first element.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • lpopCount

        public java.util.concurrent.CompletableFuture<java.lang.String[]> lpopCount​(@NonNull
                                                                                    @NonNull java.lang.String key,
                                                                                    long count)
        Description copied from interface: ListBaseCommands
        Removes and returns up to count elements of the list stored at key, depending on the list's length.
        Specified by:
        lpopCount in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        count - The count of the elements to pop from the list.
        Returns:
        An array of the popped elements will be returned depending on the list's length.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • lpopCount

        public java.util.concurrent.CompletableFuture<GlideString[]> lpopCount​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               long count)
        Description copied from interface: ListBaseCommands
        Removes and returns up to count elements of the list stored at key, depending on the list's length.
        Specified by:
        lpopCount in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        count - The count of the elements to pop from the list.
        Returns:
        An array of the popped elements will be returned depending on the list's length.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • lpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String element)
        Description copied from interface: ListBaseCommands
        Returns the index of the first occurrence of element inside the list specified by key. If no match is found, null is returned.
        Specified by:
        lpos in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        Returns:
        The index of the first occurrence of element, or null if element is not in the list.
        See Also:
        valkey.io for details.
      • lpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString element)
        Description copied from interface: ListBaseCommands
        Returns the index of the first occurrence of element inside the list specified by key. If no match is found, null is returned.
        Specified by:
        lpos in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        Returns:
        The index of the first occurrence of element, or null if element is not in the list.
        See Also:
        valkey.io for details.
      • lpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String element,
                                                                           @NonNull
                                                                           @NonNull LPosOptions options)
        Description copied from interface: ListBaseCommands
        Returns the index of an occurrence of element within a list based on the given options. If no match is found, null is returned.
        Specified by:
        lpos in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        options - The LPos options.
        Returns:
        The index of element, or null if element is not in the list.
        See Also:
        valkey.io for details.
      • lpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpos​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString element,
                                                                           @NonNull
                                                                           @NonNull LPosOptions options)
        Description copied from interface: ListBaseCommands
        Returns the index of an occurrence of element within a list based on the given options. If no match is found, null is returned.
        Specified by:
        lpos in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        options - The LPos options.
        Returns:
        The index of element, or null if element is not in the list.
        See Also:
        valkey.io for details.
      • lposCount

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String element,
                                                                                  long count)
        Description copied from interface: ListBaseCommands
        Returns an array of indices of matching elements within a list.
        Specified by:
        lposCount in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        count - The number of matches wanted.
        Returns:
        An array that holds the indices of the matching elements within the list.
        See Also:
        valkey.io for details.
      • lposCount

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull GlideString element,
                                                                                  long count)
        Description copied from interface: ListBaseCommands
        Returns an array of indices of matching elements within a list.
        Specified by:
        lposCount in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        count - The number of matches wanted.
        Returns:
        An array that holds the indices of the matching elements within the list.
        See Also:
        valkey.io for details.
      • lposCount

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String element,
                                                                                  long count,
                                                                                  @NonNull
                                                                                  @NonNull LPosOptions options)
        Description copied from interface: ListBaseCommands
        Returns an array of indices of matching elements within a list based on the given options. If no match is found, an empty arrayis returned.
        Specified by:
        lposCount in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        count - The number of matches wanted.
        options - The LPos options.
        Returns:
        An array that holds the indices of the matching elements within the list.
        See Also:
        valkey.io for details.
      • lposCount

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> lposCount​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull GlideString element,
                                                                                  long count,
                                                                                  @NonNull
                                                                                  @NonNull LPosOptions options)
        Description copied from interface: ListBaseCommands
        Returns an array of indices of matching elements within a list based on the given options. If no match is found, an empty arrayis returned.
        Specified by:
        lposCount in interface ListBaseCommands
        Parameters:
        key - The name of the list.
        element - The value to search for within the list.
        count - The number of matches wanted.
        options - The LPos options.
        Returns:
        An array that holds the indices of the matching elements within the list.
        See Also:
        valkey.io for details.
      • lrange

        public java.util.concurrent.CompletableFuture<java.lang.String[]> lrange​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 long start,
                                                                                 long end)
        Description copied from interface: ListBaseCommands
        Returns the specified elements of the list stored at key.
        The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        lrange in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        start - The starting point of the range.
        end - The end of the range.
        Returns:
        Array of elements in the specified range.
        If start exceeds the end of the list, or if start is greater than end, an empty array will be returned.
        If end exceeds the actual end of the list, the range will stop at the actual end of the list.
        If key does not exist an empty array will be returned.
        See Also:
        valkey.io for details.
      • lrange

        public java.util.concurrent.CompletableFuture<GlideString[]> lrange​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            long start,
                                                                            long end)
        Description copied from interface: ListBaseCommands
        Returns the specified elements of the list stored at key.
        The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        lrange in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        start - The starting point of the range.
        end - The end of the range.
        Returns:
        Array of elements in the specified range.
        If start exceeds the end of the list, or if start is greater than end, an empty array will be returned.
        If end exceeds the actual end of the list, the range will stop at the actual end of the list.
        If key does not exist an empty array will be returned.
        See Also:
        valkey.io for details.
      • lindex

        public java.util.concurrent.CompletableFuture<java.lang.String> lindex​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               long index)
        Description copied from interface: ListBaseCommands
        Returns the element at index from the list stored at key.
        The index is zero-based, so 0 means the first element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth.
        Specified by:
        lindex in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        index - The index of the element in the list to retrieve.
        Returns:
        The element at index in the list stored at key.
        If index is out of range or if key does not exist, null is returned.
        See Also:
        valkey.io for details.
      • lindex

        public java.util.concurrent.CompletableFuture<GlideString> lindex​(@NonNull
                                                                          @NonNull GlideString key,
                                                                          long index)
        Description copied from interface: ListBaseCommands
        Returns the element at index from the list stored at key.
        The index is zero-based, so 0 means the first element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth.
        Specified by:
        lindex in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        index - The index of the element in the list to retrieve.
        Returns:
        The element at index in the list stored at key.
        If index is out of range or if key does not exist, null is returned.
        See Also:
        valkey.io for details.
      • ltrim

        public java.util.concurrent.CompletableFuture<java.lang.String> ltrim​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              long start,
                                                                              long end)
        Description copied from interface: ListBaseCommands
        Trims an existing list so that it will contain only the specified range of elements specified.
        The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on.
        These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        ltrim in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        start - The starting point of the range.
        end - The end of the range.
        Returns:
        Always OK.
        If start exceeds the end of the list, or if start is greater than end, the list is emptied and the key is removed.
        If end exceeds the actual end of the list, it will be treated like the last element of the list.
        If key does not exist, OK will be returned without changes to the database.
        See Also:
        valkey.io for details.
      • ltrim

        public java.util.concurrent.CompletableFuture<java.lang.String> ltrim​(@NonNull
                                                                              @NonNull GlideString key,
                                                                              long start,
                                                                              long end)
        Description copied from interface: ListBaseCommands
        Trims an existing list so that it will contain only the specified range of elements specified.
        The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on.
        These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        ltrim in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        start - The starting point of the range.
        end - The end of the range.
        Returns:
        Always OK.
        If start exceeds the end of the list, or if start is greater than end, the result will be an empty list (which causes key to be removed).
        If end exceeds the actual end of the list, it will be treated like the last element of the list.
        If key does not exist, OK will be returned without changes to the database.
        See Also:
        valkey.io for details.
      • llen

        public java.util.concurrent.CompletableFuture<java.lang.Long> llen​(@NonNull
                                                                           @NonNull java.lang.String key)
        Description copied from interface: ListBaseCommands
        Returns the length of the list stored at key.
        Specified by:
        llen in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        Returns:
        The length of the list at key.
        If key does not exist, it is interpreted as an empty list and 0 is returned.
        See Also:
        valkey.io for details.
      • llen

        public java.util.concurrent.CompletableFuture<java.lang.Long> llen​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: ListBaseCommands
        Returns the length of the list stored at key.
        Specified by:
        llen in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        Returns:
        The length of the list at key.
        If key does not exist, it is interpreted as an empty list and 0 is returned.
        See Also:
        valkey.io for details.
      • lrem

        public java.util.concurrent.CompletableFuture<java.lang.Long> lrem​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           long count,
                                                                           @NonNull
                                                                           @NonNull java.lang.String element)
        Description copied from interface: ListBaseCommands
        Removes the first count occurrences of elements equal to element from the list stored at key.
        Specified by:
        lrem in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        count - The count of the occurrences of elements equal to element to remove. If count is positive: Removes elements equal to element moving from head to tail.
        If count is negative: Removes elements equal to element moving from tail to head.
        If count is 0 or count is greater than the occurrences of elements equal to element, it removes all elements equal to element .`
        element - The element to remove from the list.
        Returns:
        The number of the removed elements.
        If key does not exist, 0 is returned.
        See Also:
        valkey.io for details.
      • lrem

        public java.util.concurrent.CompletableFuture<java.lang.Long> lrem​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           long count,
                                                                           @NonNull
                                                                           @NonNull GlideString element)
        Description copied from interface: ListBaseCommands
        Removes the first count occurrences of elements equal to element from the list stored at key.
        Specified by:
        lrem in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        count - The count of the occurrences of elements equal to element to remove. If count is positive: Removes elements equal to element moving from head to tail.
        If count is negative: Removes elements equal to element moving from tail to head.
        If count is 0 or count is greater than the occurrences of elements equal to element, it removes all elements equal to element .`
        element - The element to remove from the list.
        Returns:
        The number of the removed elements.
        If key does not exist, 0 is returned.
        See Also:
        valkey.io for details.
      • rpush

        public java.util.concurrent.CompletableFuture<java.lang.Long> rpush​(@NonNull
                                                                            @NonNull java.lang.String key,
                                                                            @NonNull
                                                                            @NonNull java.lang.String[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the tail of the list stored at key.
        elements are inserted one after the other to the tail of the list, from the leftmost element to the rightmost element. If key does not exist, it is created as an empty list before performing the push operation.
        Specified by:
        rpush in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the tail of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • rpush

        public java.util.concurrent.CompletableFuture<java.lang.Long> rpush​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            @NonNull
                                                                            @NonNull GlideString[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the tail of the list stored at key.
        elements are inserted one after the other to the tail of the list, from the leftmost element to the rightmost element. If key does not exist, it is created as an empty list before performing the push operation.
        Specified by:
        rpush in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the tail of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • rpop

        public java.util.concurrent.CompletableFuture<java.lang.String> rpop​(@NonNull
                                                                             @NonNull java.lang.String key)
        Description copied from interface: ListBaseCommands
        Removes and returns the last elements of the list stored at key.
        The command pops a single element from the end of the list.
        Specified by:
        rpop in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        Returns:
        The value of the last element.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • rpop

        public java.util.concurrent.CompletableFuture<GlideString> rpop​(@NonNull
                                                                        @NonNull GlideString key)
        Description copied from interface: ListBaseCommands
        Removes and returns the last elements of the list stored at key.
        The command pops a single element from the end of the list.
        Specified by:
        rpop in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        Returns:
        The value of the last element.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • rpopCount

        public java.util.concurrent.CompletableFuture<java.lang.String[]> rpopCount​(@NonNull
                                                                                    @NonNull java.lang.String key,
                                                                                    long count)
        Description copied from interface: ListBaseCommands
        Removes and returns up to count elements from the list stored at key, depending on the list's length.
        Specified by:
        rpopCount in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        count - The count of the elements to pop from the list.
        Returns:
        An array of popped elements will be returned depending on the list's length.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • rpopCount

        public java.util.concurrent.CompletableFuture<GlideString[]> rpopCount​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               long count)
        Description copied from interface: ListBaseCommands
        Removes and returns up to count elements from the list stored at key, depending on the list's length.
        Specified by:
        rpopCount in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        count - The count of the elements to pop from the list.
        Returns:
        An array of popped elements will be returned depending on the list's length.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • sadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> sadd​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String[] members)
        Description copied from interface: SetBaseCommands
        Adds specified members to the set stored at key. Specified members that are already a member of this set are ignored.
        Specified by:
        sadd in interface SetBaseCommands
        Parameters:
        key - The key where members will be added to its set.
        members - A list of members to add to the set stored at key.
        Returns:
        The number of members that were added to the set, excluding members already present.
        See Also:
        valkey.io for details.
      • sadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> sadd​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString[] members)
        Description copied from interface: SetBaseCommands
        Adds specified members to the set stored at key. Specified members that are already a member of this set are ignored.
        Specified by:
        sadd in interface SetBaseCommands
        Parameters:
        key - The key where members will be added to its set.
        members - A list of members to add to the set stored at key.
        Returns:
        The number of members that were added to the set, excluding members already present.
        See Also:
        valkey.io for details.
      • sismember

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> sismember​(@NonNull
                                                                                   @NonNull java.lang.String key,
                                                                                   @NonNull
                                                                                   @NonNull java.lang.String member)
        Description copied from interface: SetBaseCommands
        Returns if member is a member of the set stored at key.
        Specified by:
        sismember in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        member - The member to check for existence in the set.
        Returns:
        true if the member exists in the set, false otherwise. If key doesn't exist, it is treated as an empty set and the command returns false.
        See Also:
        valkey.io for details.
      • sismember

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> sismember​(@NonNull
                                                                                   @NonNull GlideString key,
                                                                                   @NonNull
                                                                                   @NonNull GlideString member)
        Description copied from interface: SetBaseCommands
        Returns if member is a member of the set stored at key.
        Specified by:
        sismember in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        member - The member to check for existence in the set.
        Returns:
        true if the member exists in the set, false otherwise. If key doesn't exist, it is treated as an empty set and the command returns false.
        See Also:
        valkey.io for details.
      • srem

        public java.util.concurrent.CompletableFuture<java.lang.Long> srem​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String[] members)
        Description copied from interface: SetBaseCommands
        Removes specified members from the set stored at key. Specified members that are not a member of this set are ignored.
        Specified by:
        srem in interface SetBaseCommands
        Parameters:
        key - The key from which members will be removed.
        members - A list of members to remove from the set stored at key.
        Returns:
        The number of members that were removed from the set, excluding non-existing members.
        See Also:
        valkey.io for details.
      • srem

        public java.util.concurrent.CompletableFuture<java.lang.Long> srem​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString[] members)
        Description copied from interface: SetBaseCommands
        Removes specified members from the set stored at key. Specified members that are not a member of this set are ignored.
        Specified by:
        srem in interface SetBaseCommands
        Parameters:
        key - The key from which members will be removed.
        members - A list of members to remove from the set stored at key.
        Returns:
        The number of members that were removed from the set, excluding non-existing members.
        See Also:
        valkey.io for details.
      • smembers

        public java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> smembers​(@NonNull
                                                                                                @NonNull java.lang.String key)
        Description copied from interface: SetBaseCommands
        Retrieves all the members of the set value stored at key.
        Specified by:
        smembers in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the set members.
        Returns:
        A Set of all members of the set.
        See Also:
        valkey.io for details.
      • smembers

        public java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> smembers​(@NonNull
                                                                                           @NonNull GlideString key)
        Description copied from interface: SetBaseCommands
        Retrieves all the members of the set value stored at key.
        Specified by:
        smembers in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the set members.
        Returns:
        A Set of all members of the set.
        See Also:
        valkey.io for details.
      • scard

        public java.util.concurrent.CompletableFuture<java.lang.Long> scard​(@NonNull
                                                                            @NonNull java.lang.String key)
        Description copied from interface: SetBaseCommands
        Retrieves the set cardinality (number of elements) of the set stored at key.
        Specified by:
        scard in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the number of set members.
        Returns:
        The cardinality (number of elements) of the set, or 0 if the key does not exist.
        See Also:
        valkey.io for details.
      • scard

        public java.util.concurrent.CompletableFuture<java.lang.Long> scard​(@NonNull
                                                                            @NonNull GlideString key)
        Description copied from interface: SetBaseCommands
        Retrieves the set cardinality (number of elements) of the set stored at key.
        Specified by:
        scard in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the number of set members.
        Returns:
        The cardinality (number of elements) of the set, or 0 if the key does not exist.
        See Also:
        valkey.io for details.
      • sdiff

        public java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> sdiff​(@NonNull
                                                                                             @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Computes the difference between the first set and all the successive sets in keys.
        Specified by:
        sdiff in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets to diff.
        Returns:
        A Set of elements representing the difference between the sets.
        If the a key does not exist, it is treated as an empty set.
        See Also:
        valkey.io for details.
      • sdiff

        public java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> sdiff​(@NonNull
                                                                                        @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Computes the difference between the first set and all the successive sets in keys.
        Specified by:
        sdiff in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets to diff.
        Returns:
        A Set of elements representing the difference between the sets.
        If the a key does not exist, it is treated as an empty set.
        See Also:
        valkey.io for details.
      • smismember

        public java.util.concurrent.CompletableFuture<java.lang.Boolean[]> smismember​(@NonNull
                                                                                      @NonNull java.lang.String key,
                                                                                      @NonNull
                                                                                      @NonNull java.lang.String[] members)
        Description copied from interface: SetBaseCommands
        Checks whether each member is contained in the members of the set stored at key.
        Specified by:
        smismember in interface SetBaseCommands
        Parameters:
        key - The key of the set to check.
        members - A list of members to check for existence in the set.
        Returns:
        An array of Boolean values, each indicating if the respective member exists in the set.
        See Also:
        valkey.io for details.
      • smismember

        public java.util.concurrent.CompletableFuture<java.lang.Boolean[]> smismember​(@NonNull
                                                                                      @NonNull GlideString key,
                                                                                      @NonNull
                                                                                      @NonNull GlideString[] members)
        Description copied from interface: SetBaseCommands
        Checks whether each member is contained in the members of the set stored at key.
        Specified by:
        smismember in interface SetBaseCommands
        Parameters:
        key - The key of the set to check.
        members - A list of members to check for existence in the set.
        Returns:
        An array of Boolean values, each indicating if the respective member exists in the set.
        See Also:
        valkey.io for details.
      • sdiffstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sdiffstore​(@NonNull
                                                                                 @NonNull java.lang.String destination,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Stores the difference between the first set and all the successive sets in keys into a new set at destination.
        Specified by:
        sdiffstore in interface SetBaseCommands
        Parameters:
        destination - The key of the destination set.
        keys - The keys of the sets to diff.
        Returns:
        The number of elements in the resulting set.
        See Also:
        valkey.io for details.
      • sdiffstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sdiffstore​(@NonNull
                                                                                 @NonNull GlideString destination,
                                                                                 @NonNull
                                                                                 @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Stores the difference between the first set and all the successive sets in keys into a new set at destination.
        Specified by:
        sdiffstore in interface SetBaseCommands
        Parameters:
        destination - The key of the destination set.
        keys - The keys of the sets to diff.
        Returns:
        The number of elements in the resulting set.
        See Also:
        valkey.io for details.
      • smove

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> smove​(@NonNull
                                                                               @NonNull java.lang.String source,
                                                                               @NonNull
                                                                               @NonNull java.lang.String destination,
                                                                               @NonNull
                                                                               @NonNull java.lang.String member)
        Description copied from interface: SetBaseCommands
        Moves member from the set at source to the set at destination , removing it from the source set. Creates a new destination set if needed. The operation is atomic.
        Specified by:
        smove in interface SetBaseCommands
        Parameters:
        source - The key of the set to remove the element from.
        destination - The key of the set to add the element to.
        member - The set element to move.
        Returns:
        true on success, or false if the source set does not exist or the element is not a member of the source set.
        See Also:
        valkey.io for details.
      • smove

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> smove​(@NonNull
                                                                               @NonNull GlideString source,
                                                                               @NonNull
                                                                               @NonNull GlideString destination,
                                                                               @NonNull
                                                                               @NonNull GlideString member)
        Description copied from interface: SetBaseCommands
        Moves member from the set at source to the set at destination , removing it from the source set. Creates a new destination set if needed. The operation is atomic.
        Specified by:
        smove in interface SetBaseCommands
        Parameters:
        source - The key of the set to remove the element from.
        destination - The key of the set to add the element to.
        member - The set element to move.
        Returns:
        true on success, or false if the source set does not exist or the element is not a member of the source set.
        See Also:
        valkey.io for details.
      • sinterstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sinterstore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Stores the members of the intersection of all given sets specified by keys into a new set at destination.
        Specified by:
        sinterstore in interface SetBaseCommands
        Parameters:
        destination - The key of the destination set.
        keys - The keys from which to retrieve the set members.
        Returns:
        The number of elements in the resulting set.
        See Also:
        valkey.io for details.
      • sinterstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sinterstore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Stores the members of the intersection of all given sets specified by keys into a new set at destination.
        Specified by:
        sinterstore in interface SetBaseCommands
        Parameters:
        destination - The key of the destination set.
        keys - The keys from which to retrieve the set members.
        Returns:
        The number of elements in the resulting set.
        See Also:
        valkey.io for details.
      • sinter

        public java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> sinter​(@NonNull
                                                                                              @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Gets the intersection of all the given sets.
        Specified by:
        sinter in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        Returns:
        A Set of members which are present in all given sets.
        If one or more sets do not exist, an empty set will be returned.
        See Also:
        valkey.io for details.
      • sinter

        public java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> sinter​(@NonNull
                                                                                         @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Gets the intersection of all the given sets.
        Specified by:
        sinter in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        Returns:
        A Set of members which are present in all given sets.
        If one or more sets do not exist, an empty set will be returned.
        See Also:
        valkey.io for details.
      • sunionstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sunionstore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Stores the members of the union of all given sets specified by keys into a new set at destination.
        Specified by:
        sunionstore in interface SetBaseCommands
        Parameters:
        destination - The key of the destination set.
        keys - The keys from which to retrieve the set members.
        Returns:
        The number of elements in the resulting set.
        See Also:
        valkey.io for details.
      • sunionstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sunionstore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Stores the members of the union of all given sets specified by keys into a new set at destination.
        Specified by:
        sunionstore in interface SetBaseCommands
        Parameters:
        destination - The key of the destination set.
        keys - The keys from which to retrieve the set members.
        Returns:
        The number of elements in the resulting set.
        See Also:
        valkey.io for details.
      • exists

        public java.util.concurrent.CompletableFuture<java.lang.Long> exists​(@NonNull
                                                                             @NonNull java.lang.String[] keys)
        Description copied from interface: GenericBaseCommands
        Returns the number of keys in keys that exist in the database.
        Specified by:
        exists in interface GenericBaseCommands
        Parameters:
        keys - The keys list to check.
        Returns:
        The number of keys that exist. If the same existing key is mentioned in keys multiple times, it will be counted multiple times.
        See Also:
        valkey.io for details.
      • exists

        public java.util.concurrent.CompletableFuture<java.lang.Long> exists​(@NonNull
                                                                             @NonNull GlideString[] keys)
        Description copied from interface: GenericBaseCommands
        Returns the number of keys in keys that exist in the database.
        Specified by:
        exists in interface GenericBaseCommands
        Parameters:
        keys - The keys list to check.
        Returns:
        The number of keys that exist. If the same existing key is mentioned in keys multiple times, it will be counted multiple times.
        See Also:
        valkey.io for details.
      • unlink

        public java.util.concurrent.CompletableFuture<java.lang.Long> unlink​(@NonNull
                                                                             @NonNull java.lang.String[] keys)
        Description copied from interface: GenericBaseCommands
        Unlink (delete) multiple keys from the database. A key is ignored if it does not exist. This command, similar to DEL, removes specified keys and ignores non-existent ones. However, this command does not block the server, while DEL does.
        Specified by:
        unlink in interface GenericBaseCommands
        Parameters:
        keys - The list of keys to unlink.
        Returns:
        The number of keys that were unlinked.
        See Also:
        valkey.io for details.
      • unlink

        public java.util.concurrent.CompletableFuture<java.lang.Long> unlink​(@NonNull
                                                                             @NonNull GlideString[] keys)
        Description copied from interface: GenericBaseCommands
        Unlink (delete) multiple keys from the database. A key is ignored if it does not exist. This command, similar to DEL, removes specified keys and ignores non-existent ones. However, this command does not block the server, while DEL does.
        Specified by:
        unlink in interface GenericBaseCommands
        Parameters:
        keys - The list of keys to unlink.
        Returns:
        The number of keys that were unlinked.
        See Also:
        valkey.io for details.
      • expire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                long seconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in seconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If seconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        seconds - The timeout in seconds.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • expire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                long seconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in seconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If seconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        seconds - The timeout in seconds.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • expire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                long seconds,
                                                                                @NonNull
                                                                                @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in seconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If seconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        seconds - The timeout in seconds.
        expireOptions - The expire options.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • expire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expire​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                long seconds,
                                                                                @NonNull
                                                                                @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in seconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If seconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        seconds - The timeout in seconds.
        expireOptions - The expire options.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • expireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  long unixSeconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (seconds since January 1, 1970) instead of specifying the number of seconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixSeconds - The timeout in an absolute Unix timestamp.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • expireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  long unixSeconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (seconds since January 1, 1970) instead of specifying the number of seconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixSeconds - The timeout in an absolute Unix timestamp.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • expireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  long unixSeconds,
                                                                                  @NonNull
                                                                                  @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (seconds since January 1, 1970) instead of specifying the number of seconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixSeconds - The timeout in an absolute Unix timestamp.
        expireOptions - The expire options.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • expireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> expireAt​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  long unixSeconds,
                                                                                  @NonNull
                                                                                  @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (seconds since January 1, 1970) instead of specifying the number of seconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        expireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixSeconds - The timeout in an absolute Unix timestamp.
        expireOptions - The expire options.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • pexpire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 long milliseconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in milliseconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If milliseconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        milliseconds - The timeout in milliseconds.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • pexpire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 long milliseconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in milliseconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If milliseconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        milliseconds - The timeout in milliseconds.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • pexpire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 long milliseconds,
                                                                                 @NonNull
                                                                                 @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in milliseconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If milliseconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        milliseconds - The timeout in milliseconds.
        expireOptions - The expire options.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • pexpire

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpire​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 long milliseconds,
                                                                                 @NonNull
                                                                                 @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key in milliseconds. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        If milliseconds is a non-positive number, the key will be deleted rather than expired.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpire in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        milliseconds - The timeout in milliseconds.
        expireOptions - The expire options.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • pexpireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull
                                                                                   @NonNull java.lang.String key,
                                                                                   long unixMilliseconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (milliseconds since January 1, 1970) instead of specifying the number of milliseconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixMilliseconds - The timeout in an absolute Unix timestamp.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • pexpireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull
                                                                                   @NonNull GlideString key,
                                                                                   long unixMilliseconds)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (milliseconds since January 1, 1970) instead of specifying the number of milliseconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixMilliseconds - The timeout in an absolute Unix timestamp.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist.
        See Also:
        valkey.io for details.
      • pexpireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull
                                                                                   @NonNull java.lang.String key,
                                                                                   long unixMilliseconds,
                                                                                   @NonNull
                                                                                   @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (milliseconds since January 1, 1970) instead of specifying the number of milliseconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixMilliseconds - The timeout in an absolute Unix timestamp.
        expireOptions - The expire option.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • pexpireAt

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pexpireAt​(@NonNull
                                                                                   @NonNull GlideString key,
                                                                                   long unixMilliseconds,
                                                                                   @NonNull
                                                                                   @NonNull ExpireOptions expireOptions)
        Description copied from interface: GenericBaseCommands
        Sets a timeout on key. It takes an absolute Unix timestamp (milliseconds since January 1, 1970) instead of specifying the number of milliseconds.
        A timestamp in the past will delete the key immediately. After the timeout has expired, the key will automatically be deleted.
        If key already has an existing expire set, the time to live is updated to the new value.
        The timeout will only be cleared by commands that delete or overwrite the contents of key .
        Specified by:
        pexpireAt in interface GenericBaseCommands
        Parameters:
        key - The key to set timeout on it.
        unixMilliseconds - The timeout in an absolute Unix timestamp.
        expireOptions - The expire option.
        Returns:
        true if the timeout was set. false if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
        See Also:
        valkey.io for details.
      • ttl

        public java.util.concurrent.CompletableFuture<java.lang.Long> ttl​(@NonNull
                                                                          @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the remaining time to live of key that has a timeout, in seconds.
        Specified by:
        ttl in interface GenericBaseCommands
        Parameters:
        key - The key to return its timeout.
        Returns:
        TTL in seconds, -2 if key does not exist, or -1 if key exists but has no associated expiration.
        See Also:
        valkey.io for details.
      • ttl

        public java.util.concurrent.CompletableFuture<java.lang.Long> ttl​(@NonNull
                                                                          @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the remaining time to live of key that has a timeout, in seconds.
        Specified by:
        ttl in interface GenericBaseCommands
        Parameters:
        key - The key to return its timeout.
        Returns:
        TTL in seconds, -2 if key does not exist, or -1 if key exists but has no associated expiration.
        See Also:
        valkey.io for details.
      • expiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long> expiretime​(@NonNull
                                                                                 @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in seconds.
        To get the expiration with millisecond precision, use GenericBaseCommands.pexpiretime(String).
        Specified by:
        expiretime in interface GenericBaseCommands
        Parameters:
        key - The key to determine the expiration value of.
        Returns:
        The expiration Unix timestamp in seconds. -2 if key does not exist, or -1 if key exists but has no associated expiration.
        See Also:
        valkey.io for details.
      • expiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long> expiretime​(@NonNull
                                                                                 @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in seconds.
        To get the expiration with millisecond precision, use GenericBaseCommands.pexpiretime(String).
        Specified by:
        expiretime in interface GenericBaseCommands
        Parameters:
        key - The key to determine the expiration value of.
        Returns:
        The expiration Unix timestamp in seconds. -2 if key does not exist, or -1 if key exists but has no associated expiration.
        See Also:
        valkey.io for details.
      • pexpiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long> pexpiretime​(@NonNull
                                                                                  @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in milliseconds.
        Specified by:
        pexpiretime in interface GenericBaseCommands
        Parameters:
        key - The key to determine the expiration value of.
        Returns:
        The expiration Unix timestamp in milliseconds. -2 if key does not exist, or -1 if key exists but has no associated expiration.
        See Also:
        valkey.io for details.
      • pexpiretime

        public java.util.concurrent.CompletableFuture<java.lang.Long> pexpiretime​(@NonNull
                                                                                  @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the absolute Unix timestamp (since January 1, 1970) at which the given key will expire, in milliseconds.
        Specified by:
        pexpiretime in interface GenericBaseCommands
        Parameters:
        key - The key to determine the expiration value of.
        Returns:
        The expiration Unix timestamp in milliseconds. -2 if key does not exist, or -1 if key exists but has no associated expiration.
        See Also:
        valkey.io for details.
      • invokeScript

        public java.util.concurrent.CompletableFuture<java.lang.Object> invokeScript​(@NonNull
                                                                                     @NonNull Script script)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Invokes a Lua script.
        This method simplifies the process of invoking scripts on the server by using an object that represents a Lua script. The script loading and execution will all be handled internally. If the script has not already been loaded, it will be loaded automatically using the SCRIPT LOAD command. After that, it will be invoked using the EVALSHA command.
        Specified by:
        invokeScript in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        script - The Lua script to execute.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        SCRIPT LOAD and EVALSHA for details.
      • invokeScript

        public java.util.concurrent.CompletableFuture<java.lang.Object> invokeScript​(@NonNull
                                                                                     @NonNull Script script,
                                                                                     @NonNull
                                                                                     @NonNull ScriptOptions options)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Invokes a Lua script with its keys and arguments.
        This method simplifies the process of invoking scripts on the server by using an object that represents a Lua script. The script loading, argument preparation, and execution will all be handled internally. If the script has not already been loaded, it will be loaded automatically using the SCRIPT LOAD command. After that, it will be invoked using the EVALSHA command.
        Specified by:
        invokeScript in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        script - The Lua script to execute.
        options - The script option that contains keys and arguments for the script.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        SCRIPT LOAD and EVALSHA for details.
      • invokeScript

        public java.util.concurrent.CompletableFuture<java.lang.Object> invokeScript​(@NonNull
                                                                                     @NonNull Script script,
                                                                                     @NonNull
                                                                                     @NonNull ScriptOptionsGlideString options)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Invokes a Lua script with its keys and arguments.
        This method simplifies the process of invoking scripts on the server by using an object that represents a Lua script. The script loading, argument preparation, and execution will all be handled internally. If the script has not already been loaded, it will be loaded automatically using the SCRIPT LOAD command. After that, it will be invoked using the EVALSHA command.
        Specified by:
        invokeScript in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        script - The Lua script to execute.
        options - The script option that contains keys and arguments for the script.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        SCRIPT LOAD and EVALSHA for details.
      • scriptShow

        public java.util.concurrent.CompletableFuture<java.lang.String> scriptShow​(@NonNull
                                                                                   @NonNull java.lang.String sha1)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Returns the original source code of a script in the script cache.
        Specified by:
        scriptShow in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        sha1 - The SHA1 digest of the script.
        Returns:
        The original source code of the script, if present in the cache. If the script is not found in the cache, an error is thrown.
        See Also:
        valkey.io for details.
      • scriptShow

        public java.util.concurrent.CompletableFuture<GlideString> scriptShow​(@NonNull
                                                                              @NonNull GlideString sha1)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Returns the original source code of a script in the script cache.
        Specified by:
        scriptShow in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        sha1 - The SHA1 digest of the script.
        Returns:
        The original source code of the script, if present in the cache. If the script is not found in the cache, an error is thrown.
        See Also:
        valkey.io for details.
      • scriptExists

        public java.util.concurrent.CompletableFuture<java.lang.Boolean[]> scriptExists​(@NonNull
                                                                                        @NonNull java.lang.String[] sha1s)
      • scriptExists

        public java.util.concurrent.CompletableFuture<java.lang.Boolean[]> scriptExists​(@NonNull
                                                                                        @NonNull GlideString[] sha1s)
      • scriptFlush

        public java.util.concurrent.CompletableFuture<java.lang.String> scriptFlush()
      • scriptFlush

        public java.util.concurrent.CompletableFuture<java.lang.String> scriptFlush​(@NonNull
                                                                                    @NonNull FlushMode flushMode)
      • scriptKill

        public java.util.concurrent.CompletableFuture<java.lang.String> scriptKill()
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap,
                                                                           @NonNull
                                                                           @NonNull ZAddOptions options,
                                                                           boolean changed)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        options - The ZAdd options.
        changed - Modify the return value from the number of new elements added, to the total number of elements changed.
        Returns:
        The number of elements added to the sorted set.
        If changed is set, returns the number of elements updated in the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap,
                                                                           @NonNull
                                                                           @NonNull ZAddOptions options,
                                                                           boolean changed)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        options - The ZAdd options.
        changed - Modify the return value from the number of new elements added, to the total number of elements changed.
        Returns:
        The number of elements added to the sorted set.
        If changed is set, returns the number of elements updated in the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap,
                                                                           @NonNull
                                                                           @NonNull ZAddOptions options)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        options - The ZAdd options.
        Returns:
        The number of elements added to the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap,
                                                                           @NonNull
                                                                           @NonNull ZAddOptions options)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        options - The ZAdd options.
        Returns:
        The number of elements added to the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap,
                                                                           boolean changed)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        changed - Modify the return value from the number of new elements added, to the total number of elements changed.
        Returns:
        The number of elements added to the sorted set.
        If changed is set, returns the number of elements updated in the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap,
                                                                           boolean changed)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        changed - Modify the return value from the number of new elements added, to the total number of elements changed.
        Returns:
        The number of elements added to the sorted set.
        If changed is set, returns the number of elements updated in the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<java.lang.String,​java.lang.Double> membersScoresMap)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        Returns:
        The number of elements added to the sorted set.
        See Also:
        valkey.io for more details.
      • zadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> zadd​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull java.util.Map<GlideString,​java.lang.Double> membersScoresMap)
        Description copied from interface: SortedSetBaseCommands
        Adds members with their scores to the sorted set stored at key.
        If a member is already a part of the sorted set, its score is updated.
        Specified by:
        zadd in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersScoresMap - A Map of members to their corresponding scores.
        Returns:
        The number of elements added to the sorted set.
        See Also:
        valkey.io for more details.
      • zaddIncr

        public java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String member,
                                                                                 double increment,
                                                                                 @NonNull
                                                                                 @NonNull ZAddOptions options)
        Description copied from interface: SortedSetBaseCommands
        Increments the score of member in the sorted set stored at key by increment .
        If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
        If key does not exist, a new sorted set with the specified member as its sole member is created.
        zaddIncr with empty option acts as SortedSetBaseCommands.zincrby(String, double, String).
        Specified by:
        zaddIncr in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - A member in the sorted set to increment.
        increment - The score to increment the member.
        options - The ZAdd options.
        Returns:
        The score of the member.
        If there was a conflict with the options, the operation aborts and null is returned.
        See Also:
        valkey.io for more details.
      • zaddIncr

        public java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 @NonNull
                                                                                 @NonNull GlideString member,
                                                                                 double increment,
                                                                                 @NonNull
                                                                                 @NonNull ZAddOptions options)
        Description copied from interface: SortedSetBaseCommands
        Increments the score of member in the sorted set stored at key by increment .
        If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
        If key does not exist, a new sorted set with the specified member as its sole member is created.
        zaddIncr with empty option acts as SortedSetBaseCommands.zincrby(GlideString, double, GlideString).
        Specified by:
        zaddIncr in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - A member in the sorted set to increment.
        increment - The score to increment the member.
        options - The ZAdd options.
        Returns:
        The score of the member.
        If there was a conflict with the options, the operation aborts and null is returned.
        See Also:
        valkey.io for more details.
      • zaddIncr

        public java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull
                                                                                 @NonNull java.lang.String key,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String member,
                                                                                 double increment)
        Description copied from interface: SortedSetBaseCommands
        Increments the score of member in the sorted set stored at key by increment .
        If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
        If key does not exist, a new sorted set with the specified member as its sole member is created.
        zaddIncr with empty option acts as SortedSetBaseCommands.zincrby(GlideString, double, GlideString).
        Specified by:
        zaddIncr in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - A member in the sorted set to increment.
        increment - The score to increment the member.
        Returns:
        The score of the member.
        See Also:
        valkey.io for more details.
      • zaddIncr

        public java.util.concurrent.CompletableFuture<java.lang.Double> zaddIncr​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 @NonNull
                                                                                 @NonNull GlideString member,
                                                                                 double increment)
        Description copied from interface: SortedSetBaseCommands
        Increments the score of member in the sorted set stored at key by increment .
        If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0).
        If key does not exist, a new sorted set with the specified member as its sole member is created.
        Specified by:
        zaddIncr in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - A member in the sorted set to increment.
        increment - The score to increment the member.
        Returns:
        The score of the member.
        See Also:
        valkey.io for more details.
      • zrem

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrem​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String[] members)
        Description copied from interface: SortedSetBaseCommands
        Removes the specified members from the sorted set stored at key.
        Specified members that are not a member of this set are ignored.
        Specified by:
        zrem in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - An array of members to remove from the sorted set.
        Returns:
        The number of members that were removed from the sorted set, not including non-existing members.
        If key does not exist, it is treated as an empty sorted set, and this command returns 0.
        See Also:
        valkey.io for more details.
      • zrem

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrem​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString[] members)
        Description copied from interface: SortedSetBaseCommands
        Removes the specified members from the sorted set stored at key.
        Specified members that are not a member of this set are ignored.
        Specified by:
        zrem in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - An array of members to remove from the sorted set.
        Returns:
        The number of members that were removed from the sorted set, not including non-existing members.
        If key does not exist, it is treated as an empty sorted set, and this command returns 0.
        See Also:
        valkey.io for more details.
      • zcard

        public java.util.concurrent.CompletableFuture<java.lang.Long> zcard​(@NonNull
                                                                            @NonNull java.lang.String key)
        Description copied from interface: SortedSetBaseCommands
        Returns the cardinality (number of elements) of the sorted set stored at key.
        Specified by:
        zcard in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        The number of elements in the sorted set.
        If key does not exist, it is treated as an empty sorted set, and this command return 0.
        See Also:
        valkey.io for more details.
      • zcard

        public java.util.concurrent.CompletableFuture<java.lang.Long> zcard​(@NonNull
                                                                            @NonNull GlideString key)
        Description copied from interface: SortedSetBaseCommands
        Returns the cardinality (number of elements) of the sorted set stored at key.
        Specified by:
        zcard in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        The number of elements in the sorted set.
        If key does not exist, it is treated as an empty sorted set, and this command return 0.
        See Also:
        valkey.io for more details.
      • zpopmin

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmin​(@NonNull
                                                                                                                      @NonNull java.lang.String key,
                                                                                                                      long count)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns up to count members with the lowest scores from the sorted set stored at the specified key.
        Specified by:
        zpopmin in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - Specifies the quantity of members to pop.
        If count is higher than the sorted set's cardinality, returns all members and their scores, ordered from lowest to highest.
        Returns:
        A map of the removed members and their scores, ordered from the one with the lowest score to the one with the highest.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zpopmin

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmin​(@NonNull
                                                                                                                 @NonNull GlideString key,
                                                                                                                 long count)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns up to count members with the lowest scores from the sorted set stored at the specified key.
        Specified by:
        zpopmin in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - Specifies the quantity of members to pop.
        If count is higher than the sorted set's cardinality, returns all members and their scores, ordered from lowest to highest.
        Returns:
        A map of the removed members and their scores, ordered from the one with the lowest score to the one with the highest.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zpopmin

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmin​(@NonNull
                                                                                                                      @NonNull java.lang.String key)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns the member with the lowest score from the sorted set stored at the specified key.
        Specified by:
        zpopmin in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        A map containing the removed member and its corresponding score.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zpopmin

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmin​(@NonNull
                                                                                                                 @NonNull GlideString key)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns the member with the lowest score from the sorted set stored at the specified key.
        Specified by:
        zpopmin in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        A map containing the removed member and its corresponding score.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • bzpopmin

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmin​(@NonNull
                                                                                   @NonNull java.lang.String[] keys,
                                                                                   double timeout)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it removes and returns a member with the lowest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZPOPMIN is the blocking variant of SortedSetBaseCommands.zpopmin(String).
        Specified by:
        bzpopmin in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        An array containing the key where the member was popped out, the member itself, and the member score.
        If no member could be popped and the timeout expired, returns null .
        See Also:
        valkey.io for more details.
      • bzpopmin

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmin​(@NonNull
                                                                                   @NonNull GlideString[] keys,
                                                                                   double timeout)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it removes and returns a member with the lowest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZPOPMIN is the blocking variant of SortedSetBaseCommands.zpopmin(String).
        Specified by:
        bzpopmin in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        An array containing the key where the member was popped out, the member itself, and the member score.
        If no member could be popped and the timeout expired, returns null .
        See Also:
        valkey.io for more details.
      • zpopmax

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmax​(@NonNull
                                                                                                                      @NonNull java.lang.String key,
                                                                                                                      long count)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns up to count members with the highest scores from the sorted set stored at the specified key.
        Specified by:
        zpopmax in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - Specifies the quantity of members to pop.
        If count is higher than the sorted set's cardinality, returns all members and their scores, ordered from highest to lowest.
        Returns:
        A map of the removed members and their scores, ordered from the one with the highest score to the one with the lowest.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zpopmax

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmax​(@NonNull
                                                                                                                 @NonNull GlideString key,
                                                                                                                 long count)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns up to count members with the highest scores from the sorted set stored at the specified key.
        Specified by:
        zpopmax in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - Specifies the quantity of members to pop.
        If count is higher than the sorted set's cardinality, returns all members and their scores, ordered from highest to lowest.
        Returns:
        A map of the removed members and their scores, ordered from the one with the highest score to the one with the lowest.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zpopmax

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zpopmax​(@NonNull
                                                                                                                      @NonNull java.lang.String key)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns the member with the highest score from the sorted set stored at the specified key.
        Specified by:
        zpopmax in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        A map containing the removed member and its corresponding score.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zpopmax

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zpopmax​(@NonNull
                                                                                                                 @NonNull GlideString key)
        Description copied from interface: SortedSetBaseCommands
        Removes and returns the member with the highest score from the sorted set stored at the specified key.
        Specified by:
        zpopmax in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        A map containing the removed member and its corresponding score.
        If key doesn't exist, it will be treated as an empty sorted set and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • bzpopmax

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmax​(@NonNull
                                                                                   @NonNull java.lang.String[] keys,
                                                                                   double timeout)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it removes and returns a member with the highest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZPOPMAX is the blocking variant of SortedSetBaseCommands.zpopmax(String).
        Specified by:
        bzpopmax in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        An array containing the key where the member was popped out, the member itself, and the member score.
        If no member could be popped and the timeout expired, returns null .
        See Also:
        valkey.io for more details.
      • bzpopmax

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> bzpopmax​(@NonNull
                                                                                   @NonNull GlideString[] keys,
                                                                                   double timeout)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it removes and returns a member with the highest score from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZPOPMAX is the blocking variant of SortedSetBaseCommands.zpopmax(String).
        Specified by:
        bzpopmax in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        An array containing the key where the member was popped out, the member itself, and the member score.
        If no member could be popped and the timeout expired, returns null .
        See Also:
        valkey.io for more details.
      • zscore

        public java.util.concurrent.CompletableFuture<java.lang.Double> zscore​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               @NonNull
                                                                               @NonNull java.lang.String member)
        Description copied from interface: SortedSetBaseCommands
        Returns the score of member in the sorted set stored at key.
        Specified by:
        zscore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose score is to be retrieved.
        Returns:
        The score of the member.
        If member does not exist in the sorted set, null is returned.
        If key does not exist, null is returned.
        See Also:
        valkey.io for more details.
      • zscore

        public java.util.concurrent.CompletableFuture<java.lang.Double> zscore​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               @NonNull
                                                                               @NonNull GlideString member)
        Description copied from interface: SortedSetBaseCommands
        Returns the score of member in the sorted set stored at key.
        Specified by:
        zscore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose score is to be retrieved.
        Returns:
        The score of the member.
        If member does not exist in the sorted set, null is returned.
        If key does not exist, null is returned.
        See Also:
        valkey.io for more details.
      • zrank

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrank​(@NonNull
                                                                            @NonNull java.lang.String key,
                                                                            @NonNull
                                                                            @NonNull java.lang.String member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key, with scores ordered from low to high, starting from 0.
        To get the rank of member with its score, see SortedSetBaseCommands.zrankWithScore(java.lang.String, java.lang.String).
        Specified by:
        zrank in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        The rank of member in the sorted set.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrank

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrank​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            @NonNull
                                                                            @NonNull GlideString member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key, with scores ordered from low to high, starting from 0.
        To get the rank of member with its score, see SortedSetBaseCommands.zrankWithScore(java.lang.String, java.lang.String).
        Specified by:
        zrank in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        The rank of member in the sorted set.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrankWithScore

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zrankWithScore​(@NonNull
                                                                                         @NonNull java.lang.String key,
                                                                                         @NonNull
                                                                                         @NonNull java.lang.String member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the lowest to highest, starting from 0.
        Specified by:
        zrankWithScore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        An array containing the rank (as Long) and score (as Double) of member in the sorted set.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrankWithScore

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zrankWithScore​(@NonNull
                                                                                         @NonNull GlideString key,
                                                                                         @NonNull
                                                                                         @NonNull GlideString member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the lowest to highest, starting from 0.
        Specified by:
        zrankWithScore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        An array containing the rank (as Long) and score (as Double) of member in the sorted set.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrevrank

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrevrank​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               @NonNull
                                                                               @NonNull java.lang.String member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key, where scores are ordered from the highest to lowest, starting from 0.
        To get the rank of member with its score, see SortedSetBaseCommands.zrevrankWithScore(java.lang.String, java.lang.String).
        Specified by:
        zrevrank in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        The rank of member in the sorted set, where ranks are ordered from high to low based on scores.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrevrank

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrevrank​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               @NonNull
                                                                               @NonNull GlideString member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key, where scores are ordered from the highest to lowest, starting from 0.
        To get the rank of member with its score, see SortedSetBaseCommands.zrevrankWithScore(java.lang.String, java.lang.String).
        Specified by:
        zrevrank in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        The rank of member in the sorted set, where ranks are ordered from high to low based on scores.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrevrankWithScore

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zrevrankWithScore​(@NonNull
                                                                                            @NonNull java.lang.String key,
                                                                                            @NonNull
                                                                                            @NonNull java.lang.String member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the highest to lowest, starting from 0.
        Specified by:
        zrevrankWithScore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        An array containing the rank (as Long) and score (as Double) of member in the sorted set, where ranks are ordered from high to low based on scores.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zrevrankWithScore

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zrevrankWithScore​(@NonNull
                                                                                            @NonNull GlideString key,
                                                                                            @NonNull
                                                                                            @NonNull GlideString member)
        Description copied from interface: SortedSetBaseCommands
        Returns the rank of member in the sorted set stored at key with its score, where scores are ordered from the highest to lowest, starting from 0.
        Specified by:
        zrevrankWithScore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        member - The member whose rank is to be retrieved.
        Returns:
        An array containing the rank (as Long) and score (as Double) of member in the sorted set, where ranks are ordered from high to low based on scores.
        If key doesn't exist, or if member is not present in the set, null will be returned.
        See Also:
        valkey.io for more details.
      • zmscore

        public java.util.concurrent.CompletableFuture<java.lang.Double[]> zmscore​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String[] members)
        Description copied from interface: SortedSetBaseCommands
        Returns the scores associated with the specified members in the sorted set stored at key.
        Specified by:
        zmscore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - An array of members in the sorted set.
        Returns:
        An Array of scores of the members.
        If a member does not exist, the corresponding value in the Array will be null.
        See Also:
        valkey.io for more details.
      • zmscore

        public java.util.concurrent.CompletableFuture<java.lang.Double[]> zmscore​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull GlideString[] members)
        Description copied from interface: SortedSetBaseCommands
        Returns the scores associated with the specified members in the sorted set stored at key.
        Specified by:
        zmscore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - An array of members in the sorted set.
        Returns:
        An Array of scores of the members.
        If a member does not exist, the corresponding value in the Array will be null.
        See Also:
        valkey.io for more details.
      • zdiff

        public java.util.concurrent.CompletableFuture<java.lang.String[]> zdiff​(@NonNull
                                                                                @NonNull java.lang.String[] keys)
        Description copied from interface: SortedSetBaseCommands
        Returns the difference between the first sorted set and all the successive sorted sets.
        To get the elements with their scores, see SortedSetBaseCommands.zdiffWithScores(java.lang.String[]).
        Specified by:
        zdiff in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        Returns:
        An array of elements representing the difference between the sorted sets.
        If the first key does not exist, it is treated as an empty sorted set, and the command returns an empty array.
        See Also:
        valkey.io for more details.
      • zdiff

        public java.util.concurrent.CompletableFuture<GlideString[]> zdiff​(@NonNull
                                                                           @NonNull GlideString[] keys)
        Description copied from interface: SortedSetBaseCommands
        Returns the difference between the first sorted set and all the successive sorted sets.
        To get the elements with their scores, see SortedSetBaseCommands.zdiffWithScores(java.lang.String[]).
        Specified by:
        zdiff in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        Returns:
        An array of elements representing the difference between the sorted sets.
        If the first key does not exist, it is treated as an empty sorted set, and the command returns an empty array.
        See Also:
        valkey.io for more details.
      • zdiffWithScores

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Double>> zdiffWithScores​(@NonNull
                                                                                                                              @NonNull java.lang.String[] keys)
        Description copied from interface: SortedSetBaseCommands
        Returns the difference between the first sorted set and all the successive sorted sets.
        Specified by:
        zdiffWithScores in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        Returns:
        A Map of elements and their scores representing the difference between the sorted sets.
        If the first key does not exist, it is treated as an empty sorted set, and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zdiffWithScores

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Double>> zdiffWithScores​(@NonNull
                                                                                                                         @NonNull GlideString[] keys)
        Description copied from interface: SortedSetBaseCommands
        Returns the difference between the first sorted set and all the successive sorted sets.
        Specified by:
        zdiffWithScores in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        Returns:
        A Map of elements and their scores representing the difference between the sorted sets.
        If the first key does not exist, it is treated as an empty sorted set, and the command returns an empty Map.
        See Also:
        valkey.io for more details.
      • zdiffstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zdiffstore​(@NonNull
                                                                                 @NonNull java.lang.String destination,
                                                                                 @NonNull
                                                                                 @NonNull java.lang.String[] keys)
        Description copied from interface: SortedSetBaseCommands
        Calculates the difference between the first sorted set and all the successive sorted sets at keys and stores the difference as a sorted set to destination, overwriting it if it already exists. Non-existent keys are treated as empty sets.
        Specified by:
        zdiffstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key for the resulting sorted set.
        keys - The keys of the sorted sets to compare.
        Returns:
        The number of members in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zdiffstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zdiffstore​(@NonNull
                                                                                 @NonNull GlideString destination,
                                                                                 @NonNull
                                                                                 @NonNull GlideString[] keys)
        Description copied from interface: SortedSetBaseCommands
        Calculates the difference between the first sorted set and all the successive sorted sets at keys and stores the difference as a sorted set to destination, overwriting it if it already exists. Non-existent keys are treated as empty sets.
        Specified by:
        zdiffstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key for the resulting sorted set.
        keys - The keys of the sorted sets to compare.
        Returns:
        The number of members in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> zcount​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull RangeOptions.ScoreRange minScore,
                                                                             @NonNull
                                                                             @NonNull RangeOptions.ScoreRange maxScore)
        Description copied from interface: SortedSetBaseCommands
        Returns the number of members in the sorted set stored at key with scores between minScore and maxScore.
        Specified by:
        zcount in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minScore - The minimum score to count from. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        maxScore - The maximum score to count up to. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        Returns:
        The number of members in the specified score range.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If maxScore < minScore, 0 is returned.
        See Also:
        valkey.io for more details.
      • zcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> zcount​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull RangeOptions.ScoreRange minScore,
                                                                             @NonNull
                                                                             @NonNull RangeOptions.ScoreRange maxScore)
        Description copied from interface: SortedSetBaseCommands
        Returns the number of members in the sorted set stored at key with scores between minScore and maxScore.
        Specified by:
        zcount in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minScore - The minimum score to count from. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        maxScore - The maximum score to count up to. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        Returns:
        The number of members in the specified score range.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If maxScore < minScore, 0 is returned.
        See Also:
        valkey.io for more details.
      • zremrangebyrank

        public java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyrank​(@NonNull
                                                                                      @NonNull java.lang.String key,
                                                                                      long start,
                                                                                      long end)
        Description copied from interface: SortedSetBaseCommands
        Removes all elements in the sorted set stored at key with rank between start and end. Both start and end are zero-based indexes with 0 being the element with the lowest score. These indexes can be negative numbers, where they indicate offsets starting at the element with the highest score.
        Specified by:
        zremrangebyrank in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        start - The starting point of the range.
        end - The end of the range.
        Returns:
        The number of elements removed.
        If start exceeds the end of the sorted set, or if start is greater than end, 0 returned.
        If end exceeds the actual end of the sorted set, the range will stop at the actual end of the sorted set.
        If key does not exist 0 will be returned.
        See Also:
        valkey.io for more details.
      • zremrangebyrank

        public java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyrank​(@NonNull
                                                                                      @NonNull GlideString key,
                                                                                      long start,
                                                                                      long end)
        Description copied from interface: SortedSetBaseCommands
        Removes all elements in the sorted set stored at key with rank between start and end. Both start and end are zero-based indexes with 0 being the element with the lowest score. These indexes can be negative numbers, where they indicate offsets starting at the element with the highest score.
        Specified by:
        zremrangebyrank in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        start - The starting point of the range.
        end - The end of the range.
        Returns:
        The number of elements removed.
        If start exceeds the end of the sorted set, or if start is greater than end, 0 returned.
        If end exceeds the actual end of the sorted set, the range will stop at the actual end of the sorted set.
        If key does not exist 0 will be returned.
        See Also:
        valkey.io for more details.
      • zremrangebylex

        public java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebylex​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull RangeOptions.LexRange minLex,
                                                                                     @NonNull
                                                                                     @NonNull RangeOptions.LexRange maxLex)
        Description copied from interface: SortedSetBaseCommands
        Removes all elements in the sorted set stored at key with a lexicographical order between minLex and maxLex.
        Specified by:
        zremrangebylex in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minLex - The minimum bound of the lexicographical range. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        maxLex - The maximum bound of the lexicographical range. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        Returns:
        The number of members removed from the sorted set.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If minLex is greater than maxLex, 0 is returned.
        See Also:
        valkey.io for more details.
      • zremrangebylex

        public java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebylex​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull RangeOptions.LexRange minLex,
                                                                                     @NonNull
                                                                                     @NonNull RangeOptions.LexRange maxLex)
        Description copied from interface: SortedSetBaseCommands
        Removes all elements in the sorted set stored at key with a lexicographical order between minLex and maxLex.
        Specified by:
        zremrangebylex in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minLex - The minimum bound of the lexicographical range. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        maxLex - The maximum bound of the lexicographical range. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        Returns:
        The number of members removed from the sorted set.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If minLex is greater than maxLex, 0 is returned.
        See Also:
        valkey.io for more details.
      • zremrangebyscore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyscore​(@NonNull
                                                                                       @NonNull java.lang.String key,
                                                                                       @NonNull
                                                                                       @NonNull RangeOptions.ScoreRange minScore,
                                                                                       @NonNull
                                                                                       @NonNull RangeOptions.ScoreRange maxScore)
        Description copied from interface: SortedSetBaseCommands
        Removes all elements in the sorted set stored at key with a score between minScore and maxScore.
        Specified by:
        zremrangebyscore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minScore - The minimum score to remove from. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        maxScore - The maximum score to remove to. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        Returns:
        The number of members removed.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If minScore is greater than maxScore, 0 is returned.
        See Also:
        valkey.io for more details.
      • zremrangebyscore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zremrangebyscore​(@NonNull
                                                                                       @NonNull GlideString key,
                                                                                       @NonNull
                                                                                       @NonNull RangeOptions.ScoreRange minScore,
                                                                                       @NonNull
                                                                                       @NonNull RangeOptions.ScoreRange maxScore)
        Description copied from interface: SortedSetBaseCommands
        Removes all elements in the sorted set stored at key with a score between minScore and maxScore.
        Specified by:
        zremrangebyscore in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minScore - The minimum score to remove from. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        maxScore - The maximum score to remove to. Can be an implementation of RangeOptions.InfScoreBound representing positive/negative infinity, or RangeOptions.ScoreBoundary representing a specific score and inclusivity.
        Returns:
        The number of members removed.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If minScore is greater than maxScore, 0 is returned.
        See Also:
        valkey.io for more details.
      • zlexcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> zlexcount​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull RangeOptions.LexRange minLex,
                                                                                @NonNull
                                                                                @NonNull RangeOptions.LexRange maxLex)
        Description copied from interface: SortedSetBaseCommands
        Returns the number of members in the sorted set stored at key with scores between minLex and maxLex.
        Specified by:
        zlexcount in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minLex - The minimum lex to count from. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        maxLex - The maximum lex to count up to. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        Returns:
        The number of members in the specified lex range.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If maxLex < minLex, 0 is returned.
        See Also:
        valkey.io for more details.
      • zlexcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> zlexcount​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull RangeOptions.LexRange minLex,
                                                                                @NonNull
                                                                                @NonNull RangeOptions.LexRange maxLex)
        Description copied from interface: SortedSetBaseCommands
        Returns the number of members in the sorted set stored at key with scores between minLex and maxLex.
        Specified by:
        zlexcount in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        minLex - The minimum lex to count from. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        maxLex - The maximum lex to count up to. Can be an implementation of RangeOptions.InfLexBound representing positive/negative infinity, or RangeOptions.LexBoundary representing a specific lex and inclusivity.
        Returns:
        The number of members in the specified lex range.
        If key does not exist, it is treated as an empty sorted set, and the command returns 0.
        If maxLex < minLex, 0 is returned.
        See Also:
        valkey.io for more details.
      • zrangestore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String source,
                                                                                  @NonNull
                                                                                  @NonNull RangeOptions.RangeQuery rangeQuery,
                                                                                  boolean reverse)
        Description copied from interface: SortedSetBaseCommands
        Stores a specified range of elements from the sorted set at source, into a new sorted set at destination. If destination doesn't exist, a new sorted set is created; if it exists, it's overwritten.
        Specified by:
        zrangestore in interface SortedSetBaseCommands
        Parameters:
        destination - The key for the destination sorted set.
        source - The key of the source sorted set.
        rangeQuery - The range query object representing the type of range query to perform.
        reverse - If true, reverses the sorted set, with index 0 as the element with the highest score.
        Returns:
        The number of elements in the resulting sorted set.
        See Also:
        valkey.io for more details.
      • zrangestore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull GlideString source,
                                                                                  @NonNull
                                                                                  @NonNull RangeOptions.RangeQuery rangeQuery,
                                                                                  boolean reverse)
        Description copied from interface: SortedSetBaseCommands
        Stores a specified range of elements from the sorted set at source, into a new sorted set at destination. If destination doesn't exist, a new sorted set is created; if it exists, it's overwritten.
        Specified by:
        zrangestore in interface SortedSetBaseCommands
        Parameters:
        destination - The key for the destination sorted set.
        source - The key of the source sorted set.
        rangeQuery - The range query object representing the type of range query to perform.
        reverse - If true, reverses the sorted set, with index 0 as the element with the highest score.
        Returns:
        The number of elements in the resulting sorted set.
        See Also:
        valkey.io for more details.
      • zrangestore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String source,
                                                                                  @NonNull
                                                                                  @NonNull RangeOptions.RangeQuery rangeQuery)
        Description copied from interface: SortedSetBaseCommands
        Stores a specified range of elements from the sorted set at source, into a new sorted set at destination. If destination doesn't exist, a new sorted set is created; if it exists, it's overwritten.
        Specified by:
        zrangestore in interface SortedSetBaseCommands
        Parameters:
        destination - The key for the destination sorted set.
        source - The key of the source sorted set.
        rangeQuery - The range query object representing the type of range query to perform.
        Returns:
        The number of elements in the resulting sorted set.
        See Also:
        valkey.io for more details.
      • zrangestore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zrangestore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull GlideString source,
                                                                                  @NonNull
                                                                                  @NonNull RangeOptions.RangeQuery rangeQuery)
        Description copied from interface: SortedSetBaseCommands
        Stores a specified range of elements from the sorted set at source, into a new sorted set at destination. If destination doesn't exist, a new sorted set is created; if it exists, it's overwritten.
        Specified by:
        zrangestore in interface SortedSetBaseCommands
        Parameters:
        destination - The key for the destination sorted set.
        source - The key of the source sorted set.
        rangeQuery - The range query object representing the type of range query to perform.
        Returns:
        The number of elements in the resulting sorted set.
        See Also:
        valkey.io for more details.
      • zunionstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.Aggregate aggregate)
        Description copied from interface: SortedSetBaseCommands
        Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zunionstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        aggregate - Specifies the aggregation strategy to apply when combining the scores of elements.
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zunionstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.Aggregate aggregate)
        Description copied from interface: SortedSetBaseCommands
        Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zunionstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        aggregate - Specifies the aggregation strategy to apply when combining the scores of elements.
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zunionstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys)
        Description copied from interface: SortedSetBaseCommands
        Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zunionstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zunionstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zunionstore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys)
        Description copied from interface: SortedSetBaseCommands
        Computes the union of sorted sets given by the specified KeysOrWeightedKeys, and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zunionstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zinterstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.Aggregate aggregate)
        Description copied from interface: SortedSetBaseCommands
        Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zinterstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        aggregate - Specifies the aggregation strategy to apply when combining the scores of elements.
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zinterstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.Aggregate aggregate)
        Description copied from interface: SortedSetBaseCommands
        Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zinterstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        aggregate - Specifies the aggregation strategy to apply when combining the scores of elements.
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zinterstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull
                                                                                  @NonNull java.lang.String destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeys keysOrWeightedKeys)
        Description copied from interface: SortedSetBaseCommands
        Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zinterstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zinterstore

        public java.util.concurrent.CompletableFuture<java.lang.Long> zinterstore​(@NonNull
                                                                                  @NonNull GlideString destination,
                                                                                  @NonNull
                                                                                  @NonNull WeightAggregateOptions.KeysOrWeightedKeysBinary keysOrWeightedKeys)
        Description copied from interface: SortedSetBaseCommands
        Computes the intersection of sorted sets given by the specified keysOrWeightedKeys , and stores the result in destination. If destination already exists, it is overwritten. Otherwise, a new sorted set will be created.
        Specified by:
        zinterstore in interface SortedSetBaseCommands
        Parameters:
        destination - The key of the destination sorted set.
        keysOrWeightedKeys - The keys of the sorted sets with possible formats:
        Returns:
        The number of elements in the resulting sorted set stored at destination.
        See Also:
        valkey.io for more details.
      • zrandmember

        public java.util.concurrent.CompletableFuture<java.lang.String> zrandmember​(@NonNull
                                                                                    @NonNull java.lang.String key)
        Description copied from interface: SortedSetBaseCommands
        Returns a random element from the sorted set stored at key.
        Specified by:
        zrandmember in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        A String representing a random element from the sorted set.
        If the sorted set does not exist or is empty, the response will be null.
        See Also:
        valkey.io for more details.
      • zrandmember

        public java.util.concurrent.CompletableFuture<GlideString> zrandmember​(@NonNull
                                                                               @NonNull GlideString key)
        Description copied from interface: SortedSetBaseCommands
        Returns a random element from the sorted set stored at key.
        Specified by:
        zrandmember in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        Returns:
        A String representing a random element from the sorted set.
        If the sorted set does not exist or is empty, the response will be null.
        See Also:
        valkey.io for more details.
      • zrandmemberWithCount

        public java.util.concurrent.CompletableFuture<java.lang.String[]> zrandmemberWithCount​(@NonNull
                                                                                               @NonNull java.lang.String key,
                                                                                               long count)
        Description copied from interface: SortedSetBaseCommands
        Returns a random element from the sorted set stored at key.
        Specified by:
        zrandmemberWithCount in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - The number of elements to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        An array of elements from the sorted set.
        If the sorted set does not exist or is empty, the response will be an empty array .
        See Also:
        valkey.io for more details.
      • zrandmemberWithCount

        public java.util.concurrent.CompletableFuture<GlideString[]> zrandmemberWithCount​(@NonNull
                                                                                          @NonNull GlideString key,
                                                                                          long count)
        Description copied from interface: SortedSetBaseCommands
        Retrieves random elements from the sorted set stored at key.
        Specified by:
        zrandmemberWithCount in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - The number of elements to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        An array of elements from the sorted set.
        If the sorted set does not exist or is empty, the response will be an empty array .
        See Also:
        valkey.io for more details.
      • zrandmemberWithCountWithScores

        public java.util.concurrent.CompletableFuture<java.lang.Object[][]> zrandmemberWithCountWithScores​(@NonNull
                                                                                                           @NonNull java.lang.String key,
                                                                                                           long count)
        Description copied from interface: SortedSetBaseCommands
        Retrieves random elements along with their scores from the sorted set stored at key .
        Specified by:
        zrandmemberWithCountWithScores in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - The number of elements to return.
        If count is positive, returns unique elements.
        If negative, allows duplicates.
        Returns:
        An array of [element, score] arrays, where element is a String and score is a Double.
        If the sorted set does not exist or is empty, the response will be an empty array .
        See Also:
        valkey.io for more details.
      • zrandmemberWithCountWithScores

        public java.util.concurrent.CompletableFuture<java.lang.Object[][]> zrandmemberWithCountWithScores​(@NonNull
                                                                                                           @NonNull GlideString key,
                                                                                                           long count)
        Description copied from interface: SortedSetBaseCommands
        Retrieves random elements along with their scores from the sorted set stored at key .
        Specified by:
        zrandmemberWithCountWithScores in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        count - The number of elements to return.
        If count is positive, returns unique elements.
        If negative, allows duplicates.
        Returns:
        An array of [element, score] arrays, where element is a String and score is a Double.
        If the sorted set does not exist or is empty, the response will be an empty array .
        See Also:
        valkey.io for more details.
      • zincrby

        public java.util.concurrent.CompletableFuture<java.lang.Double> zincrby​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                double increment,
                                                                                @NonNull
                                                                                @NonNull java.lang.String member)
        Description copied from interface: SortedSetBaseCommands
        Increments the score of member in the sorted set stored at key by increment.
        If member does not exist in the sorted set, it is added with increment as its score. If key does not exist, a new sorted set with the specified member as its sole member is created.
        Specified by:
        zincrby in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        increment - The score increment.
        member - A member of the sorted set.
        Returns:
        The new score of member.
        See Also:
        valkey.io for more details.
      • zincrby

        public java.util.concurrent.CompletableFuture<java.lang.Double> zincrby​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                double increment,
                                                                                @NonNull
                                                                                @NonNull GlideString member)
        Description copied from interface: SortedSetBaseCommands
        Increments the score of member in the sorted set stored at key by increment.
        If member does not exist in the sorted set, it is added with increment as its score. If key does not exist, a new sorted set with the specified member as its sole member is created.
        Specified by:
        zincrby in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        increment - The score increment.
        member - A member of the sorted set.
        Returns:
        The new score of member.
        See Also:
        valkey.io for more details.
      • zintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull
                                                                                 @NonNull java.lang.String[] keys)
        Description copied from interface: SortedSetBaseCommands
        Returns the cardinality of the intersection of the sorted sets specified by keys.
        Specified by:
        zintercard in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets to intersect.
        Returns:
        The cardinality of the intersection of the given sorted sets.
        See Also:
        valkey.io for more details.
      • zintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull
                                                                                 @NonNull GlideString[] keys)
        Description copied from interface: SortedSetBaseCommands
        Returns the cardinality of the intersection of the sorted sets specified by keys.
        Specified by:
        zintercard in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets to intersect.
        Returns:
        The cardinality of the intersection of the given sorted sets.
        See Also:
        valkey.io for more details.
      • zintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull
                                                                                 @NonNull java.lang.String[] keys,
                                                                                 long limit)
        Description copied from interface: SortedSetBaseCommands
        Returns the cardinality of the intersection of the sorted sets specified by keys. If the intersection cardinality reaches limit partway through the computation, the algorithm will exit early and yield limit as the cardinality.
        Specified by:
        zintercard in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets to intersect.
        limit - Specifies a maximum number for the intersection cardinality. If limit is set to 0 the range will be unlimited.
        Returns:
        The cardinality of the intersection of the given sorted sets, or the limit if reached.
        See Also:
        valkey.io for more details.
      • zintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> zintercard​(@NonNull
                                                                                 @NonNull GlideString[] keys,
                                                                                 long limit)
        Description copied from interface: SortedSetBaseCommands
        Returns the cardinality of the intersection of the sorted sets specified by keys. If the intersection cardinality reaches limit partway through the computation, the algorithm will exit early and yield limit as the cardinality.
        Specified by:
        zintercard in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets to intersect.
        limit - Specifies a maximum number for the intersection cardinality. If limit is set to 0 the range will be unlimited.
        Returns:
        The cardinality of the intersection of the given sorted sets, or the limit if reached.
        See Also:
        valkey.io for more details.
      • xadd

        public java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<java.lang.String,​java.lang.String> values)
        Description copied from interface: StreamBaseCommands
        Adds an entry to the specified stream stored at key.
        If the key doesn't exist, the stream is created. To add entries with duplicate keys, use StreamBaseCommands.xadd(String, String[][]).
        Specified by:
        xadd in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        values - Field-value pairs to be added to the entry.
        Returns:
        The id of the added entry.
        See Also:
        valkey.io for details.
      • xadd

        public java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String[][] values)
        Description copied from interface: StreamBaseCommands
        Adds an entry to the specified stream stored at key.
        If the key doesn't exist, the stream is created. This method overload allows entries with duplicate keys to be added.
        Specified by:
        xadd in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        values - Field-value pairs to be added to the entry.
        Returns:
        The id of the added entry.
        See Also:
        valkey.io for details.
      • xadd

        public java.util.concurrent.CompletableFuture<GlideString> xadd​(@NonNull
                                                                        @NonNull GlideString key,
                                                                        @NonNull
                                                                        @NonNull GlideString[][] values)
        Description copied from interface: StreamBaseCommands
        Adds an entry to the specified stream stored at key.
        If the key doesn't exist, the stream is created. This method overload allows entries with duplicate keys to be added.
        Specified by:
        xadd in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        values - Field-value pairs to be added to the entry.
        Returns:
        The id of the added entry.
        See Also:
        valkey.io for details.
      • xadd

        public java.util.concurrent.CompletableFuture<java.lang.String> xadd​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String[][] values,
                                                                             @NonNull
                                                                             @NonNull StreamAddOptions options)
        Description copied from interface: StreamBaseCommands
        Adds an entry to the specified stream stored at key.
        If the key doesn't exist, the stream is created. This method overload allows entries with duplicate keys to be added.
        Specified by:
        xadd in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        values - Field-value pairs to be added to the entry.
        options - Stream add options StreamAddOptions.
        Returns:
        The id of the added entry, or null if StreamAddOptions.StreamAddOptionsBuilder.makeStream(Boolean) is set to false and no stream with the matching key exists.
        See Also:
        valkey.io for details.
      • xread

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xread​(@NonNull
                                                                                                                                                              @NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams.
        Specified by:
        xread in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        Returns:
        A Map<String, Map<String, String[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...].
        See Also:
        valkey.io for details.
      • xreadBinary

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadBinary​(@NonNull
                                                                                                                                                     @NonNull java.util.Map<GlideString,​GlideString> keysAndIds)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams.
        Specified by:
        xreadBinary in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        Returns:
        A Map<String, Map<String, String[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...].
        See Also:
        valkey.io for details.
      • xread

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xread​(@NonNull
                                                                                                                                                              @NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds,
                                                                                                                                                              @NonNull
                                                                                                                                                              @NonNull StreamReadOptions options)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams.
        Specified by:
        xread in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        options - Options detailing how to read the stream StreamReadOptions.
        Returns:
        A Map<String, Map<String, String[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...]. Returns null if all key-ID pairs in keys_and_ids have either a non-existing key or a non-existing ID, or there are no entries after the given ID, or a timeout is hit in the block option.
        See Also:
        valkey.io for details.
      • xreadBinary

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadBinary​(@NonNull
                                                                                                                                                     @NonNull java.util.Map<GlideString,​GlideString> keysAndIds,
                                                                                                                                                     @NonNull
                                                                                                                                                     @NonNull StreamReadOptions options)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams.
        Specified by:
        xreadBinary in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        options - Options detailing how to read the stream StreamReadOptions.
        Returns:
        A Map<GlideString, Map<GlideString, GlideString[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...].
        See Also:
        valkey.io for details.
      • xtrim

        public java.util.concurrent.CompletableFuture<java.lang.Long> xtrim​(@NonNull
                                                                            @NonNull java.lang.String key,
                                                                            @NonNull
                                                                            @NonNull StreamTrimOptions options)
        Description copied from interface: StreamBaseCommands
        Trims the stream by evicting older entries.
        Specified by:
        xtrim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        options - Stream trim options StreamTrimOptions.
        Returns:
        The number of entries deleted from the stream.
        See Also:
        valkey.io for details.
      • xtrim

        public java.util.concurrent.CompletableFuture<java.lang.Long> xtrim​(@NonNull
                                                                            @NonNull GlideString key,
                                                                            @NonNull
                                                                            @NonNull StreamTrimOptions options)
        Description copied from interface: StreamBaseCommands
        Trims the stream by evicting older entries.
        Specified by:
        xtrim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        options - Stream trim options StreamTrimOptions.
        Returns:
        The number of entries deleted from the stream.
        See Also:
        valkey.io for details.
      • xlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> xlen​(@NonNull
                                                                           @NonNull java.lang.String key)
        Description copied from interface: StreamBaseCommands
        Returns the number of entries in the stream stored at key.
        Specified by:
        xlen in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        Returns:
        The number of entries in the stream. If key does not exist, return 0 .
        See Also:
        valkey.io for details.
      • xlen

        public java.util.concurrent.CompletableFuture<java.lang.Long> xlen​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: StreamBaseCommands
        Returns the number of entries in the stream stored at key.
        Specified by:
        xlen in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        Returns:
        The number of entries in the stream. If key does not exist, return 0 .
        See Also:
        valkey.io for details.
      • xdel

        public java.util.concurrent.CompletableFuture<java.lang.Long> xdel​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String[] ids)
        Description copied from interface: StreamBaseCommands
        Removes the specified entries by id from a stream, and returns the number of entries deleted.
        Specified by:
        xdel in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        ids - An array of entry ids.
        Returns:
        The number of entries removed from the stream. This number may be less than the number of entries in ids, if the specified ids don't exist in the stream.
        See Also:
        valkey.io for details.
      • xdel

        public java.util.concurrent.CompletableFuture<java.lang.Long> xdel​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString[] ids)
        Description copied from interface: StreamBaseCommands
        Removes the specified entries by id from a stream, and returns the number of entries deleted.
        Specified by:
        xdel in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        ids - An array of entry ids.
        Returns:
        The number of entries removed from the stream. This number may be less than the number of entries in ids, if the specified ids don't exist in the stream.
        See Also:
        valkey.io for details.
      • xgroupCreate

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String groupName,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String id)
        Description copied from interface: StreamBaseCommands
        Creates a new consumer group uniquely identified by groupname for the stream stored at key.
        Specified by:
        xgroupCreate in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The newly created consumer group name.
        id - Stream entry ID that specifies the last delivered entry in the stream from the new group's perspective. The special ID "$" can be used to specify the last entry in the stream.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupCreate

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString groupName,
                                                                                     @NonNull
                                                                                     @NonNull GlideString id)
        Description copied from interface: StreamBaseCommands
        Creates a new consumer group uniquely identified by groupname for the stream stored at key.
        Specified by:
        xgroupCreate in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The newly created consumer group name.
        id - Stream entry ID that specifies the last delivered entry in the stream from the new group's perspective. The special ID "$" can be used to specify the last entry in the stream.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupCreate

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String groupName,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String id,
                                                                                     @NonNull
                                                                                     @NonNull StreamGroupOptions options)
        Description copied from interface: StreamBaseCommands
        Creates a new consumer group uniquely identified by groupname for the stream stored at key.
        Specified by:
        xgroupCreate in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The newly created consumer group name.
        id - Stream entry ID that specifies the last delivered entry in the stream from the new group's perspective. The special ID "$" can be used to specify the last entry in the stream.
        options - The group options StreamGroupOptions.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupCreate

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupCreate​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString groupName,
                                                                                     @NonNull
                                                                                     @NonNull GlideString id,
                                                                                     @NonNull
                                                                                     @NonNull StreamGroupOptions options)
        Description copied from interface: StreamBaseCommands
        Creates a new consumer group uniquely identified by groupname for the stream stored at key.
        Specified by:
        xgroupCreate in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The newly created consumer group name.
        id - Stream entry ID that specifies the last delivered entry in the stream from the new group's perspective. The special ID "$" can be used to specify the last entry in the stream.
        options - The group options StreamGroupOptions.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupDestroy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupDestroy​(@NonNull
                                                                                       @NonNull java.lang.String key,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String groupname)
        Description copied from interface: StreamBaseCommands
        Destroys the consumer group groupname for the stream stored at key.
        Specified by:
        xgroupDestroy in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupname - The consumer group name to delete.
        Returns:
        true if the consumer group is destroyed. Otherwise, false.
        See Also:
        valkey.io for details.
      • xgroupDestroy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupDestroy​(@NonNull
                                                                                       @NonNull GlideString key,
                                                                                       @NonNull
                                                                                       @NonNull GlideString groupname)
        Description copied from interface: StreamBaseCommands
        Destroys the consumer group groupname for the stream stored at key.
        Specified by:
        xgroupDestroy in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupname - The consumer group name to delete.
        Returns:
        true if the consumer group is destroyed. Otherwise, false.
        See Also:
        valkey.io for details.
      • xgroupCreateConsumer

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupCreateConsumer​(@NonNull
                                                                                              @NonNull java.lang.String key,
                                                                                              @NonNull
                                                                                              @NonNull java.lang.String group,
                                                                                              @NonNull
                                                                                              @NonNull java.lang.String consumer)
        Description copied from interface: StreamBaseCommands
        Creates a consumer named consumer in the consumer group group for the stream stored at key.
        Specified by:
        xgroupCreateConsumer in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The newly created consumer.
        Returns:
        true if the consumer is created. Otherwise, false.
        See Also:
        valkey.io for details.
      • xgroupCreateConsumer

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> xgroupCreateConsumer​(@NonNull
                                                                                              @NonNull GlideString key,
                                                                                              @NonNull
                                                                                              @NonNull GlideString group,
                                                                                              @NonNull
                                                                                              @NonNull GlideString consumer)
        Description copied from interface: StreamBaseCommands
        Creates a consumer named consumer in the consumer group group for the stream stored at key.
        Specified by:
        xgroupCreateConsumer in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The newly created consumer.
        Returns:
        true if the consumer is created. Otherwise, false.
        See Also:
        valkey.io for details.
      • xgroupDelConsumer

        public java.util.concurrent.CompletableFuture<java.lang.Long> xgroupDelConsumer​(@NonNull
                                                                                        @NonNull java.lang.String key,
                                                                                        @NonNull
                                                                                        @NonNull java.lang.String group,
                                                                                        @NonNull
                                                                                        @NonNull java.lang.String consumer)
        Description copied from interface: StreamBaseCommands
        Deletes a consumer named consumer in the consumer group group.
        Specified by:
        xgroupDelConsumer in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The consumer to delete.
        Returns:
        The number of pending messages the consumer had before it was deleted.
        See Also:
        valkey.io for details.
      • xgroupDelConsumer

        public java.util.concurrent.CompletableFuture<java.lang.Long> xgroupDelConsumer​(@NonNull
                                                                                        @NonNull GlideString key,
                                                                                        @NonNull
                                                                                        @NonNull GlideString group,
                                                                                        @NonNull
                                                                                        @NonNull GlideString consumer)
        Description copied from interface: StreamBaseCommands
        Deletes a consumer named consumer in the consumer group group.
        Specified by:
        xgroupDelConsumer in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The consumer to delete.
        Returns:
        The number of pending messages the consumer had before it was deleted.
        See Also:
        valkey.io for details.
      • xgroupSetId

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull
                                                                                    @NonNull java.lang.String key,
                                                                                    @NonNull
                                                                                    @NonNull java.lang.String groupName,
                                                                                    @NonNull
                                                                                    @NonNull java.lang.String id)
        Description copied from interface: StreamBaseCommands
        Sets the last delivered ID for a consumer group.
        Specified by:
        xgroupSetId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The consumer group name.
        id - The stream entry ID that should be set as the last delivered ID for the consumer group.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupSetId

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull
                                                                                    @NonNull GlideString key,
                                                                                    @NonNull
                                                                                    @NonNull GlideString groupName,
                                                                                    @NonNull
                                                                                    @NonNull GlideString id)
        Description copied from interface: StreamBaseCommands
        Sets the last delivered ID for a consumer group.
        Specified by:
        xgroupSetId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The consumer group name.
        id - The stream entry ID that should be set as the last delivered ID for the consumer group.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupSetId

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull
                                                                                    @NonNull java.lang.String key,
                                                                                    @NonNull
                                                                                    @NonNull java.lang.String groupName,
                                                                                    @NonNull
                                                                                    @NonNull java.lang.String id,
                                                                                    long entriesRead)
        Description copied from interface: StreamBaseCommands
        Sets the last delivered ID for a consumer group.
        Specified by:
        xgroupSetId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The consumer group name.
        id - The stream entry ID that should be set as the last delivered ID for the consumer group.
        entriesRead - A value representing the number of stream entries already read by the group.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xgroupSetId

        public java.util.concurrent.CompletableFuture<java.lang.String> xgroupSetId​(@NonNull
                                                                                    @NonNull GlideString key,
                                                                                    @NonNull
                                                                                    @NonNull GlideString groupName,
                                                                                    @NonNull
                                                                                    @NonNull GlideString id,
                                                                                    long entriesRead)
        Description copied from interface: StreamBaseCommands
        Sets the last delivered ID for a consumer group.
        Specified by:
        xgroupSetId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The consumer group name.
        id - The stream entry ID that should be set as the last delivered ID for the consumer group.
        entriesRead - A value representing the number of stream entries already read by the group.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • xreadgroup

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xreadgroup​(@NonNull
                                                                                                                                                                   @NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds,
                                                                                                                                                                   @NonNull
                                                                                                                                                                   @NonNull java.lang.String group,
                                                                                                                                                                   @NonNull
                                                                                                                                                                   @NonNull java.lang.String consumer)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams owned by a consumer group.
        Specified by:
        xreadgroup in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        Use the special ID of ">" to receive only new messages.
        group - The consumer group name.
        consumer - The consumer name.
        Returns:
        A Map<String, Map<String, String[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...]. Returns null if there is no stream that can be served.
        See Also:
        valkey.io for details.
      • xreadgroup

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadgroup​(@NonNull
                                                                                                                                                    @NonNull java.util.Map<GlideString,​GlideString> keysAndIds,
                                                                                                                                                    @NonNull
                                                                                                                                                    @NonNull GlideString group,
                                                                                                                                                    @NonNull
                                                                                                                                                    @NonNull GlideString consumer)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams owned by a consumer group.
        Specified by:
        xreadgroup in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        Use the special ID of gs(">") to receive only new messages.
        group - The consumer group name.
        consumer - The consumer name.
        Returns:
        A Map<GlideString, Map<GlideString, GlideString[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...]. Returns null if there is no stream that can be served.
        See Also:
        valkey.io for details.
      • xreadgroup

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String[][]>>> xreadgroup​(@NonNull
                                                                                                                                                                   @NonNull java.util.Map<java.lang.String,​java.lang.String> keysAndIds,
                                                                                                                                                                   @NonNull
                                                                                                                                                                   @NonNull java.lang.String group,
                                                                                                                                                                   @NonNull
                                                                                                                                                                   @NonNull java.lang.String consumer,
                                                                                                                                                                   @NonNull
                                                                                                                                                                   @NonNull StreamReadGroupOptions options)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams owned by a consumer group.
        Specified by:
        xreadgroup in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        Use the special ID of ">" to receive only new messages.
        group - The consumer group name.
        consumer - The consumer name.
        options - Options detailing how to read the stream StreamReadGroupOptions.
        Returns:
        A Map<String, Map<String, String[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...]. Returns null if there is no stream that can be served.
        See Also:
        valkey.io for details.
      • xreadgroup

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.util.Map<GlideString,​GlideString[][]>>> xreadgroup​(@NonNull
                                                                                                                                                    @NonNull java.util.Map<GlideString,​GlideString> keysAndIds,
                                                                                                                                                    @NonNull
                                                                                                                                                    @NonNull GlideString group,
                                                                                                                                                    @NonNull
                                                                                                                                                    @NonNull GlideString consumer,
                                                                                                                                                    @NonNull
                                                                                                                                                    @NonNull StreamReadGroupOptions options)
        Description copied from interface: StreamBaseCommands
        Reads entries from the given streams owned by a consumer group.
        Specified by:
        xreadgroup in interface StreamBaseCommands
        Parameters:
        keysAndIds - A Map of keys and entry IDs to read from.
        Use the special ID of gs(">") to receive only new messages.
        group - The consumer group name.
        consumer - The consumer name.
        options - Options detailing how to read the stream StreamReadGroupOptions.
        Returns:
        A Map<GlideString, Map<GlideString, GlideString[][]>> with stream keys, to Map of stream entry IDs, to an array of pairings with format [[field, entry], [field, entry], ...]. Returns null if there is no stream that can be served.
        See Also:
        valkey.io for details.
      • xack

        public java.util.concurrent.CompletableFuture<java.lang.Long> xack​(@NonNull
                                                                           @NonNull java.lang.String key,
                                                                           @NonNull
                                                                           @NonNull java.lang.String group,
                                                                           @NonNull
                                                                           @NonNull java.lang.String[] ids)
        Description copied from interface: StreamBaseCommands
        Returns the number of messages that were successfully acknowledged by the consumer group member of a stream. This command should be called on a pending message so that such message does not get processed again.
        Specified by:
        xack in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        ids - Stream entry ID to acknowledge and purge messages.
        Returns:
        The number of messages that were successfully acknowledged.
        See Also:
        valkey.io for details.
      • xack

        public java.util.concurrent.CompletableFuture<java.lang.Long> xack​(@NonNull
                                                                           @NonNull GlideString key,
                                                                           @NonNull
                                                                           @NonNull GlideString group,
                                                                           @NonNull
                                                                           @NonNull GlideString[] ids)
        Description copied from interface: StreamBaseCommands
        Returns the number of messages that were successfully acknowledged by the consumer group member of a stream. This command should be called on a pending message so that such message does not get processed again.
        Specified by:
        xack in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        ids - Stream entry ID to acknowledge and purge messages.
        Returns:
        The number of messages that were successfully acknowledged.
      • xpending

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xpending​(@NonNull
                                                                                   @NonNull java.lang.String key,
                                                                                   @NonNull
                                                                                   @NonNull java.lang.String group)
        Description copied from interface: StreamBaseCommands
        Returns stream message summary information for pending messages matching a given range of IDs.
        Specified by:
        xpending in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        Returns:
        An array that includes the summary of pending messages, with the format [NumOfMessages, StartId, EndId, [Consumer, NumOfMessages]], where:
        • NumOfMessages: The total number of pending messages for this consumer group.
        • StartId: The smallest ID among the pending messages.
        • EndId: The greatest ID among the pending messages.
        • [[Consumer, NumOfMessages], ...]: A 2D-array of every consumer in the consumer group with at least one pending message, and the number of pending messages it has.
        See Also:
        valkey.io for details.
      • xpending

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xpending​(@NonNull
                                                                                   @NonNull GlideString key,
                                                                                   @NonNull
                                                                                   @NonNull GlideString group)
        Description copied from interface: StreamBaseCommands
        Returns stream message summary information for pending messages matching a given range of IDs.
        Specified by:
        xpending in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        Returns:
        An array that includes the summary of pending messages, with the format [NumOfMessages, StartId, EndId, [Consumer, NumOfMessages]], where:
        • NumOfMessages: The total number of pending messages for this consumer group.
        • StartId: The smallest ID among the pending messages.
        • EndId: The greatest ID among the pending messages.
        • [[Consumer, NumOfMessages], ...]: A 2D-array of every consumer in the consumer group with at least one pending message, and the number of pending messages it has.
        See Also:
        valkey.io for details.
      • xpending

        public java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String group,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange start,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange end,
                                                                                     long count)
        Description copied from interface: StreamBaseCommands
        Returns an extended form of stream message information for pending messages matching a given range of IDs.
        Specified by:
        xpending in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        start - Starting stream entry ID bound for range.
        end - Ending stream entry ID bound for range.
        count - Limits the number of messages returned.
        Returns:
        A 2D-array of 4-tuples containing extended message information with the format [[ID, Consumer, TimeElapsed, NumOfDelivered], ... ], where:
        • ID: The ID of the message.
        • Consumer: The name of the consumer that fetched the message and has still to acknowledge it. We call it the current owner of the message.
        • TimeElapsed: The number of milliseconds that elapsed since the last time this message was delivered to this consumer.
        • NumOfDelivered: The number of times this message was delivered.
        See Also:
        valkey.io for details.
      • xpending

        public java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString group,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange start,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange end,
                                                                                     long count)
        Description copied from interface: StreamBaseCommands
        Returns an extended form of stream message information for pending messages matching a given range of IDs.
        Specified by:
        xpending in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        start - Starting stream entry ID bound for range.
        end - Ending stream entry ID bound for range.
        count - Limits the number of messages returned.
        Returns:
        A 2D-array of 4-tuples containing extended message information with the format [[ID, Consumer, TimeElapsed, NumOfDelivered], ... ], where:
        • ID: The ID of the message.
        • Consumer: The name of the consumer that fetched the message and has still to acknowledge it. We call it the current owner of the message.
        • TimeElapsed: The number of milliseconds that elapsed since the last time this message was delivered to this consumer.
        • NumOfDelivered: The number of times this message was delivered.
        See Also:
        valkey.io for details.
      • xpending

        public java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String group,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange start,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange end,
                                                                                     long count,
                                                                                     @NonNull
                                                                                     @NonNull StreamPendingOptions options)
        Description copied from interface: StreamBaseCommands
        Returns an extended form of stream message information for pending messages matching a given range of IDs.
        Specified by:
        xpending in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        start - Starting stream entry ID bound for range.
        end - Ending stream entry ID bound for range.
        count - Limits the number of messages returned.
        options - Stream add options StreamPendingOptions.
        Returns:
        A 2D-array of 4-tuples containing extended message information with the format [[ID, Consumer, TimeElapsed, NumOfDelivered], ... ], where:
        • ID: The ID of the message.
        • Consumer: The name of the consumer that fetched the message and has still to acknowledge it. We call it the current owner of the message.
        • TimeElapsed: The number of milliseconds that elapsed since the last time this message was delivered to this consumer.
        • NumOfDelivered: The number of times this message was delivered.
        See Also:
        valkey.io for details.
      • xpending

        public java.util.concurrent.CompletableFuture<java.lang.Object[][]> xpending​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString group,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange start,
                                                                                     @NonNull
                                                                                     @NonNull StreamRange end,
                                                                                     long count,
                                                                                     @NonNull
                                                                                     @NonNull StreamPendingOptionsBinary options)
        Description copied from interface: StreamBaseCommands
        Returns an extended form of stream message information for pending messages matching a given range of IDs.
        Specified by:
        xpending in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        start - Starting stream entry ID bound for range.
        end - Ending stream entry ID bound for range.
        count - Limits the number of messages returned.
        options - Stream add options StreamPendingOptionsBinary.
        Returns:
        A 2D-array of 4-tuples containing extended message information with the format [[ID, Consumer, TimeElapsed, NumOfDelivered], ... ], where:
        • ID: The ID of the message.
        • Consumer: The name of the consumer that fetched the message and has still to acknowledge it. We call it the current owner of the message.
        • TimeElapsed: The number of milliseconds that elapsed since the last time this message was delivered to this consumer.
        • NumOfDelivered: The number of times this message was delivered.
        See Also:
        valkey.io for details.
      • xclaim

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xclaim​(@NonNull
                                                                                                                         @NonNull java.lang.String key,
                                                                                                                         @NonNull
                                                                                                                         @NonNull java.lang.String group,
                                                                                                                         @NonNull
                                                                                                                         @NonNull java.lang.String consumer,
                                                                                                                         long minIdleTime,
                                                                                                                         @NonNull
                                                                                                                         @NonNull java.lang.String[] ids)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message.
        Specified by:
        xclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - A array of entry ids.
        Returns:
        A Map of message entries with the format {"entryId": [["entry", "data"], ...], ...} that are claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaim

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xclaim​(@NonNull
                                                                                                               @NonNull GlideString key,
                                                                                                               @NonNull
                                                                                                               @NonNull GlideString group,
                                                                                                               @NonNull
                                                                                                               @NonNull GlideString consumer,
                                                                                                               long minIdleTime,
                                                                                                               @NonNull
                                                                                                               @NonNull GlideString[] ids)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message.
        Specified by:
        xclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - A array of entry ids.
        Returns:
        A Map of message entries with the format {"entryId": [["entry", "data"], ...], ...} that are claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaim

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[][]>> xclaim​(@NonNull
                                                                                                                         @NonNull java.lang.String key,
                                                                                                                         @NonNull
                                                                                                                         @NonNull java.lang.String group,
                                                                                                                         @NonNull
                                                                                                                         @NonNull java.lang.String consumer,
                                                                                                                         long minIdleTime,
                                                                                                                         @NonNull
                                                                                                                         @NonNull java.lang.String[] ids,
                                                                                                                         @NonNull
                                                                                                                         @NonNull StreamClaimOptions options)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message.
        Specified by:
        xclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - An array of entry ids.
        options - Stream claim options StreamClaimOptions.
        Returns:
        A Map of message entries with the format {"entryId": [["entry", "data"], ...], ...} that are claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaim

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[][]>> xclaim​(@NonNull
                                                                                                               @NonNull GlideString key,
                                                                                                               @NonNull
                                                                                                               @NonNull GlideString group,
                                                                                                               @NonNull
                                                                                                               @NonNull GlideString consumer,
                                                                                                               long minIdleTime,
                                                                                                               @NonNull
                                                                                                               @NonNull GlideString[] ids,
                                                                                                               @NonNull
                                                                                                               @NonNull StreamClaimOptions options)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message.
        Specified by:
        xclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - An array of entry ids.
        options - Stream claim options StreamClaimOptions.
        Returns:
        A Map of message entries with the format {"entryId": [["entry", "data"], ...], ...} that are claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaimJustId

        public java.util.concurrent.CompletableFuture<java.lang.String[]> xclaimJustId​(@NonNull
                                                                                       @NonNull java.lang.String key,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String group,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String consumer,
                                                                                       long minIdleTime,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String[] ids)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message. This function returns an array with only the message/entry IDs, and is equivalent to using JUSTID in the Valkey API.
        Specified by:
        xclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - An array of entry ids.
        Returns:
        An array of message ids claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaimJustId

        public java.util.concurrent.CompletableFuture<GlideString[]> xclaimJustId​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull GlideString group,
                                                                                  @NonNull
                                                                                  @NonNull GlideString consumer,
                                                                                  long minIdleTime,
                                                                                  @NonNull
                                                                                  @NonNull GlideString[] ids)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message. This function returns an array with only the message/entry IDs, and is equivalent to using JUSTID in the Valkey API.
        Specified by:
        xclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - An array of entry ids.
        Returns:
        An array of message ids claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaimJustId

        public java.util.concurrent.CompletableFuture<java.lang.String[]> xclaimJustId​(@NonNull
                                                                                       @NonNull java.lang.String key,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String group,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String consumer,
                                                                                       long minIdleTime,
                                                                                       @NonNull
                                                                                       @NonNull java.lang.String[] ids,
                                                                                       @NonNull
                                                                                       @NonNull StreamClaimOptions options)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message. This function returns an array with only the message/entry IDs, and is equivalent to using JUSTID in the Valkey API.
        Specified by:
        xclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - An array of entry ids.
        options - Stream claim options StreamClaimOptions.
        Returns:
        An array of message ids claimed by the consumer.
        See Also:
        valkey.io for details.
      • xclaimJustId

        public java.util.concurrent.CompletableFuture<GlideString[]> xclaimJustId​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull GlideString group,
                                                                                  @NonNull
                                                                                  @NonNull GlideString consumer,
                                                                                  long minIdleTime,
                                                                                  @NonNull
                                                                                  @NonNull GlideString[] ids,
                                                                                  @NonNull
                                                                                  @NonNull StreamClaimOptions options)
        Description copied from interface: StreamBaseCommands
        Changes the ownership of a pending message. This function returns an array with only the message/entry IDs, and is equivalent to using JUSTID in the Valkey API.
        Specified by:
        xclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        ids - An array of entry ids.
        options - Stream claim options StreamClaimOptions.
        Returns:
        An array of message ids claimed by the consumer.
        See Also:
        valkey.io for details.
      • xinfoGroups

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>[]> xinfoGroups​(@NonNull
                                                                                                                            @NonNull java.lang.String key)
        Description copied from interface: StreamBaseCommands
        Returns the list of all consumer groups and their attributes for the stream stored at key .
        Specified by:
        xinfoGroups in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        Returns:
        An Array of Maps, where each mapping represents the attributes of a consumer group for the stream at key.
        See Also:
        valkey.io for details.
      • xinfoGroups

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>[]> xinfoGroups​(@NonNull
                                                                                                                       @NonNull GlideString key)
        Description copied from interface: StreamBaseCommands
        Returns the list of all consumer groups and their attributes for the stream stored at key .
        Specified by:
        xinfoGroups in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        Returns:
        An Array of Maps, where each mapping represents the attributes of a consumer group for the stream at key.
        See Also:
        valkey.io for details.
      • xinfoConsumers

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>[]> xinfoConsumers​(@NonNull
                                                                                                                               @NonNull java.lang.String key,
                                                                                                                               @NonNull
                                                                                                                               @NonNull java.lang.String groupName)
        Description copied from interface: StreamBaseCommands
        Returns the list of all consumers and their attributes for the given consumer group of the stream stored at key.
        Specified by:
        xinfoConsumers in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The consumer group name.
        Returns:
        An Array of Maps, where each mapping contains the attributes of a consumer for the given consumer group of the stream at key.
        See Also:
        valkey.io for details.
      • xinfoConsumers

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>[]> xinfoConsumers​(@NonNull
                                                                                                                          @NonNull GlideString key,
                                                                                                                          @NonNull
                                                                                                                          @NonNull GlideString groupName)
        Description copied from interface: StreamBaseCommands
        Returns the list of all consumers and their attributes for the given consumer group of the stream stored at key.
        Specified by:
        xinfoConsumers in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        groupName - The consumer group name.
        Returns:
        An Array of Maps, where each mapping contains the attributes of a consumer for the given consumer group of the stream at key.
        See Also:
        valkey.io for details.
      • xautoclaim

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String group,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String consumer,
                                                                                     long minIdleTime,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String start)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria.
        Specified by:
        xautoclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A mapping of the claimed entries, with the keys being the claimed entry IDs and the values being a 2D list of the field-value pairs in the format [[field1, value1], [field2, value2], ...].
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaim

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString group,
                                                                                     @NonNull
                                                                                     @NonNull GlideString consumer,
                                                                                     long minIdleTime,
                                                                                     @NonNull
                                                                                     @NonNull GlideString start)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria.
        Specified by:
        xautoclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A mapping of the claimed entries, with the keys being the claimed entry IDs and the values being a 2D list of the field-value pairs in the format [[field1, value1], [field2, value2], ...].
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaim

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull
                                                                                     @NonNull java.lang.String key,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String group,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String consumer,
                                                                                     long minIdleTime,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String start,
                                                                                     long count)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria.
        Specified by:
        xautoclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        count - Limits the number of claimed entries to the specified value. Default value is 100.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A mapping of the claimed entries, with the keys being the claimed entry IDs and the values being a 2D list of the field-value pairs in the format [[field1, value1], [field2, value2], ...].
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaim

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaim​(@NonNull
                                                                                     @NonNull GlideString key,
                                                                                     @NonNull
                                                                                     @NonNull GlideString group,
                                                                                     @NonNull
                                                                                     @NonNull GlideString consumer,
                                                                                     long minIdleTime,
                                                                                     @NonNull
                                                                                     @NonNull GlideString start,
                                                                                     long count)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria.
        Specified by:
        xautoclaim in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        count - Limits the number of claimed entries to the specified value. Default value is 100.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A mapping of the claimed entries, with the keys being the claimed entry IDs and the values being a 2D list of the field-value pairs in the format [[field1, value1], [field2, value2], ...].
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaimJustId

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull
                                                                                           @NonNull java.lang.String key,
                                                                                           @NonNull
                                                                                           @NonNull java.lang.String group,
                                                                                           @NonNull
                                                                                           @NonNull java.lang.String consumer,
                                                                                           long minIdleTime,
                                                                                           @NonNull
                                                                                           @NonNull java.lang.String start)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria. This command uses the JUSTID argument to further specify that the return value should contain a list of claimed IDs without their field-value info.
        Specified by:
        xautoclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A list of the IDs for the claimed entries.
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaimJustId

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull
                                                                                           @NonNull GlideString key,
                                                                                           @NonNull
                                                                                           @NonNull GlideString group,
                                                                                           @NonNull
                                                                                           @NonNull GlideString consumer,
                                                                                           long minIdleTime,
                                                                                           @NonNull
                                                                                           @NonNull GlideString start)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria. This command uses the JUSTID argument to further specify that the return value should contain a list of claimed IDs without their field-value info.
        Specified by:
        xautoclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A list of the IDs for the claimed entries.
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaimJustId

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull
                                                                                           @NonNull java.lang.String key,
                                                                                           @NonNull
                                                                                           @NonNull java.lang.String group,
                                                                                           @NonNull
                                                                                           @NonNull java.lang.String consumer,
                                                                                           long minIdleTime,
                                                                                           @NonNull
                                                                                           @NonNull java.lang.String start,
                                                                                           long count)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria. This command uses the JUSTID argument to further specify that the return value should contain a list of claimed IDs without their field-value info.
        Specified by:
        xautoclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        count - Limits the number of claimed entries to the specified value. Default value is 100.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A list of the IDs for the claimed entries.
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xautoclaimJustId

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> xautoclaimJustId​(@NonNull
                                                                                           @NonNull GlideString key,
                                                                                           @NonNull
                                                                                           @NonNull GlideString group,
                                                                                           @NonNull
                                                                                           @NonNull GlideString consumer,
                                                                                           long minIdleTime,
                                                                                           @NonNull
                                                                                           @NonNull GlideString start,
                                                                                           long count)
        Description copied from interface: StreamBaseCommands
        Transfers ownership of pending stream entries that match the specified criteria. This command uses the JUSTID argument to further specify that the return value should contain a list of claimed IDs without their field-value info.
        Specified by:
        xautoclaimJustId in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        group - The consumer group name.
        consumer - The group consumer.
        minIdleTime - The minimum idle time for the message to be claimed.
        start - Filters the claimed entries to those that have an ID equal or greater than the specified value.
        count - Limits the number of claimed entries to the specified value. Default value is 100.
        Returns:
        An array containing the following elements:
        • A stream entry ID to be used as the start argument for the next call to XAUTOCLAIM . This ID is equivalent to the next ID in the stream after the entries that were scanned, or "0-0" if the entire stream was scanned.
        • A list of the IDs for the claimed entries.
        • If you are using Valkey 7.0.0 or above, the response list will also include a list containing the message IDs that were in the Pending Entries List but no longer exist in the stream. These IDs are deleted from the Pending Entries List.
        See Also:
        valkey.io for details.
      • xinfoStreamFull

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> xinfoStreamFull​(@NonNull
                                                                                                                              @NonNull java.lang.String key)
        Description copied from interface: StreamBaseCommands
        Returns verbose information about the stream stored at key key.
        The output is limited by first 10 PEL entries.
        Specified by:
        xinfoStreamFull in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        Returns:
        A Map of detailed stream information for the given key. See the example for a sample response.
        See Also:
        valkey.io for details.
      • xinfoStreamFull

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> xinfoStreamFull​(@NonNull
                                                                                                                              @NonNull java.lang.String key,
                                                                                                                              int count)
        Description copied from interface: StreamBaseCommands
        Returns verbose information about the stream stored at key key.
        Specified by:
        xinfoStreamFull in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        count - The number of stream and PEL entries that are returned. Value of 0 means that all entries will be returned.
        Returns:
        A Map of detailed stream information for the given key.
        See Also:
        valkey.io for details.
      • xinfoStreamFull

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> xinfoStreamFull​(@NonNull
                                                                                                                         @NonNull GlideString key)
        Description copied from interface: StreamBaseCommands
        Returns verbose information about the stream stored at key key.
        The output is limited by first 10 PEL entries.
        Specified by:
        xinfoStreamFull in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        Returns:
        A Map of detailed stream information for the given key. See the example for a sample response.
        See Also:
        valkey.io for details.
      • xinfoStreamFull

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> xinfoStreamFull​(@NonNull
                                                                                                                         @NonNull GlideString key,
                                                                                                                         int count)
        Description copied from interface: StreamBaseCommands
        Returns verbose information about the stream stored at key key.
        Specified by:
        xinfoStreamFull in interface StreamBaseCommands
        Parameters:
        key - The key of the stream.
        count - The number of stream and PEL entries that are returned. Value of 0 means that all entries will be returned.
        Returns:
        A Map of detailed stream information for the given key.
        See Also:
        valkey.io for details.
      • pttl

        public java.util.concurrent.CompletableFuture<java.lang.Long> pttl​(@NonNull
                                                                           @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the remaining time to live of key that has a timeout, in milliseconds.
        Specified by:
        pttl in interface GenericBaseCommands
        Parameters:
        key - The key to return its timeout.
        Returns:
        TTL in milliseconds. -2 if key does not exist, -1 if key exists but has no associated expire.
        See Also:
        valkey.io for details.
      • pttl

        public java.util.concurrent.CompletableFuture<java.lang.Long> pttl​(@NonNull
                                                                           @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the remaining time to live of key that has a timeout, in milliseconds.
        Specified by:
        pttl in interface GenericBaseCommands
        Parameters:
        key - The key to return its timeout.
        Returns:
        TTL in milliseconds. -2 if key does not exist, -1 if key exists but has no associated expire.
        See Also:
        valkey.io for details.
      • persist

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> persist​(@NonNull
                                                                                 @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Removes the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).
        Specified by:
        persist in interface GenericBaseCommands
        Parameters:
        key - The key to remove the existing timeout on.
        Returns:
        false if key does not exist or does not have an associated timeout, true if the timeout has been removed.
        See Also:
        valkey.io for details.
      • persist

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> persist​(@NonNull
                                                                                 @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Removes the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).
        Specified by:
        persist in interface GenericBaseCommands
        Parameters:
        key - The key to remove the existing timeout on.
        Returns:
        false if key does not exist or does not have an associated timeout, true if the timeout has been removed.
        See Also:
        valkey.io for details.
      • type

        public java.util.concurrent.CompletableFuture<java.lang.String> type​(@NonNull
                                                                             @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Returns the string representation of the type of the value stored at key.
        Specified by:
        type in interface GenericBaseCommands
        Parameters:
        key - The key to check its data type.
        Returns:
        If the key exists, the type of the stored value is returned. Otherwise, a "none" string is returned.
        See Also:
        valkey.io for details.
      • type

        public java.util.concurrent.CompletableFuture<java.lang.String> type​(@NonNull
                                                                             @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Returns the string representation of the type of the value stored at key.
        Specified by:
        type in interface GenericBaseCommands
        Parameters:
        key - The key to check its data type.
        Returns:
        If the key exists, the type of the stored value is returned. Otherwise, a "none" string is returned.
        See Also:
        valkey.io for details.
      • linsert

        public java.util.concurrent.CompletableFuture<java.lang.Long> linsert​(@NonNull
                                                                              @NonNull java.lang.String key,
                                                                              @NonNull
                                                                              @NonNull LInsertOptions.InsertPosition position,
                                                                              @NonNull
                                                                              @NonNull java.lang.String pivot,
                                                                              @NonNull
                                                                              @NonNull java.lang.String element)
        Description copied from interface: ListBaseCommands
        Inserts element in the list at key either before or after the pivot.
        Specified by:
        linsert in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        position - The relative position to insert into - either LInsertOptions.InsertPosition.BEFORE or LInsertOptions.InsertPosition.AFTER the pivot.
        pivot - An element of the list.
        element - The new element to insert.
        Returns:
        The list length after a successful insert operation.
        If the key doesn't exist returns -1.
        If the pivot wasn't found, returns 0.
        See Also:
        valkey.io for details.
      • blpop

        public java.util.concurrent.CompletableFuture<java.lang.String[]> blpop​(@NonNull
                                                                                @NonNull java.lang.String[] keys,
                                                                                double timeout)
        Description copied from interface: ListBaseCommands
        Pops an element from the head of the first list that is non-empty, with the given keys being checked in the order that they are given.
        Blocks the connection when there are no elements to pop from any of the given lists.
        Specified by:
        blpop in interface ListBaseCommands
        Parameters:
        keys - The keys of the lists to pop from.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A two-element array containing the key from which the element was popped and the value of the popped element, formatted as [key, value]. If no element could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • blpop

        public java.util.concurrent.CompletableFuture<GlideString[]> blpop​(@NonNull
                                                                           @NonNull GlideString[] keys,
                                                                           double timeout)
        Description copied from interface: ListBaseCommands
        Pops an element from the head of the first list that is non-empty, with the given keys being checked in the order that they are given.
        Blocks the connection when there are no elements to pop from any of the given lists.
        Specified by:
        blpop in interface ListBaseCommands
        Parameters:
        keys - The keys of the lists to pop from.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A two-element array containing the key from which the element was popped and the value of the popped element, formatted as [key, value]. If no element could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • brpop

        public java.util.concurrent.CompletableFuture<java.lang.String[]> brpop​(@NonNull
                                                                                @NonNull java.lang.String[] keys,
                                                                                double timeout)
        Description copied from interface: ListBaseCommands
        Pops an element from the tail of the first list that is non-empty, with the given keys being checked in the order that they are given.
        Blocks the connection when there are no elements to pop from any of the given lists.
        Specified by:
        brpop in interface ListBaseCommands
        Parameters:
        keys - The keys of the lists to pop from.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A two-element array containing the key from which the element was popped and the value of the popped element, formatted as [key, value]. If no element could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • brpop

        public java.util.concurrent.CompletableFuture<GlideString[]> brpop​(@NonNull
                                                                           @NonNull GlideString[] keys,
                                                                           double timeout)
        Description copied from interface: ListBaseCommands
        Pops an element from the tail of the first list that is non-empty, with the given keys being checked in the order that they are given.
        Blocks the connection when there are no elements to pop from any of the given lists.
        Specified by:
        brpop in interface ListBaseCommands
        Parameters:
        keys - The keys of the lists to pop from.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A two-element array containing the key from which the element was popped and the value of the popped element, formatted as [key, value]. If no element could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • rpushx

        public java.util.concurrent.CompletableFuture<java.lang.Long> rpushx​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the tail of the list stored at key, only if key exists and holds a list. If key is not a list, this performs no operation.
        Specified by:
        rpushx in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the tail of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • rpushx

        public java.util.concurrent.CompletableFuture<java.lang.Long> rpushx​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull GlideString[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the tail of the list stored at key, only if key exists and holds a list. If key is not a list, this performs no operation.
        Specified by:
        rpushx in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the tail of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • lpushx

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpushx​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.lang.String[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the head of the list stored at key, only if key exists and holds a list. If key is not a list, this performs no operation.
        Specified by:
        lpushx in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the head of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • lpushx

        public java.util.concurrent.CompletableFuture<java.lang.Long> lpushx​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull GlideString[] elements)
        Description copied from interface: ListBaseCommands
        Inserts all the specified values at the head of the list stored at key, only if key exists and holds a list. If key is not a list, this performs no operation.
        Specified by:
        lpushx in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        elements - The elements to insert at the head of the list stored at key.
        Returns:
        The length of the list after the push operation.
        See Also:
        valkey.io for details.
      • zmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> zmpop​(@NonNull
                                                                                                                    @NonNull java.lang.String[] keys,
                                                                                                                    @NonNull
                                                                                                                    @NonNull ScoreFilter modifier)
        Description copied from interface: SortedSetBaseCommands
        Pops a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        Specified by:
        zmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop the member with the lowest/highest score accordingly.
        Returns:
        A map containing the key name of the set from which the element was popped, and a member-score Map of the popped element.
        If no member could be popped, returns null.
        See Also:
        valkey.io for more details.
      • zmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> zmpop​(@NonNull
                                                                                                               @NonNull GlideString[] keys,
                                                                                                               @NonNull
                                                                                                               @NonNull ScoreFilter modifier)
        Description copied from interface: SortedSetBaseCommands
        Pops a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        Specified by:
        zmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop the member with the lowest/highest score accordingly.
        Returns:
        A map containing the key name of the set from which the element was popped, and a member-score Map of the popped element.
        If no member could be popped, returns null.
        See Also:
        valkey.io for more details.
      • zmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> zmpop​(@NonNull
                                                                                                                    @NonNull java.lang.String[] keys,
                                                                                                                    @NonNull
                                                                                                                    @NonNull ScoreFilter modifier,
                                                                                                                    long count)
        Description copied from interface: SortedSetBaseCommands
        Pops multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        Specified by:
        zmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop members with the lowest/highest scores accordingly.
        count - The number of elements to pop.
        Returns:
        A map containing the key name of the set from which elements were popped, and a member-score Map of the popped elements.
        If no member could be popped, returns null.
        See Also:
        valkey.io for more details.
      • zmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> zmpop​(@NonNull
                                                                                                               @NonNull GlideString[] keys,
                                                                                                               @NonNull
                                                                                                               @NonNull ScoreFilter modifier,
                                                                                                               long count)
        Description copied from interface: SortedSetBaseCommands
        Pops multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        Specified by:
        zmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop members with the lowest/highest scores accordingly.
        count - The number of elements to pop.
        Returns:
        A map containing the key name of the set from which elements were popped, and a member-score Map of the popped elements.
        If no member could be popped, returns null.
        See Also:
        valkey.io for more details.
      • bzmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> bzmpop​(@NonNull
                                                                                                                     @NonNull java.lang.String[] keys,
                                                                                                                     @NonNull
                                                                                                                     @NonNull ScoreFilter modifier,
                                                                                                                     double timeout)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it pops and returns a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter).
        Specified by:
        bzmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop members with the lowest/highest scores accordingly.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A Map containing the key name of the set from which an element was popped, and a member-score Map of the popped elements.
        If no member could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for more details.
      • bzmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> bzmpop​(@NonNull
                                                                                                                @NonNull GlideString[] keys,
                                                                                                                @NonNull
                                                                                                                @NonNull ScoreFilter modifier,
                                                                                                                double timeout)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it pops and returns a member-score pair from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter).
        Specified by:
        bzmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop members with the lowest/highest scores accordingly.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A map containing the key name of the set from which an element was popped, and a member-score Map of the popped elements.
        If no member could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for more details.
      • bzmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> bzmpop​(@NonNull
                                                                                                                     @NonNull java.lang.String[] keys,
                                                                                                                     @NonNull
                                                                                                                     @NonNull ScoreFilter modifier,
                                                                                                                     double timeout,
                                                                                                                     long count)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it pops and returns multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter, long).
        Specified by:
        bzmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop members with the lowest/highest scores accordingly.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        count - The number of elements to pop.
        Returns:
        A map containing the key name of the set from which elements were popped, and a member-score Map of the popped elements.
        If no members could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for more details.
      • bzmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Object>> bzmpop​(@NonNull
                                                                                                                @NonNull GlideString[] keys,
                                                                                                                @NonNull
                                                                                                                @NonNull ScoreFilter modifier,
                                                                                                                double timeout,
                                                                                                                long count)
        Description copied from interface: SortedSetBaseCommands
        Blocks the connection until it pops and returns multiple member-score pairs from the first non-empty sorted set, with the given keys being checked in the order they are provided.
        BZMPOP is the blocking variant of SortedSetBaseCommands.zmpop(String[], ScoreFilter, long).
        Specified by:
        bzmpop in interface SortedSetBaseCommands
        Parameters:
        keys - The keys of the sorted sets.
        modifier - The element pop criteria - either ScoreFilter.MIN or ScoreFilter.MAX to pop members with the lowest/highest scores accordingly.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        count - The number of elements to pop.
        Returns:
        A map containing the key name of the set from which elements were popped, and a member-score Map of the popped elements.
        If no members could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for more details.
      • pfadd

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pfadd​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               @NonNull
                                                                               @NonNull java.lang.String[] elements)
        Description copied from interface: HyperLogLogBaseCommands
        Adds all elements to the HyperLogLog data structure stored at the specified key.
        Creates a new structure if the key does not exist.

        When no elements are provided, and key exists and is a HyperLogLog, then no operation is performed. If key does not exist, then the HyperLogLog structure is created.

        Specified by:
        pfadd in interface HyperLogLogBaseCommands
        Parameters:
        key - The key of the HyperLogLog data structure to add elements into.
        elements - An array of members to add to the HyperLogLog stored at key.
        Returns:
        If the HyperLogLog is newly created, or if the HyperLogLog approximated cardinality is altered, then returns 1. Otherwise, returns 0.
        See Also:
        valkey.io for details.
      • pfadd

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pfadd​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               @NonNull
                                                                               @NonNull GlideString[] elements)
        Description copied from interface: HyperLogLogBaseCommands
        Adds all elements to the HyperLogLog data structure stored at the specified key.
        Creates a new structure if the key does not exist.

        When no elements are provided, and key exists and is a HyperLogLog, then no operation is performed. If key does not exist, then the HyperLogLog structure is created.

        Specified by:
        pfadd in interface HyperLogLogBaseCommands
        Parameters:
        key - The key of the HyperLogLog data structure to add elements into.
        elements - An array of members to add to the HyperLogLog stored at key.
        Returns:
        If the HyperLogLog is newly created, or if the HyperLogLog approximated cardinality is altered, then returns true. Otherwise, returns false.
        See Also:
        valkey.io for details.
      • pfcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> pfcount​(@NonNull
                                                                              @NonNull java.lang.String[] keys)
        Description copied from interface: HyperLogLogBaseCommands
        Estimates the cardinality of the data stored in a HyperLogLog structure for a single key or calculates the combined cardinality of multiple keys by merging their HyperLogLogs temporarily.
        Specified by:
        pfcount in interface HyperLogLogBaseCommands
        Parameters:
        keys - The keys of the HyperLogLog data structures to be analyzed.
        Returns:
        The approximated cardinality of given HyperLogLog data structures.
        The cardinality of a key that does not exist is 0.
        See Also:
        valkey.io for details.
      • pfcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> pfcount​(@NonNull
                                                                              @NonNull GlideString[] keys)
        Description copied from interface: HyperLogLogBaseCommands
        Estimates the cardinality of the data stored in a HyperLogLog structure for a single key or calculates the combined cardinality of multiple keys by merging their HyperLogLogs temporarily.
        Specified by:
        pfcount in interface HyperLogLogBaseCommands
        Parameters:
        keys - The keys of the HyperLogLog data structures to be analyzed.
        Returns:
        The approximated cardinality of given HyperLogLog data structures.
        The cardinality of a key that does not exist is 0.
        See Also:
        valkey.io for details.
      • pfmerge

        public java.util.concurrent.CompletableFuture<java.lang.String> pfmerge​(@NonNull
                                                                                @NonNull java.lang.String destination,
                                                                                @NonNull
                                                                                @NonNull java.lang.String[] sourceKeys)
        Description copied from interface: HyperLogLogBaseCommands
        Merges multiple HyperLogLog values into a unique value.
        If the destination variable exists, it is treated as one of the source HyperLogLog data sets, otherwise a new HyperLogLog is created.
        Specified by:
        pfmerge in interface HyperLogLogBaseCommands
        Parameters:
        destination - The key of the destination HyperLogLog where the merged data sets will be stored.
        sourceKeys - The keys of the HyperLogLog structures to be merged.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • pfmerge

        public java.util.concurrent.CompletableFuture<java.lang.String> pfmerge​(@NonNull
                                                                                @NonNull GlideString destination,
                                                                                @NonNull
                                                                                @NonNull GlideString[] sourceKeys)
        Description copied from interface: HyperLogLogBaseCommands
        Merges multiple HyperLogLog values into a unique value.
        If the destination variable exists, it is treated as one of the source HyperLogLog data sets, otherwise a new HyperLogLog is created.
        Specified by:
        pfmerge in interface HyperLogLogBaseCommands
        Parameters:
        destination - The key of the destination HyperLogLog where the merged data sets will be stored.
        sourceKeys - The keys of the HyperLogLog structures to be merged.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • touch

        public java.util.concurrent.CompletableFuture<java.lang.Long> touch​(@NonNull
                                                                            @NonNull java.lang.String[] keys)
        Description copied from interface: GenericBaseCommands
        Updates the last access time of specified keys.
        Specified by:
        touch in interface GenericBaseCommands
        Parameters:
        keys - The keys to update last access time.
        Returns:
        The number of keys that were updated.
        See Also:
        valkey.io for details.
      • touch

        public java.util.concurrent.CompletableFuture<java.lang.Long> touch​(@NonNull
                                                                            @NonNull GlideString[] keys)
        Description copied from interface: GenericBaseCommands
        Updates the last access time of specified keys.
        Specified by:
        touch in interface GenericBaseCommands
        Parameters:
        keys - The keys to update last access time.
        Returns:
        The number of keys that were updated.
        See Also:
        valkey.io for details.
      • geoadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<java.lang.String,​GeospatialData> membersToGeospatialData,
                                                                             @NonNull
                                                                             @NonNull GeoAddOptions options)
        Description copied from interface: GeospatialIndicesBaseCommands
        Adds geospatial members with their positions to the specified sorted set stored at key .
        If a member is already a part of the sorted set, its position is updated.
        Specified by:
        geoadd in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersToGeospatialData - A mapping of member names to their corresponding positions - see GeospatialData. The command will report an error when the user attempts to index coordinates outside the specified ranges.
        options - The GeoAdd options - see GeoAddOptions
        Returns:
        The number of elements added to the sorted set. If changed is set to true in the options, returns the number of elements updated in the sorted set.
        See Also:
        valkey.io for more details.
      • geoadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<GlideString,​GeospatialData> membersToGeospatialData,
                                                                             @NonNull
                                                                             @NonNull GeoAddOptions options)
        Description copied from interface: GeospatialIndicesBaseCommands
        Adds geospatial members with their positions to the specified sorted set stored at key .
        If a member is already a part of the sorted set, its position is updated.
        Specified by:
        geoadd in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersToGeospatialData - A mapping of member names to their corresponding positions - see GeospatialData. The command will report an error when the user attempts to index coordinates outside the specified ranges.
        options - The GeoAdd options - see GeoAddOptions
        Returns:
        The number of elements added to the sorted set. If changed is set to true in the options, returns the number of elements updated in the sorted set.
        See Also:
        valkey.io for more details.
      • geoadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<java.lang.String,​GeospatialData> membersToGeospatialData)
        Description copied from interface: GeospatialIndicesBaseCommands
        Adds geospatial members with their positions to the specified sorted set stored at key .
        If a member is already a part of the sorted set, its position is updated.
        To perform a geoadd operation while specifying optional parameters, use GeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions).
        Specified by:
        geoadd in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersToGeospatialData - A mapping of member names to their corresponding positions - see GeospatialData. The command will report an error when the user attempts to index coordinates outside the specified ranges.
        Returns:
        The number of elements added to the sorted set.
        See Also:
        valkey.io for more details.
      • geoadd

        public java.util.concurrent.CompletableFuture<java.lang.Long> geoadd​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull java.util.Map<GlideString,​GeospatialData> membersToGeospatialData)
        Description copied from interface: GeospatialIndicesBaseCommands
        Adds geospatial members with their positions to the specified sorted set stored at key .
        If a member is already a part of the sorted set, its position is updated.
        To perform a geoadd operation while specifying optional parameters, use GeospatialIndicesBaseCommands.geoadd(String, Map, GeoAddOptions).
        Specified by:
        geoadd in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        membersToGeospatialData - A mapping of member names to their corresponding positions - see GeospatialData. The command will report an error when the user attempts to index coordinates outside the specified ranges.
        Returns:
        The number of elements added to the sorted set.
        See Also:
        valkey.io for more details.
      • geopos

        public java.util.concurrent.CompletableFuture<java.lang.Double[][]> geopos​(@NonNull
                                                                                   @NonNull java.lang.String key,
                                                                                   @NonNull
                                                                                   @NonNull java.lang.String[] members)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
        Specified by:
        geopos in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - The members for which to get the positions.
        Returns:
        A 2D array which represent positions (longitude and latitude) corresponding to the given members. If a member does not exist, its position will be null.
        See Also:
        valkey.io for more details.
      • geopos

        public java.util.concurrent.CompletableFuture<java.lang.Double[][]> geopos​(@NonNull
                                                                                   @NonNull GlideString key,
                                                                                   @NonNull
                                                                                   @NonNull GlideString[] members)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
        Specified by:
        geopos in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - The members for which to get the positions.
        Returns:
        A 2D array which represent positions (longitude and latitude) corresponding to the given members. If a member does not exist, its position will be null.
        See Also:
        valkey.io for more details.
      • geodist

        public java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String member1,
                                                                                @NonNull
                                                                                @NonNull java.lang.String member2,
                                                                                @NonNull
                                                                                @NonNull GeoUnit geoUnit)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the distance between member1 and member2 saved in the geospatial index stored at key.
        Specified by:
        geodist in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        member1 - The name of the first member.
        member2 - The name of the second member.
        geoUnit - The unit of distance measurement - see GeoUnit.
        Returns:
        The distance between member1 and member2. If one or both members do not exist, or if the key does not exist, returns null.
        See Also:
        valkey.io for more details.
      • geodist

        public java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString member1,
                                                                                @NonNull
                                                                                @NonNull GlideString member2,
                                                                                @NonNull
                                                                                @NonNull GeoUnit geoUnit)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the distance between member1 and member2 saved in the geospatial index stored at key.
        Specified by:
        geodist in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        member1 - The name of the first member.
        member2 - The name of the second member.
        geoUnit - The unit of distance measurement - see GeoUnit.
        Returns:
        The distance between member1 and member2. If one or both members do not exist, or if the key does not exist, returns null.
        See Also:
        valkey.io for more details.
      • geodist

        public java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String member1,
                                                                                @NonNull
                                                                                @NonNull java.lang.String member2)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the distance between member1 and member2 saved in the geospatial index stored at key.
        Specified by:
        geodist in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        member1 - The name of the first member.
        member2 - The name of the second member.
        Returns:
        The distance between member1 and member2. If one or both members do not exist, or if the key does not exist, returns null. The default unit is {@see GeoUnit#METERS}.
        See Also:
        valkey.io for more details.
      • geodist

        public java.util.concurrent.CompletableFuture<java.lang.Double> geodist​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString member1,
                                                                                @NonNull
                                                                                @NonNull GlideString member2)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the distance between member1 and member2 saved in the geospatial index stored at key.
        Specified by:
        geodist in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        member1 - The name of the first member.
        member2 - The name of the second member.
        Returns:
        The distance between member1 and member2. If one or both members do not exist, or if the key does not exist, returns null. The default unit is {@see GeoUnit#METERS}.
        See Also:
        valkey.io for more details.
      • geohash

        public java.util.concurrent.CompletableFuture<java.lang.String[]> geohash​(@NonNull
                                                                                  @NonNull java.lang.String key,
                                                                                  @NonNull
                                                                                  @NonNull java.lang.String[] members)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the GeoHash strings representing the positions of all the specified members in the sorted set stored at key.
        Specified by:
        geohash in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - The array of members whose GeoHash strings are to be retrieved.
        Returns:
        An array of GeoHash strings representing the positions of the specified members stored at key. If a member does not exist in the sorted set, a null value is returned for that member.
        See Also:
        valkey.io for more details.
      • geohash

        public java.util.concurrent.CompletableFuture<GlideString[]> geohash​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             @NonNull
                                                                             @NonNull GlideString[] members)
        Description copied from interface: GeospatialIndicesBaseCommands
        Returns the GeoHash strings representing the positions of all the specified members in the sorted set stored at key.
        Specified by:
        geohash in interface GeospatialIndicesBaseCommands
        Parameters:
        key - The key of the sorted set.
        members - The array of members whose GeoHash strings are to be retrieved.
        Returns:
        An array of GeoHash strings representing the positions of the specified members stored at key. If a member does not exist in the sorted set, a null value is returned for that member.
        See Also:
        valkey.io for more details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull java.lang.String key)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        Returns:
        The number of set bits in the string. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull GlideString key)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        Returns:
        The number of set bits in the string. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               long start)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key. The offset start is a zero-based index, with 0 being the first byte of the list, 1 being the next byte and so on. This offset can also be a negative number indicating offsets starting at the end of the list, with -1 being the last byte of the list, -2 being the penultimate, and so on.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        start - The starting offset byte index.
        Returns:
        The number of set bits in the string byte interval specified by start to the last byte. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               long start)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key. The offset start is a zero-based index, with 0 being the first byte of the list, 1 being the next byte and so on. This offset can also be a negative number indicating offsets starting at the end of the list, with -1 being the last byte of the list, -2 being the penultimate, and so on.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        start - The starting offset byte index.
        Returns:
        The number of set bits in the string byte interval specified by start to the last byte. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               long start,
                                                                               long end)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key. The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        start - The starting offset byte index.
        end - The ending offset byte index.
        Returns:
        The number of set bits in the string byte interval specified by start and end. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               long start,
                                                                               long end)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key. The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        start - The starting offset byte index.
        end - The ending offset byte index.
        Returns:
        The number of set bits in the string byte interval specified by start and end. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               long start,
                                                                               long end,
                                                                               @NonNull
                                                                               @NonNull BitmapIndexType options)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key. The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        start - The starting offset.
        end - The ending offset.
        options - The index offset type. Could be either BitmapIndexType.BIT or BitmapIndexType.BYTE.
        Returns:
        The number of set bits in the string interval specified by start, end, and options. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • bitcount

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitcount​(@NonNull
                                                                               @NonNull GlideString key,
                                                                               long start,
                                                                               long end,
                                                                               @NonNull
                                                                               @NonNull BitmapIndexType options)
        Description copied from interface: BitmapBaseCommands
        Counts the number of set bits (population counting) in a string stored at key. The offsets start and end are zero-based indexes, with 0 being the first element of the list, 1 being the next element and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        bitcount in interface BitmapBaseCommands
        Parameters:
        key - The key for the string to count the set bits of.
        start - The starting offset.
        end - The ending offset.
        options - The index offset type. Could be either BitmapIndexType.BIT or BitmapIndexType.BYTE.
        Returns:
        The number of set bits in the string interval specified by start, end, and options. Returns zero if the key is missing as it is treated as an empty string.
        See Also:
        valkey.io for details.
      • setbit

        public java.util.concurrent.CompletableFuture<java.lang.Long> setbit​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long offset,
                                                                             long value)
        Description copied from interface: BitmapBaseCommands
        Sets or clears the bit at offset in the string value stored at key. The offset is a zero-based index, with 0 being the first element of the list, 1 being the next element, and so on. The offset must be less than 2^32 and greater than or equal to 0. If a key is non-existent then the bit at offset is set to value and the preceding bits are set to 0.
        Specified by:
        setbit in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        offset - The index of the bit to be set.
        value - The bit value to set at offset. The value must be 0 or 1.
        Returns:
        The bit value that was previously stored at offset.
        See Also:
        valkey.io for details.
      • setbit

        public java.util.concurrent.CompletableFuture<java.lang.Long> setbit​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long offset,
                                                                             long value)
        Description copied from interface: BitmapBaseCommands
        Sets or clears the bit at offset in the string value stored at key. The offset is a zero-based index, with 0 being the first element of the list, 1 being the next element, and so on. The offset must be less than 2^32 and greater than or equal to 0. If a key is non-existent then the bit at offset is set to value and the preceding bits are set to 0.
        Specified by:
        setbit in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        offset - The index of the bit to be set.
        value - The bit value to set at offset. The value must be 0 or 1.
        Returns:
        The bit value that was previously stored at offset.
        See Also:
        valkey.io for details.
      • getbit

        public java.util.concurrent.CompletableFuture<java.lang.Long> getbit​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long offset)
        Description copied from interface: BitmapBaseCommands
        Returns the bit value at offset in the string value stored at key. offset should be greater than or equal to zero.
        Specified by:
        getbit in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        offset - The index of the bit to return.
        Returns:
        The bit at offset of the string. Returns zero if the key is empty or if the positive offset exceeds the length of the string.
        See Also:
        valkey.io for details.
      • getbit

        public java.util.concurrent.CompletableFuture<java.lang.Long> getbit​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long offset)
        Description copied from interface: BitmapBaseCommands
        Returns the bit value at offset in the string value stored at key. offset should be greater than or equal to zero.
        Specified by:
        getbit in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        offset - The index of the bit to return.
        Returns:
        The bit at offset of the string. Returns zero if the key is empty or if the positive offset exceeds the length of the string.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long bit)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        Returns:
        The position of the first occurrence matching bit in the binary value of the string held at key. If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long bit)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        Returns:
        The position of the first occurrence matching bit in the binary value of the string held at key. If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long bit,
                                                                             long start)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value. The offset start is a zero-based index, with 0 being the first byte of the list, 1 being the next byte and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last byte of the list, -2 being the penultimate, and so on.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        start - The starting offset.
        Returns:
        The position of the first occurrence beginning at the start offset of the bit in the binary value of the string held at key. If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long bit,
                                                                             long start)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value. The offset start is a zero-based index, with 0 being the first byte of the list, 1 being the next byte and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last byte of the list, -2 being the penultimate, and so on.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        start - The starting offset.
        Returns:
        The position of the first occurrence beginning at the start offset of the bit in the binary value of the string held at key. If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long bit,
                                                                             long start,
                                                                             long end)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value. The offsets start and end are zero-based indexes, with 0 being the first byte of the list, 1 being the next byte and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last byte of the list, -2 being the penultimate, and so on.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        start - The starting offset.
        end - The ending offset.
        Returns:
        The position of the first occurrence from the start to the end offsets of the bit in the binary value of the string held at key . If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long bit,
                                                                             long start,
                                                                             long end)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value. The offsets start and end are zero-based indexes, with 0 being the first byte of the list, 1 being the next byte and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last byte of the list, -2 being the penultimate, and so on.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        start - The starting offset.
        end - The ending offset.
        Returns:
        The position of the first occurrence from the start to the end offsets of the bit in the binary value of the string held at key . If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long bit,
                                                                             long start,
                                                                             long end,
                                                                             @NonNull
                                                                             @NonNull BitmapIndexType options)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value. The offset offsetType specifies whether the offset is a BIT or BYTE. If BIT is specified, start==0 and end==2 means to look at the first three bits. If BYTE is specified, start==0 and end==2 means to look at the first three bytes The offsets are zero-based indexes, with 0 being the first element of the list, 1 being the next, and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        start - The starting offset.
        end - The ending offset.
        options - The index offset type. Could be either BitmapIndexType.BIT or BitmapIndexType.BYTE.
        Returns:
        The position of the first occurrence from the start to the end offsets of the bit in the binary value of the string held at key . If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitpos

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitpos​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long bit,
                                                                             long start,
                                                                             long end,
                                                                             @NonNull
                                                                             @NonNull BitmapIndexType options)
        Description copied from interface: BitmapBaseCommands
        Returns the position of the first bit matching the given bit value. The offset offsetType specifies whether the offset is a BIT or BYTE. If BIT is specified, start==0 and end==2 means to look at the first three bits. If BYTE is specified, start==0 and end==2 means to look at the first three bytes The offsets are zero-based indexes, with 0 being the first element of the list, 1 being the next, and so on. These offsets can also be negative numbers indicating offsets starting at the end of the list, with -1 being the last element of the list, -2 being the penultimate, and so on.
        Specified by:
        bitpos in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        bit - The bit value to match. The value must be 0 or 1.
        start - The starting offset.
        end - The ending offset.
        options - The index offset type. Could be either BitmapIndexType.BIT or BitmapIndexType.BYTE.
        Returns:
        The position of the first occurrence from the start to the end offsets of the bit in the binary value of the string held at key . If bit is not found, a -1 is returned.
        See Also:
        valkey.io for details.
      • bitop

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitop​(@NonNull
                                                                            @NonNull BitwiseOperation bitwiseOperation,
                                                                            @NonNull
                                                                            @NonNull java.lang.String destination,
                                                                            @NonNull
                                                                            @NonNull java.lang.String[] keys)
        Description copied from interface: BitmapBaseCommands
        Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination.
        Specified by:
        bitop in interface BitmapBaseCommands
        Parameters:
        bitwiseOperation - The bitwise operation to perform.
        destination - The key that will store the resulting string.
        keys - The list of keys to perform the bitwise operation on.
        Returns:
        The size of the string stored in destination.
        See Also:
        valkey.io for details.
      • bitop

        public java.util.concurrent.CompletableFuture<java.lang.Long> bitop​(@NonNull
                                                                            @NonNull BitwiseOperation bitwiseOperation,
                                                                            @NonNull
                                                                            @NonNull GlideString destination,
                                                                            @NonNull
                                                                            @NonNull GlideString[] keys)
        Description copied from interface: BitmapBaseCommands
        Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination.
        Specified by:
        bitop in interface BitmapBaseCommands
        Parameters:
        bitwiseOperation - The bitwise operation to perform.
        destination - The key that will store the resulting string.
        keys - The list of keys to perform the bitwise operation on.
        Returns:
        The size of the string stored in destination.
        See Also:
        valkey.io for details.
      • lmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> lmpop​(@NonNull
                                                                                                                      @NonNull java.lang.String[] keys,
                                                                                                                      @NonNull
                                                                                                                      @NonNull ListDirection direction,
                                                                                                                      long count)
        Description copied from interface: ListBaseCommands
        Pops one or more elements from the first non-empty list from the provided keys .
        Specified by:
        lmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        count - The maximum number of popped elements.
        Returns:
        A Map of key name mapped array of popped elements. If no member could be popped, returns null.
        See Also:
        valkey.io for details.
      • lmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> lmpop​(@NonNull
                                                                                                            @NonNull GlideString[] keys,
                                                                                                            @NonNull
                                                                                                            @NonNull ListDirection direction,
                                                                                                            long count)
        Description copied from interface: ListBaseCommands
        Pops one or more elements from the first non-empty list from the provided keys .
        Specified by:
        lmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        count - The maximum number of popped elements.
        Returns:
        A Map of key name mapped array of popped elements. If no member could be popped, returns null.
        See Also:
        valkey.io for details.
      • lmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> lmpop​(@NonNull
                                                                                                                      @NonNull java.lang.String[] keys,
                                                                                                                      @NonNull
                                                                                                                      @NonNull ListDirection direction)
        Description copied from interface: ListBaseCommands
        Pops one element from the first non-empty list from the provided keys.
        Specified by:
        lmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        Returns:
        A Map of key name mapped array of the popped element. If no member could be popped, returns null.
        See Also:
        valkey.io for details.
      • lmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> lmpop​(@NonNull
                                                                                                            @NonNull GlideString[] keys,
                                                                                                            @NonNull
                                                                                                            @NonNull ListDirection direction)
        Description copied from interface: ListBaseCommands
        Pops one element from the first non-empty list from the provided keys.
        Specified by:
        lmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        Returns:
        A Map of key name mapped array of the popped element. If no member could be popped, returns null.
        See Also:
        valkey.io for details.
      • blmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> blmpop​(@NonNull
                                                                                                                       @NonNull java.lang.String[] keys,
                                                                                                                       @NonNull
                                                                                                                       @NonNull ListDirection direction,
                                                                                                                       long count,
                                                                                                                       double timeout)
        Description copied from interface: ListBaseCommands
        Blocks the connection until it pops one or more elements from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection, long).
        Specified by:
        blmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        count - The maximum number of popped elements.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A Map of key name mapped array of popped elements.
        If no member could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • blmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> blmpop​(@NonNull
                                                                                                             @NonNull GlideString[] keys,
                                                                                                             @NonNull
                                                                                                             @NonNull ListDirection direction,
                                                                                                             long count,
                                                                                                             double timeout)
        Description copied from interface: ListBaseCommands
        Blocks the connection until it pops one or more elements from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection, long).
        Specified by:
        blmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        count - The maximum number of popped elements.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A Map of key name mapped array of popped elements.
        If no member could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • blmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.String[]>> blmpop​(@NonNull
                                                                                                                       @NonNull java.lang.String[] keys,
                                                                                                                       @NonNull
                                                                                                                       @NonNull ListDirection direction,
                                                                                                                       double timeout)
        Description copied from interface: ListBaseCommands
        Blocks the connection until it pops one element from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection).
        Specified by:
        blmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A Map of key name mapped array of the popped element.
        If no member could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • blmpop

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​GlideString[]>> blmpop​(@NonNull
                                                                                                             @NonNull GlideString[] keys,
                                                                                                             @NonNull
                                                                                                             @NonNull ListDirection direction,
                                                                                                             double timeout)
        Description copied from interface: ListBaseCommands
        Blocks the connection until it pops one element from the first non-empty list from the provided keys BLMPOP is the blocking variant of ListBaseCommands.lmpop(String[], ListDirection).
        Specified by:
        blmpop in interface ListBaseCommands
        Parameters:
        keys - An array of keys to lists.
        direction - The direction based on which elements are popped from - see ListDirection.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        A Map of key name mapped array of the popped element.
        If no member could be popped and the timeout expired, returns null.
        See Also:
        valkey.io for details.
      • lset

        public java.util.concurrent.CompletableFuture<java.lang.String> lset​(@NonNull
                                                                             @NonNull java.lang.String key,
                                                                             long index,
                                                                             @NonNull
                                                                             @NonNull java.lang.String element)
        Description copied from interface: ListBaseCommands
        Sets the list element at index to element.
        The index is zero-based, so 0 means the first element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth.
        Specified by:
        lset in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        index - The index of the element in the list to be set.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • lset

        public java.util.concurrent.CompletableFuture<java.lang.String> lset​(@NonNull
                                                                             @NonNull GlideString key,
                                                                             long index,
                                                                             @NonNull
                                                                             @NonNull GlideString element)
        Description copied from interface: ListBaseCommands
        Sets the list element at index to element.
        The index is zero-based, so 0 means the first element, 1 the second element and so on. Negative indices can be used to designate elements starting at the tail of the list. Here, -1 means the last element, -2 means the penultimate and so forth.
        Specified by:
        lset in interface ListBaseCommands
        Parameters:
        key - The key of the list.
        index - The index of the element in the list to be set.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • lmove

        public java.util.concurrent.CompletableFuture<java.lang.String> lmove​(@NonNull
                                                                              @NonNull java.lang.String source,
                                                                              @NonNull
                                                                              @NonNull java.lang.String destination,
                                                                              @NonNull
                                                                              @NonNull ListDirection wherefrom,
                                                                              @NonNull
                                                                              @NonNull ListDirection whereto)
        Description copied from interface: ListBaseCommands
        Atomically pops and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
        Specified by:
        lmove in interface ListBaseCommands
        Parameters:
        source - The key to the source list.
        destination - The key to the destination list.
        wherefrom - The ListDirection the element should be removed from.
        whereto - The ListDirection the element should be added to.
        Returns:
        The popped element or null if source does not exist.
        See Also:
        valkey.io for details.
      • lmove

        public java.util.concurrent.CompletableFuture<GlideString> lmove​(@NonNull
                                                                         @NonNull GlideString source,
                                                                         @NonNull
                                                                         @NonNull GlideString destination,
                                                                         @NonNull
                                                                         @NonNull ListDirection wherefrom,
                                                                         @NonNull
                                                                         @NonNull ListDirection whereto)
        Description copied from interface: ListBaseCommands
        Atomically pops and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
        Specified by:
        lmove in interface ListBaseCommands
        Parameters:
        source - The key to the source list.
        destination - The key to the destination list.
        wherefrom - The ListDirection the element should be removed from.
        whereto - The ListDirection the element should be added to.
        Returns:
        The popped element or null if source does not exist.
        See Also:
        valkey.io for details.
      • blmove

        public java.util.concurrent.CompletableFuture<java.lang.String> blmove​(@NonNull
                                                                               @NonNull java.lang.String source,
                                                                               @NonNull
                                                                               @NonNull java.lang.String destination,
                                                                               @NonNull
                                                                               @NonNull ListDirection wherefrom,
                                                                               @NonNull
                                                                               @NonNull ListDirection whereto,
                                                                               double timeout)
        Description copied from interface: ListBaseCommands
        Blocks the connection until it pops atomically and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
        BLMove is the blocking variant of ListBaseCommands.lmove(String, String, ListDirection, ListDirection).
        Specified by:
        blmove in interface ListBaseCommands
        Parameters:
        source - The key to the source list.
        destination - The key to the destination list.
        wherefrom - The ListDirection the element should be removed from.
        whereto - The ListDirection the element should be added to.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        The popped element or null if source does not exist or if the operation timed-out.
        See Also:
        valkey.io for details.
      • blmove

        public java.util.concurrent.CompletableFuture<GlideString> blmove​(@NonNull
                                                                          @NonNull GlideString source,
                                                                          @NonNull
                                                                          @NonNull GlideString destination,
                                                                          @NonNull
                                                                          @NonNull ListDirection wherefrom,
                                                                          @NonNull
                                                                          @NonNull ListDirection whereto,
                                                                          double timeout)
        Description copied from interface: ListBaseCommands
        Blocks the connection until it pops atomically and removes the left/right-most element to the list stored at source depending on wherefrom, and pushes the element at the first/last element of the list stored at destination depending on wherefrom.
        BLMove is the blocking variant of ListBaseCommands.lmove(String, String, ListDirection, ListDirection).
        Specified by:
        blmove in interface ListBaseCommands
        Parameters:
        source - The key to the source list.
        destination - The key to the destination list.
        wherefrom - The ListDirection the element should be removed from.
        whereto - The ListDirection the element should be added to.
        timeout - The number of seconds to wait for a blocking operation to complete. A value of 0 will block indefinitely.
        Returns:
        The popped element or null if source does not exist or if the operation timed-out.
        See Also:
        valkey.io for details.
      • srandmember

        public java.util.concurrent.CompletableFuture<java.lang.String> srandmember​(@NonNull
                                                                                    @NonNull java.lang.String key)
        Description copied from interface: SetBaseCommands
        Returns a random element from the set value stored at key.
        Specified by:
        srandmember in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the set member.
        Returns:
        A random element from the set, or null if key does not exist.
        See Also:
        valkey.io for details.
      • srandmember

        public java.util.concurrent.CompletableFuture<GlideString> srandmember​(@NonNull
                                                                               @NonNull GlideString key)
        Description copied from interface: SetBaseCommands
        Returns a random element from the set value stored at key.
        Specified by:
        srandmember in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the set member.
        Returns:
        A random element from the set, or null if key does not exist.
        See Also:
        valkey.io for details.
      • srandmember

        public java.util.concurrent.CompletableFuture<java.lang.String[]> srandmember​(@NonNull
                                                                                      @NonNull java.lang.String key,
                                                                                      long count)
        Description copied from interface: SetBaseCommands
        Returns one or more random elements from the set value stored at key.
        Specified by:
        srandmember in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the set members.
        count - The number of elements to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        An array of elements from the set, or an empty array if key does not exist.
        See Also:
        valkey.io for details.
      • srandmember

        public java.util.concurrent.CompletableFuture<GlideString[]> srandmember​(@NonNull
                                                                                 @NonNull GlideString key,
                                                                                 long count)
        Description copied from interface: SetBaseCommands
        Returns one or more random elements from the set value stored at key.
        Specified by:
        srandmember in interface SetBaseCommands
        Parameters:
        key - The key from which to retrieve the set members.
        count - The number of elements to return.
        If count is positive, returns unique elements.
        If negative, allows for duplicates.
        Returns:
        An array of elements from the set, or an empty array if key does not exist.
        See Also:
        valkey.io for details.
      • spop

        public java.util.concurrent.CompletableFuture<java.lang.String> spop​(@NonNull
                                                                             @NonNull java.lang.String key)
        Description copied from interface: SetBaseCommands
        Removes and returns one random member from the set stored at key.
        Specified by:
        spop in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        Returns:
        The value of the popped member.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • spop

        public java.util.concurrent.CompletableFuture<GlideString> spop​(@NonNull
                                                                        @NonNull GlideString key)
        Description copied from interface: SetBaseCommands
        Removes and returns one random member from the set stored at key.
        Specified by:
        spop in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        Returns:
        The value of the popped member.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • spopCount

        public java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> spopCount​(@NonNull
                                                                                                 @NonNull java.lang.String key,
                                                                                                 long count)
        Description copied from interface: SetBaseCommands
        Removes and returns up to count random members from the set stored at key , depending on the set's length.
        Specified by:
        spopCount in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        count - The count of the elements to pop from the set.
        Returns:
        A set of popped elements will be returned depending on the set's length.
        If key does not exist, an empty Set will be returned.
        See Also:
        valkey.io for details.
      • spopCount

        public java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> spopCount​(@NonNull
                                                                                            @NonNull GlideString key,
                                                                                            long count)
        Description copied from interface: SetBaseCommands
        Removes and returns up to count random members from the set stored at key , depending on the set's length.
        Specified by:
        spopCount in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        count - The count of the elements to pop from the set.
        Returns:
        A set of popped elements will be returned depending on the set's length.
        If key does not exist, an empty Set will be returned.
        See Also:
        valkey.io for details.
      • bitfieldReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> bitfieldReadOnly​(@NonNull
                                                                                         @NonNull java.lang.String key,
                                                                                         @NonNull
                                                                                         @NonNull BitFieldOptions.BitFieldReadOnlySubCommands[] subCommands)
        Description copied from interface: BitmapBaseCommands
        Reads the array of bits representing the string that is held at key based on the specified subCommands.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        bitfieldReadOnly in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        subCommands - The GET subCommands to be performed.
        Returns:
        An array of results from the GET subcommands.
        See Also:
        valkey.io for details.
      • bitfieldReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> bitfieldReadOnly​(@NonNull
                                                                                         @NonNull GlideString key,
                                                                                         @NonNull
                                                                                         @NonNull BitFieldOptions.BitFieldReadOnlySubCommands[] subCommands)
        Description copied from interface: BitmapBaseCommands
        Reads the array of bits representing the string that is held at key based on the specified subCommands.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        bitfieldReadOnly in interface BitmapBaseCommands
        Parameters:
        key - The key of the string.
        subCommands - The GET subCommands to be performed.
        Returns:
        An array of results from the GET subcommands.
        See Also:
        valkey.io for details.
      • sintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull
                                                                                 @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Gets the cardinality of the intersection of all the given sets.
        Specified by:
        sintercard in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        Returns:
        The cardinality of the intersection result. If one or more sets do not exist, 0 is returned.
        See Also:
        valkey.io for details.
      • sintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull
                                                                                 @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Gets the cardinality of the intersection of all the given sets.
        Specified by:
        sintercard in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        Returns:
        The cardinality of the intersection result. If one or more sets do not exist, 0 is returned.
        See Also:
        valkey.io for details.
      • sintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull
                                                                                 @NonNull java.lang.String[] keys,
                                                                                 long limit)
        Description copied from interface: SetBaseCommands
        Gets the cardinality of the intersection of all the given sets.
        Specified by:
        sintercard in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        limit - The limit for the intersection cardinality value.
        Returns:
        The cardinality of the intersection result. If one or more sets do not exist, 0 is returned. If the intersection cardinality reaches limit partway through the computation, returns limit as the cardinality.
        See Also:
        valkey.io for details.
      • sintercard

        public java.util.concurrent.CompletableFuture<java.lang.Long> sintercard​(@NonNull
                                                                                 @NonNull GlideString[] keys,
                                                                                 long limit)
        Description copied from interface: SetBaseCommands
        Gets the cardinality of the intersection of all the given sets.
        Specified by:
        sintercard in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        limit - The limit for the intersection cardinality value.
        Returns:
        The cardinality of the intersection result. If one or more sets do not exist, 0 is returned. If the intersection cardinality reaches limit partway through the computation, returns limit as the cardinality.
        See Also:
        valkey.io for details.
      • fcall

        public java.util.concurrent.CompletableFuture<java.lang.Object> fcall​(@NonNull
                                                                              @NonNull java.lang.String function,
                                                                              @NonNull
                                                                              @NonNull java.lang.String[] keys,
                                                                              @NonNull
                                                                              @NonNull java.lang.String[] arguments)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Invokes a previously loaded function.
        This command is routed to primary nodes only.
        To route to a replica please refer to ScriptingAndFunctionsBaseCommands.fcallReadOnly(java.lang.String, java.lang.String[], java.lang.String[]).
        Specified by:
        fcall in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        function - The function name.
        keys - An array of keys accessed by the function. To ensure the correct execution of functions, both in standalone and clustered deployments, all names of keys that a function accesses must be explicitly provided as keys.
        arguments - An array of function arguments. arguments should not represent names of keys.
        Returns:
        The invoked function's return value.
        See Also:
        valkey.io for details.
      • fcallReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> fcallReadOnly​(@NonNull
                                                                                      @NonNull java.lang.String function,
                                                                                      @NonNull
                                                                                      @NonNull java.lang.String[] keys,
                                                                                      @NonNull
                                                                                      @NonNull java.lang.String[] arguments)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Invokes a previously loaded read-only function.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        fcallReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        function - The function name.
        keys - An array of keys accessed by the function. To ensure the correct execution of functions, both in standalone and clustered deployments, all names of keys that a function accesses must be explicitly provided as keys.
        arguments - An array of function arguments. arguments should not represent names of keys.
        Returns:
        The invoked function's return value.
        See Also:
        valkey.io for details.
      • fcallReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> fcallReadOnly​(@NonNull
                                                                                      @NonNull GlideString function,
                                                                                      @NonNull
                                                                                      @NonNull GlideString[] keys,
                                                                                      @NonNull
                                                                                      @NonNull GlideString[] arguments)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Invokes a previously loaded read-only function.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        fcallReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        function - The function name.
        keys - An array of keys accessed by the function. To ensure the correct execution of functions, both in standalone and clustered deployments, all names of keys that a function accesses must be explicitly provided as keys.
        arguments - An array of function arguments. arguments should not represent names of keys.
        Returns:
        The invoked function's return value.
        See Also:
        valkey.io for details.
      • evalReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull
                                                                                     @NonNull java.lang.String script)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        script - The Lua script to execute.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • evalReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull
                                                                                     @NonNull java.lang.String script,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String[] keys,
                                                                                     @NonNull
                                                                                     @NonNull java.lang.String[] args)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script with keys and arguments.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        script - The Lua script to execute.
        keys - An array of keys accessed by the script.
        args - An array of script arguments.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • evalReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalReadOnly​(@NonNull
                                                                                     @NonNull GlideString script,
                                                                                     @NonNull
                                                                                     @NonNull GlideString[] keys,
                                                                                     @NonNull
                                                                                     @NonNull GlideString[] args)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script with keys and arguments.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        script - The Lua script to execute.
        keys - An array of keys accessed by the script.
        args - An array of script arguments.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • evalshaReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull
                                                                                        @NonNull java.lang.String sha1)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script by its SHA1 digest.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalshaReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        sha1 - The SHA1 digest of the script to execute.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • evalshaReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull
                                                                                        @NonNull java.lang.String sha1,
                                                                                        @NonNull
                                                                                        @NonNull java.lang.String[] keys,
                                                                                        @NonNull
                                                                                        @NonNull java.lang.String[] args)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script by its SHA1 digest with keys and arguments.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalshaReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        sha1 - The SHA1 digest of the script to execute.
        keys - An array of keys accessed by the script.
        args - An array of script arguments.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • evalshaReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull
                                                                                        @NonNull GlideString sha1)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script by its SHA1 digest.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalshaReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        sha1 - The SHA1 digest of the script to execute.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • evalshaReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.Object> evalshaReadOnly​(@NonNull
                                                                                        @NonNull GlideString sha1,
                                                                                        @NonNull
                                                                                        @NonNull GlideString[] keys,
                                                                                        @NonNull
                                                                                        @NonNull GlideString[] args)
        Description copied from interface: ScriptingAndFunctionsBaseCommands
        Executes a read-only Lua script by its SHA1 digest with keys and arguments.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        evalshaReadOnly in interface ScriptingAndFunctionsBaseCommands
        Parameters:
        sha1 - The SHA1 digest of the script to execute.
        keys - An array of keys accessed by the script.
        args - An array of script arguments.
        Returns:
        A value that depends on the script that was executed.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull java.lang.String source,
                                                                              @NonNull
                                                                              @NonNull java.lang.String destination,
                                                                              boolean replace)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key. When replace is true, removes the destination key first if it already exists, otherwise performs no action.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        replace - If the destination key should be removed before copying the value to it.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull GlideString source,
                                                                              @NonNull
                                                                              @NonNull GlideString destination,
                                                                              boolean replace)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key. When replace is true, removes the destination key first if it already exists, otherwise performs no action.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        replace - If the destination key should be removed before copying the value to it.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull java.lang.String source,
                                                                              @NonNull
                                                                              @NonNull java.lang.String destination)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key if the destination key does not yet exist.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull GlideString source,
                                                                              @NonNull
                                                                              @NonNull GlideString destination)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key if the destination key does not yet exist.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull java.lang.String source,
                                                                              @NonNull
                                                                              @NonNull java.lang.String destination,
                                                                              long destinationDB)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key on destinationDB. When replace is true, removes the destination key first if it already exists, otherwise performs no action.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        destinationDB - The alternative logical database index for the destination key.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull GlideString source,
                                                                              @NonNull
                                                                              @NonNull GlideString destination,
                                                                              long destinationDB)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key on destinationDB. When replace is true, removes the destination key first if it already exists, otherwise performs no action.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        destinationDB - The alternative logical database index for the destination key.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull java.lang.String source,
                                                                              @NonNull
                                                                              @NonNull java.lang.String destination,
                                                                              long destinationDB,
                                                                              boolean replace)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key on destinationDB. When replace is true, removes the destination key first if it already exists, otherwise performs no action.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        destinationDB - The alternative logical database index for the destination key.
        replace - If the destination key should be removed before copying the value to it.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • copy

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> copy​(@NonNull
                                                                              @NonNull GlideString source,
                                                                              @NonNull
                                                                              @NonNull GlideString destination,
                                                                              long destinationDB,
                                                                              boolean replace)
        Description copied from interface: GenericBaseCommands
        Copies the value stored at the source to the destination key on destinationDB. When replace is true, removes the destination key first if it already exists, otherwise performs no action.
        Specified by:
        copy in interface GenericBaseCommands
        Parameters:
        source - The key to the source value.
        destination - The key where the value should be copied to.
        destinationDB - The alternative logical database index for the destination key.
        replace - If the destination key should be removed before copying the value to it.
        Returns:
        true if source was copied, false if source was not copied.
        See Also:
        valkey.io for details.
      • msetnx

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> msetnx​(@NonNull
                                                                                @NonNull java.util.Map<java.lang.String,​java.lang.String> keyValueMap)
        Description copied from interface: StringBaseCommands
        Sets multiple keys to values if the key does not exist. The operation is atomic, and if one or more keys already exist, the entire operation fails.
        Specified by:
        msetnx in interface StringBaseCommands
        Parameters:
        keyValueMap - A key-value map consisting of keys and their respective values to set.
        Returns:
        true if all keys were set. false if no key was set.
        See Also:
        valkey.io for details.
      • msetnxBinary

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> msetnxBinary​(@NonNull
                                                                                      @NonNull java.util.Map<GlideString,​GlideString> keyValueMap)
        Description copied from interface: StringBaseCommands
        Sets multiple keys to values if the key does not exist. The operation is atomic, and if one or more keys already exist, the entire operation fails.
        Specified by:
        msetnxBinary in interface StringBaseCommands
        Parameters:
        keyValueMap - A key-value map consisting of keys and their respective values to set.
        Returns:
        true if all keys were set. false if no key was set.
        See Also:
        valkey.io for details.
      • lcs

        public java.util.concurrent.CompletableFuture<java.lang.String> lcs​(@NonNull
                                                                            @NonNull java.lang.String key1,
                                                                            @NonNull
                                                                            @NonNull java.lang.String key2)
        Description copied from interface: StringBaseCommands
        Returns all the longest common subsequences combined between strings stored at key1 and key2.
        Specified by:
        lcs in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        A String containing all the longest common subsequences combined between the 2 strings. An empty String is returned if the keys do not exist or have no common subsequences.
        See Also:
        valkey.io for details.
      • lcs

        public java.util.concurrent.CompletableFuture<GlideString> lcs​(@NonNull
                                                                       @NonNull GlideString key1,
                                                                       @NonNull
                                                                       @NonNull GlideString key2)
        Description copied from interface: StringBaseCommands
        Returns all the longest common subsequences combined between strings stored at key1 and key2.
        Specified by:
        lcs in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        A String containing all the longest common subsequences combined between the 2 strings. An empty GlideString is returned if the keys do not exist or have no common subsequences.
        See Also:
        valkey.io for details.
      • lcsLen

        public java.util.concurrent.CompletableFuture<java.lang.Long> lcsLen​(@NonNull
                                                                             @NonNull java.lang.String key1,
                                                                             @NonNull
                                                                             @NonNull java.lang.String key2)
        Description copied from interface: StringBaseCommands
        Returns the total length of all the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsLen in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        The total length of all the longest common subsequences the 2 strings.
        See Also:
        valkey.io for details.
      • lcsLen

        public java.util.concurrent.CompletableFuture<java.lang.Long> lcsLen​(@NonNull
                                                                             @NonNull GlideString key1,
                                                                             @NonNull
                                                                             @NonNull GlideString key2)
        Description copied from interface: StringBaseCommands
        Returns the total length of all the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsLen in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        The length of the longest common subsequence between the 2 strings.
        See Also:
        valkey.io for details.
      • lcsIdx

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull
                                                                                                                     @NonNull java.lang.String key1,
                                                                                                                     @NonNull
                                                                                                                     @NonNull java.lang.String key2)
        Description copied from interface: StringBaseCommands
        Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdx in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the total length of all the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long.
        • "matches" is mapped to a three dimensional Long array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdx

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull
                                                                                                                     @NonNull GlideString key1,
                                                                                                                     @NonNull
                                                                                                                     @NonNull GlideString key2)
        Description copied from interface: StringBaseCommands
        Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdx in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the total length of all the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long.
        • "matches" is mapped to a three dimensional Long array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdx

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull
                                                                                                                     @NonNull java.lang.String key1,
                                                                                                                     @NonNull
                                                                                                                     @NonNull java.lang.String key2,
                                                                                                                     long minMatchLen)
        Description copied from interface: StringBaseCommands
        Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdx in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        minMatchLen - The minimum length of matches to include in the result.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the total length of all the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long. This value doesn't count towards the minMatchLen filter.
        • "matches" is mapped to a three dimensional Long array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdx

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdx​(@NonNull
                                                                                                                     @NonNull GlideString key1,
                                                                                                                     @NonNull
                                                                                                                     @NonNull GlideString key2,
                                                                                                                     long minMatchLen)
        Description copied from interface: StringBaseCommands
        Returns the indices and the total length of all the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdx in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        minMatchLen - The minimum length of matches to include in the result.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the total length of all the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long. This value doesn't count towards the minMatchLen filter.
        • "matches" is mapped to a three dimensional Long array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdxWithMatchLen

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull
                                                                                                                                 @NonNull java.lang.String key1,
                                                                                                                                 @NonNull
                                                                                                                                 @NonNull java.lang.String key2)
        Description copied from interface: StringBaseCommands
        Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdxWithMatchLen in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the lengths of the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long.
        • "matches" is mapped to a three dimensional array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2 and the match length.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdxWithMatchLen

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull
                                                                                                                                 @NonNull GlideString key1,
                                                                                                                                 @NonNull
                                                                                                                                 @NonNull GlideString key2)
        Description copied from interface: StringBaseCommands
        Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdxWithMatchLen in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the lengths of the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long.
        • "matches" is mapped to a three dimensional array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2 and the match length.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdxWithMatchLen

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull
                                                                                                                                 @NonNull java.lang.String key1,
                                                                                                                                 @NonNull
                                                                                                                                 @NonNull java.lang.String key2,
                                                                                                                                 long minMatchLen)
        Description copied from interface: StringBaseCommands
        Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdxWithMatchLen in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        minMatchLen - The minimum length of matches to include in the result.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the total length of all the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long. This value doesn't count towards the minMatchLen filter.
        • "matches" is mapped to a three dimensional array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2 and the match length.
        See example for more details.
        See Also:
        valkey.io for details.
      • lcsIdxWithMatchLen

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Object>> lcsIdxWithMatchLen​(@NonNull
                                                                                                                                 @NonNull GlideString key1,
                                                                                                                                 @NonNull
                                                                                                                                 @NonNull GlideString key2,
                                                                                                                                 long minMatchLen)
        Description copied from interface: StringBaseCommands
        Returns the indices and lengths of the longest common subsequences between strings stored at key1 and key2.
        Specified by:
        lcsIdxWithMatchLen in interface StringBaseCommands
        Parameters:
        key1 - The key that stores the first string.
        key2 - The key that stores the second string.
        minMatchLen - The minimum length of matches to include in the result.
        Returns:
        A Map containing the indices of the longest common subsequence between the 2 strings and the total length of all the longest common subsequences. The resulting map contains two keys, "matches" and "len":
        • "len" is mapped to the total length of the all longest common subsequences between the 2 strings stored as Long. This value doesn't count towards the minMatchLen filter.
        • "matches" is mapped to a three dimensional array that stores pairs of indices that represent the location of the common subsequences in the strings held by key1 and key2 and the match length.
        See example for more details.
        See Also:
        valkey.io for details.
      • publish

        public java.util.concurrent.CompletableFuture<java.lang.String> publish​(@NonNull
                                                                                @NonNull java.lang.String message,
                                                                                @NonNull
                                                                                @NonNull java.lang.String channel)
        Description copied from interface: PubSubBaseCommands
        Publishes message on pubsub channel.
        Specified by:
        publish in interface PubSubBaseCommands
        Parameters:
        message - The message to publish.
        channel - The channel to publish the message on.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • publish

        public java.util.concurrent.CompletableFuture<java.lang.String> publish​(@NonNull
                                                                                @NonNull GlideString message,
                                                                                @NonNull
                                                                                @NonNull GlideString channel)
        Description copied from interface: PubSubBaseCommands
        Publishes message on pubsub channel.
        Specified by:
        publish in interface PubSubBaseCommands
        Parameters:
        message - The message to publish.
        channel - The channel to publish the message on.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • pubsubChannels

        public java.util.concurrent.CompletableFuture<java.lang.String[]> pubsubChannels()
        Description copied from interface: PubSubBaseCommands
        Lists the currently active channels.
        Specified by:
        pubsubChannels in interface PubSubBaseCommands
        Returns:
        An Array of all active channels.
        See Also:
        valkey.io for details.
      • pubsubChannels

        public java.util.concurrent.CompletableFuture<java.lang.String[]> pubsubChannels​(@NonNull
                                                                                         @NonNull java.lang.String pattern)
        Description copied from interface: PubSubBaseCommands
        Lists the currently active channels.
        Specified by:
        pubsubChannels in interface PubSubBaseCommands
        Parameters:
        pattern - A glob-style pattern to match active channels.
        Returns:
        An Array of currently active channels matching the given pattern.
        See Also:
        valkey.io for details.
      • pubsubChannels

        public java.util.concurrent.CompletableFuture<GlideString[]> pubsubChannels​(@NonNull
                                                                                    @NonNull GlideString pattern)
        Description copied from interface: PubSubBaseCommands
        Lists the currently active channels.
        Specified by:
        pubsubChannels in interface PubSubBaseCommands
        Parameters:
        pattern - A glob-style pattern to match active channels.
        Returns:
        An Array of currently active channels matching the given pattern.
        See Also:
        valkey.io for details.
      • pubsubNumPat

        public java.util.concurrent.CompletableFuture<java.lang.Long> pubsubNumPat()
        Description copied from interface: PubSubBaseCommands
        Returns the number of unique patterns that are subscribed to by clients.
        Specified by:
        pubsubNumPat in interface PubSubBaseCommands
        Returns:
        The number of unique patterns.
        See Also:
        valkey.io for details.
      • pubsubNumSub

        public java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,​java.lang.Long>> pubsubNumSub​(@NonNull
                                                                                                                         @NonNull java.lang.String[] channels)
        Description copied from interface: PubSubBaseCommands
        Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified channels.
        Specified by:
        pubsubNumSub in interface PubSubBaseCommands
        Parameters:
        channels - The list of channels to query for the number of subscribers.
        Returns:
        A Map where keys are the channel names and values are the numbers of subscribers.
        See Also:
        valkey.io for details.
      • pubsubNumSub

        public java.util.concurrent.CompletableFuture<java.util.Map<GlideString,​java.lang.Long>> pubsubNumSub​(@NonNull
                                                                                                                    @NonNull GlideString[] channels)
        Description copied from interface: PubSubBaseCommands
        Returns the number of subscribers (exclusive of clients subscribed to patterns) for the specified channels.
        Specified by:
        pubsubNumSub in interface PubSubBaseCommands
        Parameters:
        channels - The list of channels to query for the number of subscribers.
        Returns:
        A Map where keys are the channel names and values are the numbers of subscribers.
        See Also:
        valkey.io for details.
      • watch

        public java.util.concurrent.CompletableFuture<java.lang.String> watch​(@NonNull
                                                                              @NonNull java.lang.String[] keys)
        Description copied from interface: TransactionsBaseCommands
        Marks the given keys to be watched for conditional execution of a transaction. Transactions will only execute commands if the watched keys are not modified before execution of the transaction.
        Specified by:
        watch in interface TransactionsBaseCommands
        Parameters:
        keys - The keys to watch.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • watch

        public java.util.concurrent.CompletableFuture<java.lang.String> watch​(@NonNull
                                                                              @NonNull GlideString[] keys)
        Description copied from interface: TransactionsBaseCommands
        Marks the given keys to be watched for conditional execution of a transaction. Transactions will only execute commands if the watched keys are not modified before execution of the transaction.
        Specified by:
        watch in interface TransactionsBaseCommands
        Parameters:
        keys - The keys to watch.
        Returns:
        OK.
        See Also:
        valkey.io for details.
      • sunion

        public java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> sunion​(@NonNull
                                                                                              @NonNull java.lang.String[] keys)
        Description copied from interface: SetBaseCommands
        Gets the union of all the given sets.
        Specified by:
        sunion in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        Returns:
        A set of members which are present in at least one of the given sets. If none of the sets exist, an empty set will be returned.
        See Also:
        valkey.io for details.
      • sunion

        public java.util.concurrent.CompletableFuture<java.util.Set<GlideString>> sunion​(@NonNull
                                                                                         @NonNull GlideString[] keys)
        Description copied from interface: SetBaseCommands
        Gets the union of all the given sets.
        Specified by:
        sunion in interface SetBaseCommands
        Parameters:
        keys - The keys of the sets.
        Returns:
        A set of members which are present in at least one of the given sets. If none of the sets exist, an empty set will be returned.
        See Also:
        valkey.io for details.
      • dump

        public java.util.concurrent.CompletableFuture<byte[]> dump​(@NonNull
                                                                   @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Serialize the value stored at key in a Valkey-specific format and return it to the user.
        Specified by:
        dump in interface GenericBaseCommands
        Parameters:
        key - The key to serialize.
        Returns:
        The serialized value of the data stored at key.
        If key does not exist, null will be returned.
        See Also:
        valkey.io for details.
      • restore

        public java.util.concurrent.CompletableFuture<java.lang.String> restore​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                long ttl,
                                                                                @NonNull
                                                                                @lombok.NonNull byte[] value)
        Description copied from interface: GenericBaseCommands
        Create a key associated with a value that is obtained by deserializing the provided serialized value (obtained via GenericBaseCommands.dump(glide.api.models.GlideString)).
        Specified by:
        restore in interface GenericBaseCommands
        Parameters:
        key - The key to create.
        ttl - The expiry time (in milliseconds). If 0, the key will persist.
        value - The serialized value to deserialize and assign to key.
        Returns:
        Return OK if successfully create a key with a value .
        See Also:
        valkey.io for details.
      • restore

        public java.util.concurrent.CompletableFuture<java.lang.String> restore​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                long ttl,
                                                                                @NonNull
                                                                                @lombok.NonNull byte[] value,
                                                                                @NonNull
                                                                                @NonNull RestoreOptions restoreOptions)
        Description copied from interface: GenericBaseCommands
        Create a key associated with a value that is obtained by deserializing the provided serialized value (obtained via GenericBaseCommands.dump(glide.api.models.GlideString)).
        Specified by:
        restore in interface GenericBaseCommands
        Parameters:
        key - The key to create.
        ttl - The expiry time (in milliseconds). If 0, the key will persist.
        value - The serialized value to deserialize and assign to key.
        restoreOptions - The restore options. See RestoreOptions.
        Returns:
        Return OK if successfully create a key with a value .
        See Also:
        valkey.io for details.
      • sort

        public java.util.concurrent.CompletableFuture<java.lang.String[]> sort​(@NonNull
                                                                               @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result.
        The sort command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        To store the result into a new key, see GenericBaseCommands.sortStore(String, String).
        Specified by:
        sort in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sort

        public java.util.concurrent.CompletableFuture<GlideString[]> sort​(@NonNull
                                                                          @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result.
        The sort command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        To store the result into a new key, see GenericBaseCommands.sortStore(String, String).
        Specified by:
        sort in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sort

        public java.util.concurrent.CompletableFuture<java.lang.String[]> sort​(@NonNull
                                                                               @NonNull java.lang.String key,
                                                                               @NonNull
                                                                               @NonNull SortOptions sortOptions)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result. The sort command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        To store the result into a new key, see GenericBaseCommands.sortStore(String, String, SortOptions).
        Specified by:
        sort in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        sortOptions - The SortOptions.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sort

        public java.util.concurrent.CompletableFuture<GlideString[]> sort​(@NonNull
                                                                          @NonNull GlideString key,
                                                                          @NonNull
                                                                          @NonNull SortOptionsBinary sortOptions)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result. The sort command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        To store the result into a new key, see #sortStore(GlideString, GlideString, SortOptions).
        Specified by:
        sort in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        sortOptions - The SortOptionsBinary.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sortReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.String[]> sortReadOnly​(@NonNull
                                                                                       @NonNull java.lang.String key)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result.
        The sortReadOnly command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        sortReadOnly in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sortReadOnly

        public java.util.concurrent.CompletableFuture<GlideString[]> sortReadOnly​(@NonNull
                                                                                  @NonNull GlideString key)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result.
        The sortReadOnly command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        sortReadOnly in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sortReadOnly

        public java.util.concurrent.CompletableFuture<java.lang.String[]> sortReadOnly​(@NonNull
                                                                                       @NonNull java.lang.String key,
                                                                                       @NonNull
                                                                                       @NonNull SortOptions sortOptions)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result. The sortReadOnly command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        sortReadOnly in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        sortOptions - The SortOptions.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sortReadOnly

        public java.util.concurrent.CompletableFuture<GlideString[]> sortReadOnly​(@NonNull
                                                                                  @NonNull GlideString key,
                                                                                  @NonNull
                                                                                  @NonNull SortOptionsBinary sortOptions)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and returns the result. The sortReadOnly command can be used to sort elements based on different criteria and apply transformations on sorted elements.
        This command is routed depending on the client's ReadFrom strategy.
        Specified by:
        sortReadOnly in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        sortOptions - The SortOptions.
        Returns:
        An Array of sorted elements.
        See Also:
        valkey.io for details.
      • sortStore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String destination)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and stores the result in destination. The sort command can be used to sort elements based on different criteria, apply transformations on sorted elements, and store the result in a new key.
        To get the sort result without storing it into a key, see GenericBaseCommands.sort(String) or GenericBaseCommands.sortReadOnly(String).
        Specified by:
        sortStore in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        destination - The key where the sorted result will be stored.
        Returns:
        The number of elements in the sorted key stored at destination.
        See Also:
        valkey.io for details.
      • sortStore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString destination)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and stores the result in destination. The sort command can be used to sort elements based on different criteria, apply transformations on sorted elements, and store the result in a new key.
        To get the sort result without storing it into a key, see GenericBaseCommands.sort(GlideString) or GenericBaseCommands.sortReadOnly(GlideString).
        Specified by:
        sortStore in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        destination - The key where the sorted result will be stored.
        Returns:
        The number of elements in the sorted key stored at destination.
        See Also:
        valkey.io for details.
      • sortStore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String destination,
                                                                                @NonNull
                                                                                @NonNull SortOptions sortOptions)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and stores the result in destination. The sort command can be used to sort elements based on different criteria, apply transformations on sorted elements, and store the result in a new key.
        To get the sort result without storing it into a key, see GenericBaseCommands.sort(String, SortOptions).
        Specified by:
        sortStore in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        destination - The key where the sorted result will be stored.
        sortOptions - The SortOptions.
        Returns:
        The number of elements in the sorted key stored at destination.
        See Also:
        valkey.io for details.
      • sortStore

        public java.util.concurrent.CompletableFuture<java.lang.Long> sortStore​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString destination,
                                                                                @NonNull
                                                                                @NonNull SortOptionsBinary sortOptions)
        Description copied from interface: GenericBaseCommands
        Sorts the elements in the list, set, or sorted set at key and stores the result in destination. The sort command can be used to sort elements based on different criteria, apply transformations on sorted elements, and store the result in a new key.
        To get the sort result without storing it into a key, see #sort(GlideString, SortOptions).
        Specified by:
        sortStore in interface GenericBaseCommands
        Parameters:
        key - The key of the list, set, or sorted set to be sorted.
        destination - The key where the sorted result will be stored.
        sortOptions - The SortOptionsBinary.
        Returns:
        The number of elements in the sorted key stored at destination.
        See Also:
        valkey.io for details.
      • sscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String cursor)
        Description copied from interface: SetBaseCommands
        Iterates incrementally over a set.
        Specified by:
        sscan in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the set. The second element is always an Array of the subset of the set held in key.
        See Also:
        valkey.io for details.
      • sscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString cursor)
        Description copied from interface: SetBaseCommands
        Iterates incrementally over a set.
        Specified by:
        sscan in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the set. The second element is always an Array of the subset of the set held in key.
        See Also:
        valkey.io for details.
      • sscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String cursor,
                                                                                @NonNull
                                                                                @NonNull SScanOptions sScanOptions)
        Description copied from interface: SetBaseCommands
        Iterates incrementally over a set.
        Specified by:
        sscan in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        sScanOptions - The SScanOptions.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the set. The second element is always an Array of the subset of the set held in key.
        See Also:
        valkey.io for details.
      • sscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> sscan​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString cursor,
                                                                                @NonNull
                                                                                @NonNull SScanOptionsBinary sScanOptions)
        Description copied from interface: SetBaseCommands
        Iterates incrementally over a set.
        Specified by:
        sscan in interface SetBaseCommands
        Parameters:
        key - The key of the set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        sScanOptions - The SScanOptions.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the set. The second element is always an Array of the subset of the set held in key.
        See Also:
        valkey.io for details.
      • zscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String cursor)
        Description copied from interface: SortedSetBaseCommands
        Iterates incrementally over a sorted set.
        Specified by:
        zscan in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the sorted set. The second element is always an Array of the subset of the sorted set held in key. The array in the second element is always a flattened series of String pairs, where the value is at even indices and the score is at odd indices.
        See Also:
        valkey.io for details.
      • zscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString cursor)
        Description copied from interface: SortedSetBaseCommands
        Iterates incrementally over a sorted set.
        Specified by:
        zscan in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the sorted set. The second element is always an Array of the subset of the sorted set held in key. The array in the second element is always a flattened series of String pairs, where the value is at even indices and the score is at odd indices.
        See Also:
        valkey.io for details.
      • zscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String cursor,
                                                                                @NonNull
                                                                                @NonNull ZScanOptions zScanOptions)
        Description copied from interface: SortedSetBaseCommands
        Iterates incrementally over a sorted set.
        Specified by:
        zscan in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        zScanOptions - The ZScanOptions.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the sorted set. The second element is always an Array of the subset of the sorted set held in key. The array in the second element is a flattened series of String pairs, where the value is at even indices and the score is at odd indices. If ZScanOptions.ZScanOptionsBuilder.noScores(boolean) is to true , the second element will only contain the members without scores.
        See Also:
        valkey.io for details.
      • zscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> zscan​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString cursor,
                                                                                @NonNull
                                                                                @NonNull ZScanOptionsBinary zScanOptions)
        Description copied from interface: SortedSetBaseCommands
        Iterates incrementally over a sorted set.
        Specified by:
        zscan in interface SortedSetBaseCommands
        Parameters:
        key - The key of the sorted set.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        zScanOptions - The ZScanOptions.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the sorted set. The second element is always an Array of the subset of the sorted set held in key. The array in the second element is a flattened series of String pairs, where the value is at even indices and the score is at odd indices. If ZScanOptionsBinary.ZScanOptionsBinaryBuilder.noScores(boolean) is to true , the second element will only contain the members without scores.
        See Also:
        valkey.io for details.
      • hscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String cursor)
        Description copied from interface: HashBaseCommands
        Iterates fields of Hash types and their associated values.
        Specified by:
        hscan in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the result. The second element is always an Array of the subset of the hash held in key. The array in the second element is always a flattened series of String pairs, where the key is at even indices and the value is at odd indices.
        See Also:
        valkey.io for details.
      • hscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString cursor)
        Description copied from interface: HashBaseCommands
        Iterates fields of Hash types and their associated values.
        Specified by:
        hscan in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the result. The second element is always an Array of the subset of the hash held in key. The array in the second element is always a flattened series of String pairs, where the key is at even indices and the value is at odd indices.
        See Also:
        valkey.io for details.
      • hscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull
                                                                                @NonNull java.lang.String key,
                                                                                @NonNull
                                                                                @NonNull java.lang.String cursor,
                                                                                @NonNull
                                                                                @NonNull HScanOptions hScanOptions)
        Description copied from interface: HashBaseCommands
        Iterates fields of Hash types and their associated values.
        Specified by:
        hscan in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        hScanOptions - The HScanOptions.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the result. The second element is always an Array of the subset of the hash held in key. The array in the second element is a flattened series of String pairs, where the key is at even indices and the value is at odd indices. If HScanOptions.HScanOptionsBuilder.noValues(boolean) is set to true , the second element will only contain the fields without the values.
        See Also:
        valkey.io for details.
      • hscan

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> hscan​(@NonNull
                                                                                @NonNull GlideString key,
                                                                                @NonNull
                                                                                @NonNull GlideString cursor,
                                                                                @NonNull
                                                                                @NonNull HScanOptionsBinary hScanOptions)
        Description copied from interface: HashBaseCommands
        Iterates fields of Hash types and their associated values.
        Specified by:
        hscan in interface HashBaseCommands
        Parameters:
        key - The key of the hash.
        cursor - The cursor that points to the next iteration of results. A value of "0" indicates the start of the search.
        hScanOptions - The HScanOptionsBinary.
        Returns:
        An Array of Objects. The first element is always the cursor for the next iteration of results. "0" will be the cursor returned on the last iteration of the result. The second element is always an Array of the subset of the hash held in key. The array in the second element is a flattened series of String pairs, where the key is at even indices and the value is at odd indices. If HScanOptionsBinary.HScanOptionsBinaryBuilder.noValues(boolean) is set to true , the second element will only contain the fields without the values.
        See Also:
        valkey.io for details.
      • wait

        public java.util.concurrent.CompletableFuture<java.lang.Long> wait​(long numreplicas,
                                                                           long timeout)
        Description copied from interface: GenericBaseCommands
        Blocks the current client until all the previous write commands are successfully transferred and acknowledged by at least numreplicas of replicas. If timeout is reached, the command returns even if the specified number of replicas were not yet reached.
        Specified by:
        wait in interface GenericBaseCommands
        Parameters:
        numreplicas - The number of replicas to reach.
        timeout - The timeout value specified in milliseconds. A value of 0 will block indefinitely.
        Returns:
        The number of replicas reached by all the writes performed in the context of the current connection.
      • waitaof

        public java.util.concurrent.CompletableFuture<java.lang.Long[]> waitaof​(long numlocal,
                                                                                long numreplicas,
                                                                                long timeout)
        Description copied from interface: GenericBaseCommands
        Blocks the current client until all previous write commands are successfully transferred and acknowledged by at least numlocal and numreplicas of replicas. If timeout is reached, the command returns even if the specified number of replicas were not yet reached.
        Specified by:
        waitaof in interface GenericBaseCommands
        Parameters:
        numlocal - The number of local replicas to reach.
        numreplicas - The number of replicas to reach.
        timeout - The timeout value specified in milliseconds. A value of 0 will block indefinitely.
        Returns:
        An array of two Long values: the number of local replicas reached and the number of replicas reached.
        See Also:
        valkey.io for details.
      • migrate

        public java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost,
                                                                                long destinationPort,
                                                                                java.lang.String key,
                                                                                long destinationDB,
                                                                                long timeout)
        Description copied from interface: GenericBaseCommands
        Atomically transfers a key from a source Valkey instance to a destination Valkey instance. Once the key is successfully transferred, it is deleted from the source instance and is guaranteed to exist in the destination instance.
        Specified by:
        migrate in interface GenericBaseCommands
        Parameters:
        destinationHost - The destination host.
        destinationPort - The destination port.
        key - The key to migrate.
        destinationDB - The destination database index.
        timeout - The timeout in milliseconds.
        Returns:
        "OK" on success, or "NOKEY" if no keys were found in the source instance.
        See Also:
        valkey.io for details.
      • migrate

        public java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost,
                                                                                long destinationPort,
                                                                                GlideString key,
                                                                                long destinationDB,
                                                                                long timeout)
        Description copied from interface: GenericBaseCommands
        Atomically transfers a key from a source Valkey instance to a destination Valkey instance. Once the key is successfully transferred, it is deleted from the source instance and is guaranteed to exist in the destination instance.

        Note: The host and port are String/long types because they represent network addresses, while the key can be GlideString to support binary-safe key names.

        Specified by:
        migrate in interface GenericBaseCommands
        Parameters:
        destinationHost - The destination host.
        destinationPort - The destination port.
        key - The key to migrate (binary-safe).
        destinationDB - The destination database index.
        timeout - The timeout in milliseconds.
        Returns:
        "OK" on success, or "NOKEY" if no keys were found in the source instance.
        See Also:
        valkey.io for details.
      • migrate

        public java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost,
                                                                                long destinationPort,
                                                                                java.lang.String key,
                                                                                long destinationDB,
                                                                                long timeout,
                                                                                MigrateOptions migrateOptions)
        Description copied from interface: GenericBaseCommands
        Atomically transfers a key from a source Valkey instance to a destination Valkey instance. Once the key is successfully transferred, it is deleted from the source instance (unless COPY is specified) and is guaranteed to exist in the destination instance.
        Specified by:
        migrate in interface GenericBaseCommands
        Parameters:
        destinationHost - The destination host.
        destinationPort - The destination port.
        key - The key to migrate.
        destinationDB - The destination database index.
        timeout - The timeout in milliseconds.
        migrateOptions - Additional options for the MIGRATE command.
        Returns:
        "OK" on success, or "NOKEY" if no keys were found in the source instance.
        See Also:
        valkey.io for details.
      • migrate

        public java.util.concurrent.CompletableFuture<java.lang.String> migrate​(java.lang.String destinationHost,
                                                                                long destinationPort,
                                                                                GlideString key,
                                                                                long destinationDB,
                                                                                long timeout,
                                                                                MigrateOptions migrateOptions)
        Description copied from interface: GenericBaseCommands
        Atomically transfers a key from a source Valkey instance to a destination Valkey instance. Once the key is successfully transferred, it is deleted from the source instance (unless COPY is specified) and is guaranteed to exist in the destination instance.

        Note: The host and port are String/long types because they represent network addresses, while the key can be GlideString to support binary-safe key names.

        Specified by:
        migrate in interface GenericBaseCommands
        Parameters:
        destinationHost - The destination host.
        destinationPort - The destination port.
        key - The key to migrate (binary-safe).
        destinationDB - The destination database index.
        timeout - The timeout in milliseconds.
        migrateOptions - Additional options for the MIGRATE command.
        Returns:
        "OK" on success, or "NOKEY" if no keys were found in the source instance.
        See Also:
        valkey.io for details.
      • aclCat

        public java.util.concurrent.CompletableFuture<java.lang.String[]> aclCat()
      • aclCat

        public java.util.concurrent.CompletableFuture<java.lang.String[]> aclCat​(java.lang.String category)
      • aclDelUser

        public java.util.concurrent.CompletableFuture<java.lang.Long> aclDelUser​(java.lang.String[] usernames)
      • aclDryRun

        public java.util.concurrent.CompletableFuture<java.lang.String> aclDryRun​(java.lang.String username,
                                                                                  java.lang.String command,
                                                                                  java.lang.String[] args)
      • aclGenPass

        public java.util.concurrent.CompletableFuture<java.lang.String> aclGenPass()
      • aclGenPass

        public java.util.concurrent.CompletableFuture<java.lang.String> aclGenPass​(int bits)
      • aclGetUser

        public java.util.concurrent.CompletableFuture<java.lang.Object> aclGetUser​(java.lang.String username)
      • aclList

        public java.util.concurrent.CompletableFuture<java.lang.String[]> aclList()
      • aclLoad

        public java.util.concurrent.CompletableFuture<java.lang.String> aclLoad()
      • aclLog

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> aclLog()
      • aclLog

        public java.util.concurrent.CompletableFuture<java.lang.Object[]> aclLog​(int count)
      • aclSave

        public java.util.concurrent.CompletableFuture<java.lang.String> aclSave()
      • aclSetUser

        public java.util.concurrent.CompletableFuture<java.lang.String> aclSetUser​(java.lang.String username,
                                                                                   java.lang.String[] rules)
      • aclUsers

        public java.util.concurrent.CompletableFuture<java.lang.String[]> aclUsers()
      • aclWhoami

        public java.util.concurrent.CompletableFuture<java.lang.String> aclWhoami()
      • subscribeLazy

        public java.util.concurrent.CompletableFuture<java.lang.Void> subscribeLazy​(java.util.Set<java.lang.String> channels)
        Description copied from interface: PubSubBaseCommands
        Subscribes the client to the specified channels.

        This command updates the client's internal desired subscription state without waiting for server confirmation. It returns immediately after updating the local state. The client will attempt to subscribe asynchronously in the background.

        Note: Use getSubscriptions() to verify the actual server-side subscription state.

        Specified by:
        subscribeLazy in interface PubSubBaseCommands
        Parameters:
        channels - A set of channel names to subscribe to
        Returns:
        A CompletableFuture that completes when the subscription request is processed
        See Also:
        valkey.io for details
      • subscribe

        public java.util.concurrent.CompletableFuture<java.lang.Void> subscribe​(java.util.Set<java.lang.String> channels,
                                                                                int timeoutMs)
        Description copied from interface: PubSubBaseCommands
        Subscribes the client to the specified channels with a timeout.

        This command updates the client's internal desired subscription state and waits for server confirmation.

        Specified by:
        subscribe in interface PubSubBaseCommands
        Parameters:
        channels - A set of channel names to subscribe to
        timeoutMs - Maximum time in milliseconds to wait for subscription confirmation. A value of 0 blocks indefinitely until confirmation.
        Returns:
        A CompletableFuture that completes when the subscription is confirmed or times out
        See Also:
        valkey.io for details
      • psubscribeLazy

        public java.util.concurrent.CompletableFuture<java.lang.Void> psubscribeLazy​(java.util.Set<java.lang.String> patterns)
        Description copied from interface: PubSubBaseCommands
        Subscribes the client to channels matching the specified patterns.

        This command updates the client's internal desired subscription state without waiting for server confirmation. It returns immediately after updating the local state. The client will attempt to subscribe asynchronously in the background.

        Patterns use glob-style matching:

        • * matches any sequence of characters
        • ? matches any single character
        • [abc] matches one character from the set

        Note: Use getSubscriptions() to verify the actual server-side subscription state.

        Specified by:
        psubscribeLazy in interface PubSubBaseCommands
        Parameters:
        patterns - A set of glob patterns to subscribe to
        Returns:
        A CompletableFuture that completes when the subscription request is processed
        See Also:
        valkey.io for details
      • psubscribe

        public java.util.concurrent.CompletableFuture<java.lang.Void> psubscribe​(java.util.Set<java.lang.String> patterns,
                                                                                 int timeoutMs)
        Description copied from interface: PubSubBaseCommands
        Subscribes the client to channels matching the specified patterns with a timeout.

        This command updates the client's internal desired subscription state and waits for server confirmation.

        Specified by:
        psubscribe in interface PubSubBaseCommands
        Parameters:
        patterns - A set of glob patterns to subscribe to
        timeoutMs - Maximum time in milliseconds to wait for subscription confirmation. A value of 0 blocks indefinitely until confirmation.
        Returns:
        A CompletableFuture that completes when the subscription is confirmed or times out
        See Also:
        valkey.io for details
      • unsubscribeLazy

        public java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribeLazy()
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from all currently subscribed channels.

        This command updates the client's internal desired subscription state without waiting for server confirmation. It returns immediately after updating the local state. The client will attempt to unsubscribe asynchronously in the background.

        Note: Use getSubscriptions() to verify the actual server-side subscription state.

        Specified by:
        unsubscribeLazy in interface PubSubBaseCommands
        Returns:
        A CompletableFuture that completes when the unsubscription request is processed
        See Also:
        valkey.io for details
      • unsubscribeLazy

        public java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribeLazy​(java.util.Set<java.lang.String> channels)
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from the specified channels.

        This command updates the client's internal desired subscription state without waiting for server confirmation. It returns immediately after updating the local state. The client will attempt to unsubscribe asynchronously in the background.

        Note: Use getSubscriptions() to verify the actual server-side subscription state.

        Specified by:
        unsubscribeLazy in interface PubSubBaseCommands
        Parameters:
        channels - A set of channel names to unsubscribe from
        Returns:
        A CompletableFuture that completes when the unsubscription request is processed
        See Also:
        valkey.io for details
      • unsubscribe

        public java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe​(java.util.Set<java.lang.String> channels,
                                                                                  int timeoutMs)
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from the specified channels with a timeout.

        This command updates the client's internal desired subscription state and waits for server confirmation.

        Specified by:
        unsubscribe in interface PubSubBaseCommands
        Parameters:
        channels - A set of channel names to unsubscribe from
        timeoutMs - Maximum time in milliseconds to wait for unsubscription confirmation. A value of 0 blocks indefinitely until confirmation.
        Returns:
        A CompletableFuture that completes when the unsubscription is confirmed or times out
        See Also:
        valkey.io for details
      • unsubscribe

        public java.util.concurrent.CompletableFuture<java.lang.Void> unsubscribe​(int timeoutMs)
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from all currently subscribed channels with a timeout.
        Specified by:
        unsubscribe in interface PubSubBaseCommands
        Parameters:
        timeoutMs - Maximum time in milliseconds to wait for unsubscription confirmation
        Returns:
        A CompletableFuture that completes when the unsubscription is confirmed or times out
        See Also:
        valkey.io for details
      • punsubscribeLazy

        public java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribeLazy()
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from all currently subscribed patterns.

        This command updates the client's internal desired subscription state without waiting for server confirmation. It returns immediately after updating the local state. The client will attempt to unsubscribe asynchronously in the background.

        Note: Use getSubscriptions() to verify the actual server-side subscription state.

        Specified by:
        punsubscribeLazy in interface PubSubBaseCommands
        Returns:
        A CompletableFuture that completes when the unsubscription request is processed
        See Also:
        valkey.io for details
      • punsubscribeLazy

        public java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribeLazy​(java.util.Set<java.lang.String> patterns)
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from the specified patterns.

        This command updates the client's internal desired subscription state without waiting for server confirmation. It returns immediately after updating the local state. The client will attempt to unsubscribe asynchronously in the background.

        Note: Use getSubscriptions() to verify the actual server-side subscription state.

        Specified by:
        punsubscribeLazy in interface PubSubBaseCommands
        Parameters:
        patterns - A set of glob patterns to unsubscribe from
        Returns:
        A CompletableFuture that completes when the unsubscription request is processed
        See Also:
        valkey.io for details
      • punsubscribe

        public java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribe​(java.util.Set<java.lang.String> patterns,
                                                                                   int timeoutMs)
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from the specified patterns with a timeout.

        This command updates the client's internal desired subscription state and waits for server confirmation.

        Specified by:
        punsubscribe in interface PubSubBaseCommands
        Parameters:
        patterns - A set of glob patterns to unsubscribe from
        timeoutMs - Maximum time in milliseconds to wait for unsubscription confirmation. A value of 0 blocks indefinitely until confirmation.
        Returns:
        A CompletableFuture that completes when the unsubscription is confirmed or times out
        See Also:
        valkey.io for details
      • punsubscribe

        public java.util.concurrent.CompletableFuture<java.lang.Void> punsubscribe​(int timeoutMs)
        Description copied from interface: PubSubBaseCommands
        Unsubscribes the client from all currently subscribed patterns with a timeout.
        Specified by:
        punsubscribe in interface PubSubBaseCommands
        Parameters:
        timeoutMs - Maximum time in milliseconds to wait for unsubscription confirmation
        Returns:
        A CompletableFuture that completes when the unsubscription is confirmed or times out
        See Also:
        valkey.io for details
      • parseSubscriptionState

        protected java.lang.Object parseSubscriptionState​(java.lang.Object response)
      • __enqueuePubSubMessage

        public void __enqueuePubSubMessage​(PubSubMessage message)
        Internal method for enqueueing PubSub messages from native callback. This is called by the native layer when PubSub messages are received.