Redis的底层类型之hash

hash

  • HSET
  • HDEL
  • HEXISTS
  • HGET
  • HGETALL
  • HINCRBY
  • HINCRBYFLOAT
  • HKEYS
  • HLEN
  • HMGET
  • HMSET
  • HRANDFIELD
HRANDFIELD key [count [WITHVALUES]]

When called with just the key argument, return a random field from the hash value stored at key.随机返回指定数量的key

  • HSCAN

Redis HSCAN 命令用于迭代哈希表中的键值对。

HSCAN key cursor [MATCH pattern] [COUNT count]
  • HSETNX
  • HSTRLEN

返回值得长度

  • HVALS

返回所有的值,没有key

你可能感兴趣的:(redis学习笔记)