COPY source destination [DB destination-db][REPLACE]summary: Copies the value of a key to a newkey.since:6.2.0DEL key [key ...]summary: Deletes one or more keys.since:1.0.0DUMP key
summary: Returns a serialized representation of the value stored at a key.since:2.6.0EXISTS key [key ...]summary: Determines whether one or more keys exist.since:1.0.0EXPIRE key seconds [NX|XX|GT|LT]summary: Sets the expiration time of a key in seconds.since:1.0.0EXPIREAT key unix-time-seconds [NX|XX|GT|LT]summary: Sets the expiration time of a key to a Unix timestamp.since:1.2.0EXPIRETIME key
summary: Returns the expiration time of a key as a Unix timestamp.since:7.0.0KEYS pattern
summary: Returns all key names that match a pattern.since:1.0.0MIGRATE host port key|"" destination-db timeout [COPY][REPLACE][AUTH password|AUTH2 username password][KEYS key [key ...]]summary: Atomically transfers a key from one Redis instance to another.since:2.6.0MOVE key db
summary: Moves a key to another database.since:1.0.0OBJECT(null)summary:A container for object introspection commands.since:2.2.3OBJECTENCODING key
summary: Returns the internal encoding of a Redis object.since:2.2.3OBJECTFREQ key
summary: Returns the logarithmic access frequency counter of a Redis object.since:4.0.0OBJECTHELP(null)summary: Returns helpful text about the different subcommands.since:6.2.0OBJECTIDLETIME key
summary: Returns the time since the last access to a Redis object.since:2.2.3OBJECTREFCOUNT key
summary: Returns the reference count of a value of a key.since:2.2.3PERSIST key
summary: Removes the expiration time of a key.since:2.2.0PEXPIRE key milliseconds [NX|XX|GT|LT]summary: Sets the expiration time of a key in milliseconds.since:2.6.0PEXPIREAT key unix-time-milliseconds [NX|XX|GT|LT]summary: Sets the expiration time of a key to a Unix milliseconds timestamp.since:2.6.0PEXPIRETIME key
summary: Returns the expiration time of a key as a Unix milliseconds timestamp.since:7.0.0PTTL key
summary: Returns the expiration time in milliseconds of a key.since:2.6.0RANDOMKEY(null)summary: Returns a random key name from the database.since:1.0.0RENAME key newkey
summary: Renames a key and overwrites the destination.since:1.0.0RENAMENX key newkey
summary: Renames a key only when the target key name doesn't exist.since:1.0.0RESTORE key ttl serialized-value [REPLACE][ABSTTL][IDLETIME seconds][FREQ frequency]summary: Creates a key from the serialized representation of a value.since:2.6.0SCAN cursor [MATCH pattern][COUNT count][TYPE type]summary: Iterates over the key names in the database.since:2.8.0SORT key [BY pattern][LIMIT offset count][GET pattern [GET pattern ...]][ASC|DESC][ALPHA][STORE destination]summary: Sorts the elements in a list, a set, or a sorted set, optionally storing the result.since:1.0.0SORT_RO key [BY pattern][LIMIT offset count][GET pattern [GET pattern ...]][ASC|DESC][ALPHA]summary: Returns the sorted elements of a list, a set, or a sorted set.since:7.0.0TOUCH key [key ...]summary: Returns the number of existing keys out of those specified after updating the time they were last accessed.since:3.2.1TTL key
summary: Returns the expiration time in seconds of a key.since:1.0.0TYPE key
summary: Determines the type of value stored at a key.since:1.0.0UNLINK key [key ...]summary: Asynchronously deletes one or more keys.since:4.0.0WAIT numreplicas timeout
summary: Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.since:3.0.0WAITAOF numlocal numreplicas timeout
summary: Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas.since:7.2.0
2. string
APPEND key value
summary: Appends a string to the value of a key. Creates the key if it doesn't exist.since:2.0.0DECR key
summary: Decrements the integer value of a key by one. Uses 0as initial value if the key doesn't exist.since:1.0.0DECRBY key decrement
summary: Decrements a number from the integer value of a key. Uses 0as initial value if the key doesn't exist.since:1.0.0GET key
summary: Returns the string value of a key.since:1.0.0GETDEL key
summary: Returns the string value of a key after deleting the key.since:6.2.0GETEX key [EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|PERSIST]summary: Returns the string value of a key after setting its expiration time.since:6.2.0GETRANGE key start end
summary: Returns a substring of the string stored at a key.since:2.4.0GETSET key value
summary: Returns the previous string value of a key after setting it to a newvalue.since:1.0.0INCR key
summary: Increments the integer value of a key by one. Uses 0as initial value if the key doesn't exist.since:1.0.0INCRBY key increment
summary: Increments the integer value of a key by a number. Uses 0as initial value if the key doesn't exist.since:1.0.0INCRBYFLOAT key increment
summary: Increment the floating point value of a key by a number. Uses 0as initial value if the key doesn't exist.since:2.6.0LCS key1 key2 [LEN][IDX][MINMATCHLEN min-match-len][WITHMATCHLEN]summary: Finds the longest common substring.since:7.0.0MGET key [key ...]summary: Atomically returns the string values of one or more keys.since:1.0.0MSET key value [key value ...]summary: Atomically creates or modifies the string values of one or more keys.since:1.0.1MSETNX key value [key value ...]summary: Atomically modifies the string values of one or more keys only when all keys don't exist.since:1.0.1PSETEX key milliseconds value
summary: Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.since:2.6.0SET key value [NX|XX][GET][EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|KEEPTTL]summary: Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.since:1.0.0SETEX key seconds value
summary: Sets the string value and expiration time of a key. Creates the key if it doesn't exist.since:2.0.0SETNX key value
summary: Set the string value of a key only when the key doesn't exist.since:1.0.0SETRANGE key offset value
summary: Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.since:2.2.0STRLEN key
summary: Returns the length of a string value.since:2.2.0SUBSTR key start end
summary: Returns a substring from a string value.since:1.0.0
BLMOVE source destination LEFT|RIGHTLEFT|RIGHT timeout
summary: 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:6.2.0BLMPOP timeout numkeys key [key ...]LEFT|RIGHT[COUNT count]summary: 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:7.0.0BLPOP key [key ...] timeout
summary: 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:2.0.0BRPOP key [key ...] timeout
summary: 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:2.0.0BRPOPLPUSH source destination timeout
summary: 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:2.2.0LINDEX key index
summary: Returns an element from a list by its index.since:1.0.0LINSERT key BEFORE|AFTER pivot element
summary: Inserts an element before or after another element in a list.since:2.2.0LLEN key
summary: Returns the length of a list.since:1.0.0LMOVE source destination LEFT|RIGHTLEFT|RIGHTsummary: Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.since:6.2.0LMPOP numkeys key [key ...]LEFT|RIGHT[COUNT count]summary: Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.since:7.0.0LPOP key [count]summary: Returns the first elements in a list after removing it. Deletes the list if the last element was popped.since:1.0.0LPOS key element [RANK rank][COUNT num-matches][MAXLEN len]summary: Returns the index of matching elements in a list.since:6.0.6LPUSH key element [element ...]summary: Prepends one or more elements to a list. Creates the key if it doesn't exist.since:1.0.0LPUSHX key element [element ...]summary: Prepends one or more elements to a list only when the list exists.since:2.2.0LRANGE key start stop
summary: Returns a range of elements from a list.since:1.0.0LREM key count element
summary: Removes elements from a list. Deletes the list if the last element was removed.since:1.0.0LSET key index element
summary: Sets the value of an element in a list by its index.since:1.0.0LTRIM key start stop
summary: Removes elements from both ends a list. Deletes the list if all elements were trimmed.since:1.0.0RPOP key [count]summary: Returns and removes the last elements of a list. Deletes the list if the last element was popped.since:1.0.0RPOPLPUSH source destination
summary: 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:1.2.0RPUSH key element [element ...]summary: Appends one or more elements to a list. Creates the key if it doesn't exist.since:1.0.0RPUSHX key element [element ...]summary: Appends an element to a list only when the list exists.since:2.2.0
4. hash
HDEL key field [field ...]summary: Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.since:2.0.0HEXISTS key field
summary: Determines whether a field exists in a hash.since:2.0.0HGET key field
summary: Returns the value of a field in a hash.since:2.0.0HGETALL key
summary: Returns all fields and values in a hash.since:2.0.0HINCRBY key field increment
summary: Increments the integer value of a field in a hash by a number. Uses 0as initial value if the field doesn't exist.since:2.0.0HINCRBYFLOAT key field increment
summary: Increments the floating point value of a field by a number. Uses 0as initial value if the field doesn't exist.since:2.6.0HKEYS key
summary: Returns all fields in a hash.since:2.0.0HLEN key
summary: Returns the number of fields in a hash.since:2.0.0HMGET key field [field ...]summary: Returns the values of all fields in a hash.since:2.0.0HMSET key field value [field value ...]summary: Sets the values of multiple fields.since:2.0.0HRANDFIELD key [count [WITHVALUES]]summary: Returns one or more random fields from a hash.since:6.2.0HSCAN key cursor [MATCH pattern][COUNT count]summary: Iterates over fields and values of a hash.since:2.8.0HSET key field value [field value ...]summary: Creates or modifies the value of a field in a hash.since:2.0.0HSETNX key field value
summary: Sets the value of a field in a hash only when the field doesn't exist.since:2.0.0HSTRLEN key field
summary: Returns the length of the value of a field.since:3.2.0HVALS key
summary: Returns all values in a hash.since:2.0.0
5. set
SADD key member [member ...]summary: Adds one or more members to a set. Creates the key if it doesn't exist.since:1.0.0SCARD key
summary: Returns the number of members in a set.since:1.0.0SDIFF key [key ...]summary: Returns the difference of multiple sets.since:1.0.0SDIFFSTORE destination key [key ...]summary: Stores the difference of multiple sets in a key.since:1.0.0SINTER key [key ...]summary: Returns the intersect of multiple sets.since:1.0.0SINTERCARD numkeys key [key ...][LIMIT limit]summary: Returns the number of members of the intersect of multiple sets.since:7.0.0SINTERSTORE destination key [key ...]summary: Stores the intersect of multiple sets in a key.since:1.0.0SISMEMBER key member
summary: Determines whether a member belongs to a set.since:1.0.0SMEMBERS key
summary: Returns all members of a set.since:1.0.0SMISMEMBER key member [member ...]summary: Determines whether multiple members belong to a set.since:6.2.0SMOVE source destination member
summary: Moves a member from one set to another.since:1.0.0SPOP key [count]summary: Returns one or more random members from a set after removing them. Deletes the setif the last member was popped.since:1.0.0SRANDMEMBER key [count]summary: Get one or multiple random members from a setsince:1.0.0SREM key member [member ...]summary: Removes one or more members from a set. Deletes the setif the last member was removed.since:1.0.0SSCAN key cursor [MATCH pattern][COUNT count]summary: Iterates over members of a set.since:2.8.0SUNION key [key ...]summary: Returns the union of multiple sets.since:1.0.0SUNIONSTORE destination key [key ...]summary: Stores the union of multiple sets in a key.since:1.0.0
6. zset(sorted-set)
127.0.0.1:6379> help @sorted-set
BZMPOP timeout numkeys key [key ...]MIN|MAX[COUNT count]summary: Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted setif the last element was popped.since:7.0.0BZPOPMAX key [key ...] timeout
summary: Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted setif the last element was popped.since:5.0.0BZPOPMIN key [key ...] timeout
summary: 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 setif the last element was popped.since:5.0.0ZADD key [NX|XX][GT|LT][CH][INCR] score member [score member ...]summary: Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.since:1.2.0ZCARD key
summary: Returns the number of members in a sorted set.since:1.2.0ZCOUNT key min max
summary: Returns the count of members in a sorted set that have scores within a range.since:2.0.0ZDIFF numkeys key [key ...][WITHSCORES]summary: Returns the difference between multiple sorted sets.since:6.2.0ZDIFFSTORE destination numkeys key [key ...]summary: Stores the difference of multiple sorted sets in a key.since:6.2.0ZINCRBY key increment member
summary: Increments the score of a member in a sorted set.since:1.2.0ZINTER numkeys key [key ...][WEIGHTS weight [weight ...]][AGGREGATESUM|MIN|MAX][WITHSCORES]summary: Returns the intersect of multiple sorted sets.since:6.2.0ZINTERCARD numkeys key [key ...][LIMIT limit]summary: Returns the number of members of the intersect of multiple sorted sets.since:7.0.0ZINTERSTORE destination numkeys key [key ...][WEIGHTS weight [weight ...]][AGGREGATESUM|MIN|MAX]summary: Stores the intersect of multiple sorted sets in a key.since:2.0.0ZLEXCOUNT key min max
summary: Returns the number of members in a sorted set within a lexicographical range.since:2.8.9ZMPOP numkeys key [key ...]MIN|MAX[COUNT count]summary: Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted setif the last member was popped.since:7.0.0ZMSCORE key member [member ...]summary: Returns the score of one or more members in a sorted set.since:6.2.0ZPOPMAX key [count]summary: Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted setif the last member was popped.since:5.0.0ZPOPMIN key [count]summary: Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted setif the last member was popped.since:5.0.0ZRANDMEMBER key [count [WITHSCORES]]summary: Returns one or more random members from a sorted set.since:6.2.0ZRANGE key start stop [BYSCORE|BYLEX][REV][LIMIT offset count][WITHSCORES]summary: Returns members in a sorted set within a range of indexes.since:1.2.0ZRANGEBYLEX key min max [LIMIT offset count]summary: Returns members in a sorted set within a lexicographical range.since:2.8.9ZRANGEBYSCORE key min max [WITHSCORES][LIMIT offset count]summary: Returns members in a sorted set within a range of scores.since:1.0.5ZRANGESTORE dst src min max [BYSCORE|BYLEX][REV][LIMIT offset count]summary: Stores a range of members from sorted setin a key.since:6.2.0ZRANK key member [WITHSCORE]summary: Returns the index of a member in a sorted set ordered by ascending scores.since:2.0.0ZREM key member [member ...]summary: Removes one or more members from a sorted set. Deletes the sorted setif all members were removed.since:1.2.0ZREMRANGEBYLEX key min max
summary: Removes members in a sorted set within a lexicographical range. Deletes the sorted setif all members were removed.since:2.8.9ZREMRANGEBYRANK key start stop
summary: Removes members in a sorted set within a range of indexes. Deletes the sorted setif all members were removed.since:2.0.0ZREMRANGEBYSCORE key min max
summary: Removes members in a sorted set within a range of scores. Deletes the sorted setif all members were removed.since:1.2.0ZREVRANGE key start stop [WITHSCORES]summary: Returns members in a sorted set within a range of indexes in reverse order.since:1.2.0ZREVRANGEBYLEX key max min [LIMIT offset count]summary: Returns members in a sorted set within a lexicographical range in reverse order.since:2.8.9ZREVRANGEBYSCORE key max min [WITHSCORES][LIMIT offset count]summary: Returns members in a sorted set within a range of scores in reverse order.since:2.2.0ZREVRANK key member [WITHSCORE]summary: Returns the index of a member in a sorted set ordered by descending scores.since:2.0.0ZSCAN key cursor [MATCH pattern][COUNT count]summary: Iterates over members and scores of a sorted set.since:2.8.0ZSCORE key member
summary: Returns the score of a member in a sorted set.since:1.2.0ZUNION numkeys key [key ...][WEIGHTS weight [weight ...]][AGGREGATESUM|MIN|MAX][WITHSCORES]summary: Returns the union of multiple sorted sets.since:6.2.0ZUNIONSTORE destination numkeys key [key ...][WEIGHTS weight [weight ...]][AGGREGATESUM|MIN|MAX]summary: Stores the union of multiple sorted sets in a key.since:2.0.0