---
type: archive
area: archive
status: archived
date: 2026-05-03
created: 2026-05-03
updated: 1980-01-01
tags:
  - archive
---
<mark style="background: #FF5582A6;">DECR</mark>: This command decrements the value of a key by 1. If the key does not exist, it is initialized to 0 before decrementing.
<mark style="background: #FF5582A6;">DECRBY</mark>: Similar to DECR, but it decrements the value of a key by the specified integer amount.
<mark style="background: #FF5582A6;">DEL</mark>: Deletes one or more keys. It removes the specified keys and their associated data from the database.
<mark style="background: #FF5582A6;">EXISTS:</mark> Checks whether a key exists in the database. It returns 1 if the key exists and 0 if it does not.
<mark style="background: #FF5582A6;">EXPIRE</mark>: Sets a timeout on a key. It specifies the number of seconds until a key expires and is automatically removed from the database.
<mark style="background: #FF5582A6;">GET</mark>: Retrieves the value associated with a key. It returns the value stored under the specified key.
<mark style="background: #FF5582A6;">GETSET</mark>: Retrieves the current value of a key and then sets a new value for the key. Useful for atomic updates.
<mark style="background: #FF5582A6;">HDEL</mark>: Deletes one or more fields from a hash data structure associated with a key.
<mark style="background: #FF5582A6;">HEXISTS</mark>: Checks if a field exists in a hash data structure associated with a key.
<mark style="background: #FF5582A6;">HGET</mark>: Retrieves the value of a field from a hash data structure associated with a key.
<mark style="background: #FF5582A6;">HGETALL</mark>: Retrieves all field-value pairs from a hash data structure associated with a key.
<mark style="background: #FF5582A6;"> HINCRBY</mark>: Increments the value of a field in a hash data structure by a specified integer amount.
<mark style="background: #FF5582A6;">HKEYS</mark>: Retrieves all field names from a hash data structure associated with a key.
<mark style="background: #FF5582A6;">HLEN</mark>: Returns the number of fields in a hash data structure.
<mark style="background: #FF5582A6;">HMGET</mark>: Retrieves the values of multiple fields from a hash data structure associated with a key.
<mark style="background: #FF5582A6;">HMSET</mark>: Sets multiple field-value pairs in a hash data structure associated with a key.
<mark style="background: #FF5582A6;">HSET</mark>: Sets the value of a field in a hash data structure.
<mark style="background: #FF5582A6;">HVALS</mark>: Retrieves all values from a hash data structure associated with a key.
<mark style="background: #FF5582A6;">INCR</mark>: Increments the value of a key by 1. If the key does not exist, it is initialized to 0 before incrementing.
<mark style="background: #FF5582A6;">INCRBY</mark>: Similar to INCR, but it increments the value of a key by the specified integer amount.
<mark style="background: #FF5582A6;">KEYS</mark>: Returns all keys that match a given pattern. Be cautious when using this command in production, as it can be slow for large databases.
<mark style="background: #FF5582A6;">LINDEX</mark>: Retrieves an element from a list by its index.
<mark style="background: #FF5582A6;">LLEN</mark>: Returns the length of a list.
<mark style="background: #FF5582A6;">LPOP</mark>: Removes and returns the first element from a list.
<mark style="background: #FF5582A6;">LPUSH</mark>: Prepends one or more elements to the beginning of a list.
<mark style="background: #FF5582A6;">LRANGE</mark>: Retrieves a range of elements from a list.
<mark style="background: #FF5582A6;">LREM</mark>: Removes elements from a list based on their value.
<mark style="background: #FF5582A6;">LSET:</mark> Sets the value of an element in a list by its index.
<mark style="background: #FF5582A6;">LTRIM</mark>: Trims a list to the specified range of elements.
<mark style="background: #FF5582A6;">MGET</mark>: Retrieves the values of multiple keys.
<mark style="background: #FF5582A6;">MSET</mark>: Sets the values of multiple keys.
<mark style="background: #FF5582A6;">MSETNX</mark>: Sets the values of multiple keys only if none of the keys already exist.
<mark style="background: #FF5582A6;">MULTI</mark>: Marks the start of a transaction. All commands following MULTI are queued and executed atomically.
<mark style="background: #FF5582A6;">PEXPIRE</mark>: Sets a timeout on a key in milliseconds.
<mark style="background: #FF5582A6;">RENAME</mark>: Renames a key to a new name.
<mark style="background: #FF5582A6;">RENAMENX</mark>: Renames a key to a new name, but only if the new name does not already exist.
<mark style="background: #FF5582A6;">RPOP</mark>: Removes and returns the last element from a list.
<mark style="background: #FF5582A6;">RPOPLPUSH</mark>: Removes the last element from one list and pushes it to another list.
<mark style="background: #FF5582A6;">RPUSH</mark>: Appends one or more elements to the end of a list.
<mark style="background: #FF5582A6;">SADD</mark>: Adds one or more members to a set.
<mark style="background: #FF5582A6;">SCARD:</mark> Returns the number of members in a set.
<mark style="background: #FF5582A6;">SDIFF:</mark> Returns the members that are present in the first set but not in the other specified sets.
<mark style="background: #FF5582A6;">SDIFFSTORE:</mark> Stores the difference between two or more sets in a new set.
<mark style="background: #FF5582A6;">SET:</mark> Sets a key to hold a string value.
<mark style="background: #FF5582A6;">SETEX:</mark> Sets a key with an expiration time in seconds.
<mark style="background: #FF5582A6;">SETNX:</mark> Sets a key's value only if the key does not exist.
<mark style="background: #FF5582A6;">SINTER:</mark> Returns the members that are common to all specified sets.
<mark style="background: #FF5582A6;">SINTERSTORE:</mark> Stores the intersection of multiple sets in a new set.
<mark style="background: #FF5582A6;">SISMEMBER:</mark> Checks if a member exists in a set.
<mark style="background: #FF5582A6;">SMEMBERS:</mark> Returns all members of a set.
<mark style="background: #FF5582A6;">SMOVE:</mark> Moves a member from one set to another set.
<mark style="background: #FF5582A6;">SORT:</mark> Returns a sorted version of a list, set, or sorted set.
<mark style="background: #FF5582A6;">SPOP:</mark> Removes and returns a random member from a set.
<mark style="background: #FF5582A6;">SRANDMEMBER:</mark> Returns one or more random members from a set.
<mark style="background: #FF5582A6;">SREM:</mark> Removes one or more members from a set.
<mark style="background: #FF5582A6;">SUNION:</mark> Returns the union of multiple sets.
<mark style="background: #FF5582A6;">SUNIONSTORE:</mark> Stores the union of multiple sets in a new set.
<mark style="background: #FF5582A6;">TTL:</mark> Returns the remaining time to live of a key with an expiration set by EXPIRE or PEXPIRE.
<mark style="background: #FF5582A6;">TYPE: </mark>Returns the data type of a key.
<mark style="background: #FF5582A6;">ZADD:</mark> Adds one or more members to a sorted set.
<mark style="background: #FF5582A6;">ZCARD:</mark> Returns the number of members in a sorted set.
<mark style="background: #FF5582A6;">ZCOUNT:</mark> Returns the number of members in a sorted set within a specific range.
<mark style="background: #FF5582A6;">ZINCRBY:</mark> Increments the score of a member in a sorted set by a specified amount.
<mark style="background: #FF5582A6;">ZRANGE:</mark> Returns a range of members from a sorted set by their rank.
<mark style="background: #FF5582A6;">ZRANGEBYSCORE:</mark> Returns a range of members from a sorted set within a specific score range.
<mark style="background: #FF5582A6;">ZRANK:</mark> Returns the rank of a member in a sorted set.
<mark style="background: #FF5582A6;">ZREM:</mark> Removes one or more members from a sorted set.
<mark style="background: #FF5582A6;">ZREMRANGEBYSCORE:</mark> Removes members from a sorted set within a specific score range.
<mark style="background: #FF5582A6;">ZREVRANGE:</mark> Returns a range of members from a sorted set in reverse order.
<mark style="background: #FF5582A6;">ZSCORE:</mark> Returns the score of a member in a sorted set.