https://redis.io/docs/latest/develop/data-types/strings/
社区版支持:
String,字符串
Hash,key-value格式
List,根据插入顺序排序
Set,集合
Sorted set,有排序
Stream,
Bitmap,
Bitfield,
Geospatial,
JSON,扩展字段
Redis keys are strings
SET will replace any existing value already stored into the key,
Values can be strings (including binary data) of every kind, for instance you can store a jpeg image inside a value. A value can’t be bigger than 512 MB.
使用String作为计数器
JSON嵌套深度128限制.
JSON只有在下面两种模式是支持的
Redis Stack:Redis的一种部署方式,集成了多个Redis模块。Redis Enterprise:Redis的企业版,提供更多高级功能和支持。
List来实现栈和队列
Every hash can store up to 4,294,967,295 (2^32 - 1) field-value pairs. In practice, your hashes are limited only by the overall memory on the VMs hosting your Redis deployment.
sorted set
Leaderboards, rate limiter
trivial return ravers