2024-07-04 02:55:55
A hash with a few fields (where few means up to one hundred or so) is stored in a way that takes very little space, so you can store millions of objects in a small Redis instance.
While Hashes are used mainly to represent objects, they are capable of storing many elements, so you can use Hashes for many other tasks as well.
Every hash can store up to 2^32 - 1 field-value pairs (more than 4 billion).
摘自Redis官网的Data type章节,意思是内存允许的情况下,可以存超过40亿数据。
2024-07-04 10:38:55