Redis Key-Value related commands
keys: Returns all keys that satisfy the given pattern. (Usage: Keys pattern expression)
exists: Verify that a key exists. (Usage: Exists key)
del: Delete a key. (Usage: Del key)
expire: Sets the expiration time for a key. (Usage: Expire key seconds) may be used to obtain the valid duration of this key through the TTL key until 1 indicates that the value has expired.
Move: Transfers the key from the current database to a different database. (Usage: Move key database name)
persist: Removes the expiration time for a given key. (Usage: Persist key)
randomkey: Randomly returns a key in the key space. (Usage: randomkey)
rename: Rename key. (Usage: rename Oldkey newkey)
Type: Returns the kind of the value. (Usage: Type key)
Redis Server-related commands
Ping: Tests if the connection is alive.
echo: Print some content at the command line. (Usage: Echo to print the content)
Select: Choose a database. The Redis database number enters the 0 database from 0~15,redis by default. We can select any database to access the data. (Usage: Select database number)
quit: Exits the connection.
dbsize: Returns the number of keys in the current database.
Info: Gets the information and statistics of the server.
config get: real-time upload of received requests. such as: Config get dir. If you want to get the configuration values for all the parameter data, simply execute "config get *" To display all the values.
flushdb: Deletes all keys in the currently selected database.
flushall: Removes all keys from all databases.
Redis Learning Lesson Seventh: Key-value commands and server commands