1.get Key
Get the corresponding value by this key
2.set Key value
Use key as the key, value as
3.keys *
You can use this to search for keywords in the *, by taking out all the keys that are currently matched.
4.exists Key
Determine if the current key exists
5.del Key
Delete current key
6. Expire Key Time
Set Expiration Time
7.randomkey
Randomly returns a key
8.type Key
View the data type of the key return value
9. quit
Exit connection
Ten. Dbsize
(integer) 12
Number of keys in the current database
11.flushdb
Empty the current database
12.flushall
Clear all databases
Follow-up will continue to supplement, you can refer to the documentation: Http://redis.io, to remind you that this site provides download Redis package does not support Windows, want to play Redis can go to the virtual machine, of course, someone has provided the corresponding package for Windows: https:// Github.com/dmajkic/redis/downloads
Common commands for Redis