redisベースコマンド

1129 ワード

redisベースコマンド

1.     pattern   key
   keys *
   keys list*

2.   key    
   exists key
   
3.   key
   del key

4.   key  
   expire key expire

5.          key       db
   move key dbindex

6.     key     
   persist key

7. randomkey       key

8. rename key newname       key

9. type key   key     

10. dump key        key

11. restore key      redis 

12. expireat  expire  、       unix   

13. migrate host port key destination-db timout [copy] [repalce]
     key                   db 、      、key        、     key    
    eg. redis-cli -h host migrate des_host 6379 operateKey 0 1000
    
14. Object      redis  
    Object encoding key 
    (str: raw & int(      ) list: ziplist & linkedlist set: intset & hashtable
     hash: zipmap & hashtable zset: ziplist & skiplist)
    Object refcount key
    object idletime key

15. renamenx key     newkey    、   newkey

16. sort    、  、      key    
    alpha          sort list alpha
    limit offset count   offset   、  count   
    sort list limit offset count
    
17. scan、sscan、hscan、zscan     
    scan cursor