📦 valkey-doc

465 pages · page 2 of 3

L (continued)

  • linsert(3valkey)Inserts an element before or after another element in a list.✨
  • llen(3valkey)Returns the length of a list.✨
  • lmove(3valkey)Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.✨
  • lmpop(3valkey)Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.✨
  • lolwut(3valkey)Displays computer art and the server version✨
  • lpop(3valkey)Returns and removes one or more elements from the beginning of a list. Deletes the list if the last element was popped.✨
  • lpos(3valkey)Returns the index of matching elements in a list.✨
  • lpush(3valkey)Prepends one or more elements to a list. Creates the key if it doesn’t exist.✨
  • lpushx(3valkey)Prepends one or more elements to a list only when the list exists.✨
  • lrange(3valkey)Returns a range of elements from a list.✨
  • lrem(3valkey)Removes elements from a list. Deletes the list if the last element was removed.✨
  • lset(3valkey)Sets the value of an element in a list by its index.✨
  • ltrim(3valkey)Removes elements from both ends a list. Deletes the list if all elements were trimmed.✨

M

O

P

Q

R

  • randomkey(3valkey)Returns a random key name from the database.✨
  • readonly(3valkey)Enables read-only queries for a connection to a Valkey replica node.✨
  • readwrite(3valkey)Enables read-write queries for a connection to a Valkey replica node.✨
  • rename(3valkey)Renames a key and overwrites the destination.✨
  • renamenx(3valkey)Renames a key only when the target key name doesn’t exist.✨
  • replconf(3valkey)An internal command for configuring the replication stream.✨
  • replicaof(3valkey)Configures a server as replica of another, or promotes it to a primary.✨
  • reset(3valkey)Resets the connection.✨
  • restore(3valkey)Creates a key from the serialized representation of a value.✨
  • restore-asking(3valkey)An internal command for migrating keys in a cluster.✨
  • role(3valkey)Returns the replication role.✨
  • rpop(3valkey)Returns and removes one or more elements from the end of a list. Deletes the list if the last element was popped.✨
  • rpoplpush(3valkey)Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.✨
  • rpush(3valkey)Appends one or more elements to a list. Creates the key if it doesn’t exist.✨
  • rpushx(3valkey)Appends one or more elements to a list only when the list exists.✨

S

T

  • time(3valkey)Returns the server time.✨
  • touch(3valkey)Returns the number of existing keys out of those specified after updating the time they were last accessed.✨
  • ttl(3valkey)Returns the expiration time in seconds of a key.✨
  • type(3valkey)Determines the type of value stored at a key.✨

U

V