一个redis的db最大能存多少个key?

一个redis的DB能存储多少条key。
string类型的。

clipboard.png

阅读 29.6k
1 个回答

官方说单例能处理key:2.5亿个,参考链接:https://redis.io/topics/faq,以下是原话:

What is the maximum number of keys a single Redis instance can hold? and what 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.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题