📦 valkey-doc

465 pages · page 1 of 3

A

B

  • bgrewriteaof(3valkey)Asynchronously rewrites the append-only file to disk.✨
  • bgsave(3valkey)Asynchronously saves the database(s) to disk.✨
  • bitcount(3valkey)Counts the number of set bits (population counting) in a string.✨
  • bitfield(3valkey)Performs arbitrary bitfield integer operations on strings.✨
  • bitfield_ro(3valkey)Performs arbitrary read-only bitfield integer operations on strings.✨
  • bitop(3valkey)Performs bitwise operations on multiple strings, and stores the result.✨
  • bitpos(3valkey)Finds the first set (1) or clear (0) bit in a string.✨
  • blmove(3valkey)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.✨
  • blmpop(3valkey)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.✨
  • blpop(3valkey)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.✨
  • brpop(3valkey)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.✨
  • brpoplpush(3valkey)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.✨
  • bzmpop(3valkey)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.✨
  • bzpopmax(3valkey)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.✨
  • bzpopmin(3valkey)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.✨

C

D

  • dbsize(3valkey)Returns the number of keys in the database.✨
  • debug(3valkey)A container for debugging commands.✨
  • decr(3valkey)Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn’t exist.✨
  • decrby(3valkey)Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn’t exist.✨
  • del(3valkey)Deletes one or more keys.✨
  • delifeq(3valkey)Delete key if value matches string.✨
  • discard(3valkey)Discards a transaction.✨
  • dump(3valkey)Returns a serialized representation of the value stored at a key.✨

E

F

G

  • geoadd(3valkey)Adds one or more members to a geospatial index. The key is created if it doesn’t exist.✨
  • geodist(3valkey)Returns the distance between two members of a geospatial index.✨
  • geohash(3valkey)Returns members from a geospatial index as geohash strings.✨
  • geopos(3valkey)Returns the longitude and latitude of members from a geospatial index.✨
  • georadius(3valkey)Queries a geospatial index for members within a distance from a coordinate, optionally stores the result.✨
  • georadius_ro(3valkey)Returns members from a geospatial index that are within a distance from a coordinate.✨
  • georadiusbymember(3valkey)Queries a geospatial index for members within a distance from a member, optionally stores the result.✨
  • georadiusbymember_ro(3valkey)Returns members from a geospatial index that are within a distance from a member.✨
  • geosearch(3valkey)Queries a geospatial index for members inside an area of a box, circle, or a polygon.✨
  • geosearchstore(3valkey)Queries a geospatial index for members inside an area of a box, a circle, or a polygon, optionally stores the result.✨
  • get(3valkey)Returns the string value of a key.✨
  • getbit(3valkey)Returns a bit value by offset.✨
  • getdel(3valkey)Returns the string value of a key after deleting the key.✨
  • getex(3valkey)Returns the string value of a key after setting its expiration time.✨
  • getrange(3valkey)Returns a substring of the string stored at a key.✨
  • getset(3valkey)Returns the previous string value of a key after setting it to a new value.✨

H

  • hdel(3valkey)Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.✨
  • hello(3valkey)Handshakes with the server.✨
  • hexists(3valkey)Determines whether a field exists in a hash.✨
  • hexpire(3valkey)Set expiry time on hash fields.✨
  • hexpireat(3valkey)Set expiry time on hash fields.✨
  • hexpiretime(3valkey)Returns Unix timestamps in seconds since the epoch at which the given key’s field(s) will expire✨
  • hget(3valkey)Returns the value of a field in a hash.✨
  • hgetall(3valkey)Returns all fields and values in a hash.✨
  • hgetex(3valkey)Get the value of one or more fields of a given hash key, and optionally set their expiration time or time-to-live (TTL).✨
  • hincrby(3valkey)Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn’t exist.✨
  • hincrbyfloat(3valkey)Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn’t exist.✨
  • hkeys(3valkey)Returns all fields in a hash.✨
  • hlen(3valkey)Returns the number of fields in a hash.✨
  • hmget(3valkey)Returns the values of all fields in a hash.✨
  • hmset(3valkey)Sets the values of multiple fields.✨
  • hpersist(3valkey)Remove the existing expiration on a hash key’s field(s).✨
  • hpexpire(3valkey)Set expiry time on hash object.✨
  • hpexpireat(3valkey)Set expiration time on hash field.✨
  • hpexpiretime(3valkey)Returns the Unix timestamp in milliseconds since Unix epoch at which the given key’s field(s) will expire✨
  • hpttl(3valkey)Returns the remaining time to live in milliseconds of a hash key’s field(s) that have an associated expiration.✨
  • hrandfield(3valkey)Returns one or more random fields from a hash.✨
  • hscan(3valkey)Iterates over fields and values of a hash.✨
  • hset(3valkey)Creates or modifies the value of a field in a hash.✨
  • hsetex(3valkey)Set the value of one or more fields of a given hash key, and optionally set their expiration time.✨
  • hsetnx(3valkey)Sets the value of a field in a hash only when the field doesn’t exist.✨
  • hstrlen(3valkey)Returns the length of the value of a field.✨
  • httl(3valkey)Returns the remaining time to live (in seconds) of a hash key’s field(s) that have an associated expiration.✨
  • hvals(3valkey)Returns all values in a hash.✨

I

  • incr(3valkey)Increments the integer value of a key by one. Uses 0 as initial value if the key doesn’t exist.✨
  • incrby(3valkey)Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn’t exist.✨
  • incrbyfloat(3valkey)Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn’t exist.✨
  • info(3valkey)Returns information and statistics about the server.✨

K

L