1) Key-value related commands
Keys returns all keys that satisfy the given pattern, with the expression * representing all keys removed
exists confirm if a key exists
Del Delete a key
Expire setting the expiration time for a key
TTL gets the effective duration of key (-1 indicates expired)
Move moves the key in the current database to a different database
Persist remove the expiration time for a given key
Randomkey randomly returns a key in the key space
Rename Rename key
Type of the return value of type
2) server-related commands
Ping tests if the connection is alive
Echo Prints some content on the command line
Select the database. Redis database number from 0~15.
Quit quit 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.
FLUSHDB Delete all keys in the currently selected database
Flushall Delete all keys in all databases
Four, Redis common commands