美文网首页
3、Redis不太常用但很有用的命令

3、Redis不太常用但很有用的命令

作者: chanyi | 来源:发表于2021-07-21 10:11 被阅读0次

    1、object encoding + key

    获取key的实际存储类型

    127.0.0.1:6379> object encoding test
    "int"
    

    2、help @list

    获取list所有的命令

    127.0.0.1:6379> help @list
    
      BLPOP key [key ...] timeout
      summary: Remove and get the first element in a list, or block until one is available
      since: 2.0.0
    
      BRPOP key [key ...] timeout
      summary: Remove and get the last element in a list, or block until one is available
      since: 2.0.0
    
      BRPOPLPUSH source destination timeout
      summary: Pop a value from a list, push it to another list and return it; or block until one is available
      since: 2.2.0
    
      LINDEX key index
      summary: Get an element from a list by its index
      since: 1.0.0
    

    相关文章

      网友评论

          本文标题:3、Redis不太常用但很有用的命令

          本文链接:https://www.haomeiwen.com/subject/cdzhmltx.html