Redis

connect au serveur

redis-cli

  1. 字符 https://www.runoob.com/redis/redis-keys.html
    1.  SET
      1. set name_key value (set test1 longyu)
    2. GET
      1. get name_key (get test1)
    3. DEL
      1. del name_key
  2. 列表 https://www.runoob.com/redis/redis-lists.html
    1. LPUSH key value (创建一个列表)
    2. LRANGE key (返回列表里的值)
  3. 集合(set) https://www.runoob.com/redis/redis-sets.html
    1. SADD key alue(创建集合,加入值到集合)
  4. 有序集合 https://www.runoob.com/redis/redis-sorted-sets.html
    1. ZADD key order alue (ZADD name 1 longyu)
  5. 订阅发布 https://www.runoob.com/redis/redis-pub-sub.html
    1. subscribe
    2. publish
    3. python 用 redis 插件
  6. 参数检查
    1. 显示查找
      1. CONFIG
        1. CONFIG GET dir
        2. CONFIG get requirepass
      2. INFO

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Panier