Redis哈希(Hash)

Redis Hash是一个string类型的field和value的映射表,hash特别适合用于存储对象

Redis中每个hash可以存储2^32 - 1键值对(40多亿)

实例

127.0.0.1:6379> HMSETchisjMap name "redis tutorial" description "redis basic commandsfor caching"

OK

127.0.0.1:6379>HGETALL chisjMap

1)"name"

2) "redistutorial"

3)"description"

4)"redis basic commands for caching"

127.0.0.1:6379>

Redis hash命令

【Redis】----Redis哈希(Hash)

【Redis】----Redis哈希(Hash)

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-12-18
  • 2022-01-06
  • 2021-06-01
猜你喜欢
  • 2022-01-08
  • 2022-01-04
  • 2022-12-23
  • 2021-11-28
  • 2021-07-20
  • 2021-12-05
相关资源
相似解决方案