每个数据库都有属于自己的空间,不必担心之间的key冲突。
不同的数据库下,相同的key取到各自的值。
redis一个实例能存多少个key?
官方说单例能处理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.
一个key或是value大小最大是512M
以上就是redis一个实例能存多少个key的详细内容,更多请关注Gxl网其它相关文章!
查看更多关于redis一个实例能存多少个key的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did77999