一個key或是value大小最大是512M,這已經算大了的。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行資料,所以伺服器的記憶體才是我們所擔心的。
一個key或是value大小最大是512M,這已經算大了的。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行資料,所以伺服器的記憶體才是我們所擔心的。