The first day of learning redis

Action Command
1, keys parren fuzzy queries, you can use * ,? , [] To obscure the query (regular)
2, isolated randomkey random key value
3, type key type determination key
4 exists key determines whether there is a KEY
5, del key delete key
. 6, the rename change the name oldkey new new key
7, renamenx oldkey newkey change the name already exists, not modified

8, redis default database 16, 0-15, default is 0, select 1 1 Select Database

9, move key 1 key to move data to a database. 1
10, The expire int key (s) disposed validity
. 11, the query key is valid TTL, is -1 if the representative period permanent

12, pexpire key int (ms)
13 is, Pttl Key query ms

Guess you like

Origin www.cnblogs.com/linhuage520/p/11885791.html