码上敲享录 > redis数据库常见问题 > redis最多能存多少个key键,每个值能存储多少个元素?

redis最多能存多少个key键,每个值能存储多少个元素?

上一章章节目录下一章 2019-12-27已有6753人阅读 评论(0)

redis最多能存多少个key键,每个值能存储多少个元素?


解决方法:

What is the maximum number of keys a single Redis instance can hold? and what is the max number of elements in a Hash, List, Set, Sorted Set?

Redis can handle up to 2^32 keys, and was tested in practice to handle at least 250 million keys per instance.

Every hash, list, set, and sorted set, can hold 2^32 elements.

In other words your limit is likely the available memory in your system.


从官网中找到了答案,可见一个单实例的redis最多能支持2^32个键,差不多就是2.5亿个,每个key中的值也是可以存 2^32行数据,所以服务器的内存才是我们所担心的。

13

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交