Interface ValkeyAPI


public interface ValkeyAPI
Auto generated Valkey API client wrapper.
Version:
valkey_version:9.0.3
  • Method Details

    • api

      static ValkeyAPI api(Redis client)
    • api

      static ValkeyAPI api(RedisConnection connection)
    • close

      void close()
    • acl

      default Future<Response> acl(List<String> args)
      A container for Access List Control commands.
      Since:
      Redis 6.0.0
      See Also:
    • append

      default Future<Response> append(String arg0, String arg1)
      Appends a string to the value of a key. Creates the key if it doesn't exist.
      Since:
      Redis 2.0.0
      See Also:
    • asking

      default Future<Response> asking()
      Signals that a cluster client is following an -ASK redirect.
      Since:
      Redis 3.0.0
      See Also:
    • auth

      default Future<Response> auth(List<String> args)
      Authenticates the connection.
      Since:
      Redis 1.0.0
      See Also:
    • bgrewriteaof

      default Future<Response> bgrewriteaof()
      Asynchronously rewrites the append-only file to disk.
      Since:
      Redis 1.0.0
      See Also:
    • bgsave

      default Future<Response> bgsave(List<String> args)
      Asynchronously saves the database(s) to disk.
      Since:
      Redis 1.0.0
      See Also:
    • bitcount

      default Future<Response> bitcount(List<String> args)
      Counts the number of set bits (population counting) in a string.
      Since:
      Redis 2.6.0
      See Also:
    • bitfield

      default Future<Response> bitfield(List<String> args)
      Performs arbitrary bitfield integer operations on strings.
      Since:
      Redis 3.2.0
      See Also:
    • bitfieldRo

      default Future<Response> bitfieldRo(List<String> args)
      Performs arbitrary read-only bitfield integer operations on strings.
      Since:
      Redis 6.0.0
      See Also:
    • bitop

      default Future<Response> bitop(List<String> args)
      Performs bitwise operations on multiple strings, and stores the result.
      Since:
      Redis 2.6.0
      See Also:
    • bitpos

      default Future<Response> bitpos(List<String> args)
      Finds the first set (1) or clear (0) bit in a string.
      Since:
      Redis 2.8.7
      See Also:
    • blmove

      default Future<Response> blmove(String arg0, String arg1, String arg2, String arg3, String arg4)
      Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved.
      Since:
      Redis 6.2.0
      See Also:
    • blmpop

      default Future<Response> blmpop(List<String> args)
      Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped.
      Since:
      Redis 7.0.0
      See Also:
    • blpop

      default Future<Response> blpop(List<String> args)
      Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.
      Since:
      Redis 2.0.0
      See Also:
    • brpop

      default Future<Response> brpop(List<String> args)
      Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped.
      Since:
      Redis 2.0.0
      See Also:
    • brpoplpush

      default Future<Response> brpoplpush(String arg0, String arg1, String arg2)
      Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped.
      Since:
      Redis 2.2.0
      See Also:
    • bzmpop

      default Future<Response> bzmpop(List<String> args)
      Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.
      Since:
      Redis 7.0.0
      See Also:
    • bzpopmax

      default Future<Response> bzpopmax(List<String> args)
      Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted set if the last element was popped.
      Since:
      Redis 5.0.0
      See Also:
    • bzpopmin

      default Future<Response> bzpopmin(List<String> args)
      Removes and returns the member with the lowest score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.
      Since:
      Redis 5.0.0
      See Also:
    • client

      default Future<Response> client(List<String> args)
      A container for client connection commands.
      Since:
      Redis 2.4.0
      See Also:
    • cluster

      default Future<Response> cluster(List<String> args)
      A container for Cluster commands.
      Since:
      Redis 3.0.0
      See Also:
    • command

      default Future<Response> command(List<String> args)
      Returns detailed information about all commands.
      Since:
      Redis 2.8.13
      See Also:
    • commandlog

      default Future<Response> commandlog(List<String> args)
      A container for command log commands.
      Since:
      Valkey 8.1.0
      See Also:
    • config

      default Future<Response> config(List<String> args)
      A container for server configuration commands.
      Since:
      Redis 2.0.0
      See Also:
    • copy

      default Future<Response> copy(List<String> args)
      Copies the value of a key to a new key.
      Since:
      Redis 6.2.0
      See Also:
    • dbsize

      default Future<Response> dbsize()
      Returns the number of keys in the database.
      Since:
      Redis 1.0.0
      See Also:
    • debug

      default Future<Response> debug(List<String> args)
      A container for debugging commands.
      Since:
      Redis 1.0.0
      See Also:
    • decr

      default Future<Response> decr(String arg0)
      Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • decrby

      default Future<Response> decrby(String arg0, String arg1)
      Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • del

      default Future<Response> del(List<String> args)
      Deletes one or more keys.
      Since:
      Redis 1.0.0
      See Also:
    • delifeq

      default Future<Response> delifeq(String arg0, String arg1)
      Delete key if value matches string.
      Since:
      Valkey 9.0.0
      See Also:
    • discard

      default Future<Response> discard()
      Discards a transaction.
      Since:
      Redis 2.0.0
      See Also:
    • dump

      default Future<Response> dump(String arg0)
      Returns a serialized representation of the value stored at a key.
      Since:
      Redis 2.6.0
      See Also:
    • echo

      default Future<Response> echo(String arg0)
      Returns the given string.
      Since:
      Redis 1.0.0
      See Also:
    • eval

      default Future<Response> eval(List<String> args)
      Executes a server-side Lua script.
      Since:
      Redis 2.6.0
      See Also:
    • evalRo

      default Future<Response> evalRo(List<String> args)
      Executes a read-only server-side Lua script.
      Since:
      Redis 7.0.0
      See Also:
    • evalsha

      default Future<Response> evalsha(List<String> args)
      Executes a server-side Lua script by SHA1 digest.
      Since:
      Redis 2.6.0
      See Also:
    • evalshaRo

      default Future<Response> evalshaRo(List<String> args)
      Executes a read-only server-side Lua script by SHA1 digest.
      Since:
      Redis 7.0.0
      See Also:
    • exec

      default Future<Response> exec()
      Executes all commands in a transaction.
      Since:
      Redis 1.2.0
      See Also:
    • exists

      default Future<Response> exists(List<String> args)
      Determines whether one or more keys exist.
      Since:
      Redis 1.0.0
      See Also:
    • expire

      default Future<Response> expire(List<String> args)
      Sets the expiration time of a key in seconds.
      Since:
      Redis 1.0.0
      See Also:
    • expireat

      default Future<Response> expireat(List<String> args)
      Sets the expiration time of a key to a Unix timestamp.
      Since:
      Redis 1.2.0
      See Also:
    • expiretime

      default Future<Response> expiretime(String arg0)
      Returns the expiration time of a key as a Unix timestamp.
      Since:
      Redis 7.0.0
      See Also:
    • failover

      default Future<Response> failover(List<String> args)
      Starts a coordinated failover from a server to one of its replicas.
      Since:
      Redis 6.2.0
      See Also:
    • fcall

      default Future<Response> fcall(List<String> args)
      Invokes a function.
      Since:
      Redis 7.0.0
      See Also:
    • fcallRo

      default Future<Response> fcallRo(List<String> args)
      Invokes a read-only function.
      Since:
      Redis 7.0.0
      See Also:
    • flushall

      default Future<Response> flushall(List<String> args)
      Removes all keys from all databases.
      Since:
      Redis 1.0.0
      See Also:
    • flushdb

      default Future<Response> flushdb(List<String> args)
      Remove all keys from the current database.
      Since:
      Redis 1.0.0
      See Also:
    • function

      default Future<Response> function(List<String> args)
      A container for function commands.
      Since:
      Redis 7.0.0
      See Also:
    • geoadd

      default Future<Response> geoadd(List<String> args)
      Adds one or more members to a geospatial index. The key is created if it doesn't exist.
      Since:
      Redis 3.2.0
      See Also:
    • geodist

      default Future<Response> geodist(List<String> args)
      Returns the distance between two members of a geospatial index.
      Since:
      Redis 3.2.0
      See Also:
    • geohash

      default Future<Response> geohash(List<String> args)
      Returns members from a geospatial index as geohash strings.
      Since:
      Redis 3.2.0
      See Also:
    • geopos

      default Future<Response> geopos(List<String> args)
      Returns the longitude and latitude of members from a geospatial index.
      Since:
      Redis 3.2.0
      See Also:
    • georadius

      default Future<Response> georadius(List<String> args)
      Queries a geospatial index for members within a distance from a coordinate, optionally stores the result.
      Since:
      Redis 3.2.0
      See Also:
    • georadiusRo

      default Future<Response> georadiusRo(List<String> args)
      Returns members from a geospatial index that are within a distance from a coordinate.
      Since:
      Redis 3.2.10
      See Also:
    • georadiusbymember

      default Future<Response> georadiusbymember(List<String> args)
      Queries a geospatial index for members within a distance from a member, optionally stores the result.
      Since:
      Redis 3.2.0
      See Also:
    • georadiusbymemberRo

      default Future<Response> georadiusbymemberRo(List<String> args)
      Returns members from a geospatial index that are within a distance from a member.
      Since:
      Redis 3.2.10
      See Also:
    • geosearch

      default Future<Response> geosearch(List<String> args)
      Queries a geospatial index for members inside an area of a box, circle, or a polygon.
      Since:
      Redis 6.2.0
      See Also:
    • geosearchstore

      default Future<Response> geosearchstore(List<String> args)
      Queries a geospatial index for members inside an area of a box, a circle, or a polygon, optionally stores the result.
      Since:
      Redis 6.2.0
      See Also:
    • get

      default Future<Response> get(String arg0)
      Returns the string value of a key.
      Since:
      Redis 1.0.0
      See Also:
    • getbit

      default Future<Response> getbit(String arg0, String arg1)
      Returns a bit value by offset.
      Since:
      Redis 2.2.0
      See Also:
    • getdel

      default Future<Response> getdel(String arg0)
      Returns the string value of a key after deleting the key.
      Since:
      Redis 6.2.0
      See Also:
    • getex

      default Future<Response> getex(List<String> args)
      Returns the string value of a key after setting its expiration time.
      Since:
      Redis 6.2.0
      See Also:
    • getrange

      default Future<Response> getrange(String arg0, String arg1, String arg2)
      Returns a substring of the string stored at a key.
      Since:
      Redis 2.4.0
      See Also:
    • getset

      default Future<Response> getset(String arg0, String arg1)
      Returns the previous string value of a key after setting it to a new value.
      Since:
      Redis 1.0.0
      See Also:
    • hdel

      default Future<Response> hdel(List<String> args)
      Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.
      Since:
      Redis 2.0.0
      See Also:
    • hello

      default Future<Response> hello(List<String> args)
      Handshakes with the server.
      Since:
      Redis 6.0.0
      See Also:
    • hexists

      default Future<Response> hexists(String arg0, String arg1)
      Determines whether a field exists in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hexpire

      default Future<Response> hexpire(List<String> args)
      Set expiry time on hash fields.
      Since:
      Valkey 9.0.0
      See Also:
    • hexpireat

      default Future<Response> hexpireat(List<String> args)
      Set expiry time on hash fields.
      Since:
      Valkey 9.0.0
      See Also:
    • hexpiretime

      default Future<Response> hexpiretime(List<String> args)
      Returns Unix timestamps in seconds since the epoch at which the given key's field(s) will expire.
      Since:
      Valkey 9.0.0
      See Also:
    • hget

      default Future<Response> hget(String arg0, String arg1)
      Returns the value of a field in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hgetall

      default Future<Response> hgetall(String arg0)
      Returns all fields and values in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hgetex

      default Future<Response> hgetex(List<String> args)
      Get the value of one or more fields of a given hash key, and optionally set their expiration time or time-to-live (TTL).
      Since:
      Valkey 9.0.0
      See Also:
    • hincrby

      default Future<Response> hincrby(String arg0, String arg1, String arg2)
      Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist.
      Since:
      Redis 2.0.0
      See Also:
    • hincrbyfloat

      default Future<Response> hincrbyfloat(String arg0, String arg1, String arg2)
      Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist.
      Since:
      Redis 2.6.0
      See Also:
    • hkeys

      default Future<Response> hkeys(String arg0)
      Returns all fields in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hlen

      default Future<Response> hlen(String arg0)
      Returns the number of fields in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hmget

      default Future<Response> hmget(List<String> args)
      Returns the values of all fields in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hmset

      default Future<Response> hmset(List<String> args)
      Sets the values of multiple fields.
      Since:
      Redis 2.0.0
      See Also:
    • hpersist

      default Future<Response> hpersist(List<String> args)
      Remove the existing expiration on a hash key's field(s).
      Since:
      Valkey 9.0.0
      See Also:
    • hpexpire

      default Future<Response> hpexpire(List<String> args)
      Set expiry time on hash object.
      Since:
      Valkey 9.0.0
      See Also:
    • hpexpireat

      default Future<Response> hpexpireat(List<String> args)
      Set expiration time on hash field.
      Since:
      Valkey 9.0.0
      See Also:
    • hpexpiretime

      default Future<Response> hpexpiretime(List<String> args)
      Returns the Unix timestamp in milliseconds since Unix epoch at which the given key's field(s) will expire.
      Since:
      Valkey 9.0.0
      See Also:
    • hpttl

      default Future<Response> hpttl(List<String> args)
      Returns the remaining time to live in milliseconds of a hash key's field(s) that have an associated expiration.
      Since:
      Valkey 9.0.0
      See Also:
    • hrandfield

      default Future<Response> hrandfield(List<String> args)
      Returns one or more random fields from a hash.
      Since:
      Redis 6.2.0
      See Also:
    • hscan

      default Future<Response> hscan(List<String> args)
      Iterates over fields and values of a hash.
      Since:
      Redis 2.8.0
      See Also:
    • hset

      default Future<Response> hset(List<String> args)
      Creates or modifies the value of a field in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • hsetex

      default Future<Response> hsetex(List<String> args)
      Set the value of one or more fields of a given hash key, and optionally set their expiration time.
      Since:
      Valkey 9.0.0
      See Also:
    • hsetnx

      default Future<Response> hsetnx(String arg0, String arg1, String arg2)
      Sets the value of a field in a hash only when the field doesn't exist.
      Since:
      Redis 2.0.0
      See Also:
    • hstrlen

      default Future<Response> hstrlen(String arg0, String arg1)
      Returns the length of the value of a field.
      Since:
      Redis 3.2.0
      See Also:
    • httl

      default Future<Response> httl(List<String> args)
      Returns the remaining time to live (in seconds) of a hash key's field(s) that have an associated expiration.
      Since:
      Valkey 9.0.0
      See Also:
    • hvals

      default Future<Response> hvals(String arg0)
      Returns all values in a hash.
      Since:
      Redis 2.0.0
      See Also:
    • incr

      default Future<Response> incr(String arg0)
      Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • incrby

      default Future<Response> incrby(String arg0, String arg1)
      Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • incrbyfloat

      default Future<Response> incrbyfloat(String arg0, String arg1)
      Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist.
      Since:
      Redis 2.6.0
      See Also:
    • info

      default Future<Response> info(List<String> args)
      Returns information and statistics about the server.
      Since:
      Redis 1.0.0
      See Also:
    • keys

      default Future<Response> keys(String arg0)
      Returns all key names that match a pattern.
      Since:
      Redis 1.0.0
      See Also:
    • lastsave

      default Future<Response> lastsave()
      Returns the Unix timestamp of the last successful save to disk.
      Since:
      Redis 1.0.0
      See Also:
    • latency

      default Future<Response> latency(List<String> args)
      A container for latency diagnostics commands.
      Since:
      Redis 2.8.13
      See Also:
    • lcs

      default Future<Response> lcs(List<String> args)
      Finds the longest common substring.
      Since:
      Redis 7.0.0
      See Also:
    • lindex

      default Future<Response> lindex(String arg0, String arg1)
      Returns an element from a list by its index.
      Since:
      Redis 1.0.0
      See Also:
    • linsert

      default Future<Response> linsert(String arg0, String arg1, String arg2, String arg3)
      Inserts an element before or after another element in a list.
      Since:
      Redis 2.2.0
      See Also:
    • llen

      default Future<Response> llen(String arg0)
      Returns the length of a list.
      Since:
      Redis 1.0.0
      See Also:
    • lmove

      default Future<Response> lmove(String arg0, String arg1, String arg2, String arg3)
      Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.
      Since:
      Redis 6.2.0
      See Also:
    • lmpop

      default Future<Response> lmpop(List<String> args)
      Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.
      Since:
      Redis 7.0.0
      See Also:
    • lolwut

      default Future<Response> lolwut(List<String> args)
      Displays computer art and the server version.
      Since:
      Redis 5.0.0
      See Also:
    • lpop

      default Future<Response> lpop(List<String> args)
      Returns and removes one or more elements from the beginning of a list. Deletes the list if the last element was popped.
      Since:
      Redis 1.0.0
      See Also:
    • lpos

      default Future<Response> lpos(List<String> args)
      Returns the index of matching elements in a list.
      Since:
      Redis 6.0.6
      See Also:
    • lpush

      default Future<Response> lpush(List<String> args)
      Prepends one or more elements to a list. Creates the key if it doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • lpushx

      default Future<Response> lpushx(List<String> args)
      Prepends one or more elements to a list only when the list exists.
      Since:
      Redis 2.2.0
      See Also:
    • lrange

      default Future<Response> lrange(String arg0, String arg1, String arg2)
      Returns a range of elements from a list.
      Since:
      Redis 1.0.0
      See Also:
    • lrem

      default Future<Response> lrem(String arg0, String arg1, String arg2)
      Removes elements from a list. Deletes the list if the last element was removed.
      Since:
      Redis 1.0.0
      See Also:
    • lset

      default Future<Response> lset(String arg0, String arg1, String arg2)
      Sets the value of an element in a list by its index.
      Since:
      Redis 1.0.0
      See Also:
    • ltrim

      default Future<Response> ltrim(String arg0, String arg1, String arg2)
      Removes elements from both ends a list. Deletes the list if all elements were trimmed.
      Since:
      Redis 1.0.0
      See Also:
    • memory

      default Future<Response> memory(List<String> args)
      A container for memory diagnostics commands.
      Since:
      Redis 4.0.0
      See Also:
    • mget

      default Future<Response> mget(List<String> args)
      Atomically returns the string values of one or more keys.
      Since:
      Redis 1.0.0
      See Also:
    • migrate

      default Future<Response> migrate(List<String> args)
      Atomically transfers a key from one instance to another.
      Since:
      Redis 2.6.0
      See Also:
    • module

      default Future<Response> module(List<String> args)
      A container for module commands.
      Since:
      Redis 4.0.0
      See Also:
    • monitor

      default Future<Response> monitor()
      Listens for all requests received by the server in real-time.
      Since:
      Redis 1.0.0
      See Also:
    • move

      default Future<Response> move(String arg0, String arg1)
      Moves a key to another database.
      Since:
      Redis 1.0.0
      See Also:
    • mset

      default Future<Response> mset(List<String> args)
      Atomically creates or modifies the string values of one or more keys.
      Since:
      Redis 1.0.1
      See Also:
    • msetnx

      default Future<Response> msetnx(List<String> args)
      Atomically modifies the string values of one or more keys only when all keys don't exist.
      Since:
      Redis 1.0.1
      See Also:
    • multi

      default Future<Response> multi()
      Starts a transaction.
      Since:
      Redis 1.2.0
      See Also:
    • object

      default Future<Response> object(List<String> args)
      A container for object introspection commands.
      Since:
      Redis 2.2.3
      See Also:
    • persist

      default Future<Response> persist(String arg0)
      Removes the expiration time of a key.
      Since:
      Redis 2.2.0
      See Also:
    • pexpire

      default Future<Response> pexpire(List<String> args)
      Sets the expiration time of a key in milliseconds.
      Since:
      Redis 2.6.0
      See Also:
    • pexpireat

      default Future<Response> pexpireat(List<String> args)
      Sets the expiration time of a key to a Unix milliseconds timestamp.
      Since:
      Redis 2.6.0
      See Also:
    • pexpiretime

      default Future<Response> pexpiretime(String arg0)
      Returns the expiration time of a key as a Unix milliseconds timestamp.
      Since:
      Redis 7.0.0
      See Also:
    • pfadd

      default Future<Response> pfadd(List<String> args)
      Adds elements to a HyperLogLog key. Creates the key if it doesn't exist.
      Since:
      Redis 2.8.9
      See Also:
    • pfcount

      default Future<Response> pfcount(List<String> args)
      Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s).
      Since:
      Redis 2.8.9
      See Also:
    • pfdebug

      default Future<Response> pfdebug(String arg0, String arg1)
      Internal commands for debugging HyperLogLog values.
      Since:
      Redis 2.8.9
      See Also:
    • pfmerge

      default Future<Response> pfmerge(List<String> args)
      Merges one or more HyperLogLog values into a single key.
      Since:
      Redis 2.8.9
      See Also:
    • pfselftest

      default Future<Response> pfselftest()
      An internal command for testing HyperLogLog values.
      Since:
      Redis 2.8.9
      See Also:
    • ping

      default Future<Response> ping(List<String> args)
      Returns the server's liveliness response.
      Since:
      Redis 1.0.0
      See Also:
    • psetex

      default Future<Response> psetex(String arg0, String arg1, String arg2)
      Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.
      Since:
      Redis 2.6.0
      See Also:
    • psubscribe

      default Future<Response> psubscribe(List<String> args)
      Listens for messages published to channels that match one or more patterns.
      Since:
      Redis 2.0.0
      See Also:
    • psync

      default Future<Response> psync(List<String> args)
      An internal command used in replication.
      Since:
      Redis 2.8.0
      See Also:
    • pttl

      default Future<Response> pttl(String arg0)
      Returns the expiration time in milliseconds of a key.
      Since:
      Redis 2.6.0
      See Also:
    • publish

      default Future<Response> publish(String arg0, String arg1)
      Posts a message to a channel.
      Since:
      Redis 2.0.0
      See Also:
    • pubsub

      default Future<Response> pubsub(List<String> args)
      A container for Pub/Sub commands.
      Since:
      Redis 2.8.0
      See Also:
    • punsubscribe

      default Future<Response> punsubscribe(List<String> args)
      Stops listening to messages published to channels that match one or more patterns.
      Since:
      Redis 2.0.0
      See Also:
    • quit

      default Future<Response> quit(List<String> args)
      Closes the connection.
      Since:
      Redis 1.0.0
      See Also:
    • randomkey

      default Future<Response> randomkey()
      Returns a random key name from the database.
      Since:
      Redis 1.0.0
      See Also:
    • readonly

      default Future<Response> readonly()
      Enables read-only queries for a connection to a Valkey replica node.
      Since:
      Redis 3.0.0
      See Also:
    • readwrite

      default Future<Response> readwrite()
      Enables read-write queries for a connection to a Valkey replica node.
      Since:
      Redis 3.0.0
      See Also:
    • rename

      default Future<Response> rename(String arg0, String arg1)
      Renames a key and overwrites the destination.
      Since:
      Redis 1.0.0
      See Also:
    • renamenx

      default Future<Response> renamenx(String arg0, String arg1)
      Renames a key only when the target key name doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • replconf

      default Future<Response> replconf(List<String> args)
      An internal command for configuring the replication stream.
      Since:
      Redis 3.0.0
      See Also:
    • replicaof

      default Future<Response> replicaof(String arg0, String arg1)
      Configures a server as replica of another, or promotes it to a primary.
      Since:
      Redis 5.0.0
      See Also:
    • reset

      default Future<Response> reset()
      Resets the connection.
      Since:
      Redis 6.2.0
      See Also:
    • restore

      default Future<Response> restore(List<String> args)
      Creates a key from the serialized representation of a value.
      Since:
      Redis 2.6.0
      See Also:
    • restoreAsking

      default Future<Response> restoreAsking(List<String> args)
      An internal command for migrating keys in a cluster.
      Since:
      Redis 3.0.0
      See Also:
    • role

      default Future<Response> role()
      Returns the replication role.
      Since:
      Redis 2.8.12
      See Also:
    • rpop

      default Future<Response> rpop(List<String> args)
      Returns and removes one or more elements from the end of a list. Deletes the list if the last element was popped.
      Since:
      Redis 1.0.0
      See Also:
    • rpoplpush

      default Future<Response> rpoplpush(String arg0, String arg1)
      Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.
      Since:
      Redis 1.2.0
      See Also:
    • rpush

      default Future<Response> rpush(List<String> args)
      Appends one or more elements to a list. Creates the key if it doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • rpushx

      default Future<Response> rpushx(List<String> args)
      Appends one or more elements to a list only when the list exists.
      Since:
      Redis 2.2.0
      See Also:
    • sadd

      default Future<Response> sadd(List<String> args)
      Adds one or more members to a set. Creates the key if it doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • save

      default Future<Response> save()
      Synchronously saves the database(s) to disk.
      Since:
      Redis 1.0.0
      See Also:
    • scan

      default Future<Response> scan(List<String> args)
      Iterates over the key names in the database.
      Since:
      Redis 2.8.0
      See Also:
    • scard

      default Future<Response> scard(String arg0)
      Returns the number of members in a set.
      Since:
      Redis 1.0.0
      See Also:
    • script

      default Future<Response> script(List<String> args)
      A container for Lua scripts management commands.
      Since:
      Redis 2.6.0
      See Also:
    • sdiff

      default Future<Response> sdiff(List<String> args)
      Returns the difference of multiple sets.
      Since:
      Redis 1.0.0
      See Also:
    • sdiffstore

      default Future<Response> sdiffstore(List<String> args)
      Stores the difference of multiple sets in a key.
      Since:
      Redis 1.0.0
      See Also:
    • select

      default Future<Response> select(String arg0)
      Changes the selected database.
      Since:
      Redis 1.0.0
      See Also:
    • set

      default Future<Response> set(List<String> args)
      Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • setbit

      default Future<Response> setbit(String arg0, String arg1, String arg2)
      Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist.
      Since:
      Redis 2.2.0
      See Also:
    • setex

      default Future<Response> setex(String arg0, String arg1, String arg2)
      Sets the string value and expiration time of a key. Creates the key if it doesn't exist.
      Since:
      Redis 2.0.0
      See Also:
    • setnx

      default Future<Response> setnx(String arg0, String arg1)
      Set the string value of a key only when the key doesn't exist.
      Since:
      Redis 1.0.0
      See Also:
    • setrange

      default Future<Response> setrange(String arg0, String arg1, String arg2)
      Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.
      Since:
      Redis 2.2.0
      See Also:
    • shutdown

      default Future<Response> shutdown(List<String> args)
      Synchronously saves the database(s) to disk and shuts down the server.
      Since:
      Redis 1.0.0
      See Also:
    • sinter

      default Future<Response> sinter(List<String> args)
      Returns the intersect of multiple sets.
      Since:
      Redis 1.0.0
      See Also:
    • sintercard

      default Future<Response> sintercard(List<String> args)
      Returns the number of members of the intersect of multiple sets.
      Since:
      Redis 7.0.0
      See Also:
    • sinterstore

      default Future<Response> sinterstore(List<String> args)
      Stores the intersect of multiple sets in a key.
      Since:
      Redis 1.0.0
      See Also:
    • sismember

      default Future<Response> sismember(String arg0, String arg1)
      Determines whether a member belongs to a set.
      Since:
      Redis 1.0.0
      See Also:
    • slaveof

      default Future<Response> slaveof(String arg0, String arg1)
      Deprecated.
      since Redis 5.0.0, replaced by: REPLICAOF
      Sets a server as a replica of another, or promotes it to being a primary.
      Since:
      Redis 1.0.0
      See Also:
    • slowlog

      default Future<Response> slowlog(List<String> args)
      A container for slow log commands.
      Since:
      Redis 2.2.12
      See Also:
    • smembers

      default Future<Response> smembers(String arg0)
      Returns all members of a set.
      Since:
      Redis 1.0.0
      See Also:
    • smismember

      default Future<Response> smismember(List<String> args)
      Determines whether multiple members belong to a set.
      Since:
      Redis 6.2.0
      See Also:
    • smove

      default Future<Response> smove(String arg0, String arg1, String arg2)
      Moves a member from one set to another.
      Since:
      Redis 1.0.0
      See Also:
    • sort

      default Future<Response> sort(List<String> args)
      Sorts the elements in a list, a set, or a sorted set, optionally storing the result.
      Since:
      Redis 1.0.0
      See Also:
    • sortRo

      default Future<Response> sortRo(List<String> args)
      Returns the sorted elements of a list, a set, or a sorted set.
      Since:
      Redis 7.0.0
      See Also:
    • spop

      default Future<Response> spop(List<String> args)
      Returns one or more random members from a set after removing them. Deletes the set if the last member was popped.
      Since:
      Redis 1.0.0
      See Also:
    • spublish

      default Future<Response> spublish(String arg0, String arg1)
      Post a message to a shard channel.
      Since:
      Redis 7.0.0
      See Also:
    • srandmember

      default Future<Response> srandmember(List<String> args)
      Get one or multiple random members from a set.
      Since:
      Redis 1.0.0
      See Also:
    • srem

      default Future<Response> srem(List<String> args)
      Removes one or more members from a set. Deletes the set if the last member was removed.
      Since:
      Redis 1.0.0
      See Also:
    • sscan

      default Future<Response> sscan(List<String> args)
      Iterates over members of a set.
      Since:
      Redis 2.8.0
      See Also:
    • ssubscribe

      default Future<Response> ssubscribe(List<String> args)
      Listens for messages published to shard channels.
      Since:
      Redis 7.0.0
      See Also:
    • strlen

      default Future<Response> strlen(String arg0)
      Returns the length of a string value.
      Since:
      Redis 2.2.0
      See Also:
    • subscribe

      default Future<Response> subscribe(List<String> args)
      Listens for messages published to channels.
      Since:
      Redis 2.0.0
      See Also:
    • substr

      default Future<Response> substr(String arg0, String arg1, String arg2)
      Returns a substring from a string value.
      Since:
      Redis 1.0.0
      See Also:
    • sunion

      default Future<Response> sunion(List<String> args)
      Returns the union of multiple sets.
      Since:
      Redis 1.0.0
      See Also:
    • sunionstore

      default Future<Response> sunionstore(List<String> args)
      Stores the union of multiple sets in a key.
      Since:
      Redis 1.0.0
      See Also:
    • sunsubscribe

      default Future<Response> sunsubscribe(List<String> args)
      Stops listening to messages posted to shard channels.
      Since:
      Redis 7.0.0
      See Also:
    • swapdb

      default Future<Response> swapdb(String arg0, String arg1)
      Swaps two databases.
      Since:
      Redis 4.0.0
      See Also:
    • sync

      default Future<Response> sync()
      An internal command used in replication.
      Since:
      Redis 1.0.0
      See Also:
    • time

      default Future<Response> time()
      Returns the server time.
      Since:
      Redis 2.6.0
      See Also:
    • touch

      default Future<Response> touch(List<String> args)
      Returns the number of existing keys out of those specified after updating the time they were last accessed.
      Since:
      Redis 3.2.1
      See Also:
    • ttl

      default Future<Response> ttl(String arg0)
      Returns the expiration time in seconds of a key.
      Since:
      Redis 1.0.0
      See Also:
    • type

      default Future<Response> type(String arg0)
      Determines the type of value stored at a key.
      Since:
      Redis 1.0.0
      See Also:
    • unlink

      default Future<Response> unlink(List<String> args)
      Asynchronously deletes one or more keys.
      Since:
      Redis 4.0.0
      See Also:
    • unsubscribe

      default Future<Response> unsubscribe(List<String> args)
      Stops listening to messages posted to channels.
      Since:
      Redis 2.0.0
      See Also:
    • unwatch

      default Future<Response> unwatch()
      Forgets about watched keys of a transaction.
      Since:
      Redis 2.2.0
      See Also:
    • wait

      default Future<Response> wait(String arg0, String arg1)
      Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.
      Since:
      Redis 3.0.0
      See Also:
    • waitaof

      default Future<Response> waitaof(String arg0, String arg1, String arg2)
      Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the primary and/or replicas.
      Since:
      Redis 7.2.0
      See Also:
    • watch

      default Future<Response> watch(List<String> args)
      Monitors changes to keys to determine the execution of a transaction.
      Since:
      Redis 2.2.0
      See Also:
    • xack

      default Future<Response> xack(List<String> args)
      Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.
      Since:
      Redis 5.0.0
      See Also:
    • xadd

      default Future<Response> xadd(List<String> args)
      Appends a new message to a stream. Creates the key if it doesn't exist.
      Since:
      Redis 5.0.0
      See Also:
    • xautoclaim

      default Future<Response> xautoclaim(List<String> args)
      Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.
      Since:
      Redis 6.2.0
      See Also:
    • xclaim

      default Future<Response> xclaim(List<String> args)
      Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.
      Since:
      Redis 5.0.0
      See Also:
    • xdel

      default Future<Response> xdel(List<String> args)
      Returns the number of messages after removing them from a stream.
      Since:
      Redis 5.0.0
      See Also:
    • xgroup

      default Future<Response> xgroup(List<String> args)
      A container for consumer groups commands.
      Since:
      Redis 5.0.0
      See Also:
    • xinfo

      default Future<Response> xinfo(List<String> args)
      A container for stream introspection commands.
      Since:
      Redis 5.0.0
      See Also:
    • xlen

      default Future<Response> xlen(String arg0)
      Return the number of messages in a stream.
      Since:
      Redis 5.0.0
      See Also:
    • xpending

      default Future<Response> xpending(List<String> args)
      Returns the information and entries from a stream consumer group's pending entries list.
      Since:
      Redis 5.0.0
      See Also:
    • xrange

      default Future<Response> xrange(List<String> args)
      Returns the messages from a stream within a range of IDs.
      Since:
      Redis 5.0.0
      See Also:
    • xread

      default Future<Response> xread(List<String> args)
      Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.
      Since:
      Redis 5.0.0
      See Also:
    • xreadgroup

      default Future<Response> xreadgroup(List<String> args)
      Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise.
      Since:
      Redis 5.0.0
      See Also:
    • xrevrange

      default Future<Response> xrevrange(List<String> args)
      Returns the messages from a stream within a range of IDs in reverse order.
      Since:
      Redis 5.0.0
      See Also:
    • xsetid

      default Future<Response> xsetid(List<String> args)
      An internal command for replicating stream values.
      Since:
      Redis 5.0.0
      See Also:
    • xtrim

      default Future<Response> xtrim(List<String> args)
      Deletes messages from the beginning of a stream.
      Since:
      Redis 5.0.0
      See Also:
    • zadd

      default Future<Response> zadd(List<String> args)
      Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.
      Since:
      Redis 1.2.0
      See Also:
    • zcard

      default Future<Response> zcard(String arg0)
      Returns the number of members in a sorted set.
      Since:
      Redis 1.2.0
      See Also:
    • zcount

      default Future<Response> zcount(String arg0, String arg1, String arg2)
      Returns the count of members in a sorted set that have scores within a range.
      Since:
      Redis 2.0.0
      See Also:
    • zdiff

      default Future<Response> zdiff(List<String> args)
      Returns the difference between multiple sorted sets.
      Since:
      Redis 6.2.0
      See Also:
    • zdiffstore

      default Future<Response> zdiffstore(List<String> args)
      Stores the difference of multiple sorted sets in a key.
      Since:
      Redis 6.2.0
      See Also:
    • zincrby

      default Future<Response> zincrby(String arg0, String arg1, String arg2)
      Increments the score of a member in a sorted set.
      Since:
      Redis 1.2.0
      See Also:
    • zinter

      default Future<Response> zinter(List<String> args)
      Returns the intersect of multiple sorted sets.
      Since:
      Redis 6.2.0
      See Also:
    • zintercard

      default Future<Response> zintercard(List<String> args)
      Returns the number of members of the intersect of multiple sorted sets.
      Since:
      Redis 7.0.0
      See Also:
    • zinterstore

      default Future<Response> zinterstore(List<String> args)
      Stores the intersect of multiple sorted sets in a key.
      Since:
      Redis 2.0.0
      See Also:
    • zlexcount

      default Future<Response> zlexcount(String arg0, String arg1, String arg2)
      Returns the number of members in a sorted set within a lexicographical range.
      Since:
      Redis 2.8.9
      See Also:
    • zmpop

      default Future<Response> zmpop(List<String> args)
      Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped.
      Since:
      Redis 7.0.0
      See Also:
    • zmscore

      default Future<Response> zmscore(List<String> args)
      Returns the score of one or more members in a sorted set.
      Since:
      Redis 6.2.0
      See Also:
    • zpopmax

      default Future<Response> zpopmax(List<String> args)
      Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.
      Since:
      Redis 5.0.0
      See Also:
    • zpopmin

      default Future<Response> zpopmin(List<String> args)
      Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped.
      Since:
      Redis 5.0.0
      See Also:
    • zrandmember

      default Future<Response> zrandmember(List<String> args)
      Returns one or more random members from a sorted set.
      Since:
      Redis 6.2.0
      See Also:
    • zrange

      default Future<Response> zrange(List<String> args)
      Returns members in a sorted set within a range of indexes.
      Since:
      Redis 1.2.0
      See Also:
    • zrangebylex

      default Future<Response> zrangebylex(List<String> args)
      Returns members in a sorted set within a lexicographical range.
      Since:
      Redis 2.8.9
      See Also:
    • zrangebyscore

      default Future<Response> zrangebyscore(List<String> args)
      Returns members in a sorted set within a range of scores.
      Since:
      Redis 1.0.5
      See Also:
    • zrangestore

      default Future<Response> zrangestore(List<String> args)
      Stores a range of members from sorted set in a key.
      Since:
      Redis 6.2.0
      See Also:
    • zrank

      default Future<Response> zrank(List<String> args)
      Returns the index of a member in a sorted set ordered by ascending scores.
      Since:
      Redis 2.0.0
      See Also:
    • zrem

      default Future<Response> zrem(List<String> args)
      Removes one or more members from a sorted set. Deletes the sorted set if all members were removed.
      Since:
      Redis 1.2.0
      See Also:
    • zremrangebylex

      default Future<Response> zremrangebylex(String arg0, String arg1, String arg2)
      Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed.
      Since:
      Redis 2.8.9
      See Also:
    • zremrangebyrank

      default Future<Response> zremrangebyrank(String arg0, String arg1, String arg2)
      Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed.
      Since:
      Redis 2.0.0
      See Also:
    • zremrangebyscore

      default Future<Response> zremrangebyscore(String arg0, String arg1, String arg2)
      Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed.
      Since:
      Redis 1.2.0
      See Also:
    • zrevrange

      default Future<Response> zrevrange(List<String> args)
      Returns members in a sorted set within a range of indexes in reverse order.
      Since:
      Redis 1.2.0
      See Also:
    • zrevrangebylex

      default Future<Response> zrevrangebylex(List<String> args)
      Returns members in a sorted set within a lexicographical range in reverse order.
      Since:
      Redis 2.8.9
      See Also:
    • zrevrangebyscore

      default Future<Response> zrevrangebyscore(List<String> args)
      Returns members in a sorted set within a range of scores in reverse order.
      Since:
      Redis 2.2.0
      See Also:
    • zrevrank

      default Future<Response> zrevrank(List<String> args)
      Returns the index of a member in a sorted set ordered by descending scores.
      Since:
      Redis 2.0.0
      See Also:
    • zscan

      default Future<Response> zscan(List<String> args)
      Iterates over members and scores of a sorted set.
      Since:
      Redis 2.8.0
      See Also:
    • zscore

      default Future<Response> zscore(String arg0, String arg1)
      Returns the score of a member in a sorted set.
      Since:
      Redis 1.2.0
      See Also:
    • zunion

      default Future<Response> zunion(List<String> args)
      Returns the union of multiple sorted sets.
      Since:
      Redis 6.2.0
      See Also:
    • zunionstore

      default Future<Response> zunionstore(List<String> args)
      Stores the union of multiple sorted sets in a key.
      Since:
      Redis 2.0.0
      See Also:
    • send

      Future<Response> send(Command cmd, String... args)
      Send untyped command to Valkey.
      Parameters:
      cmd - the command
      args - var args
      Returns:
      Future response.