redis能存多少个key

互联网 19-6-5
Redis 是一个高性能的key-value数据库。 redis的出现,很大程度补偿了memcached这类key/value存储的不足,在部 分场合可以对关系数据库起到很好的补充作用。它提供了Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erlang等客户端,使用很方便。

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.

推荐手册:Redis命令操作中文手册

不同的数据类型存储量会有差异:

原文地址:https://redis.io/topics/data-types

相关文章推荐:1.redis一个实例能存多少个key 2.redis判断key是否存在 相关视频推荐:1.燕十八redis视频教程

以上就是redis能存多少个key的详细内容,更多内容请关注技术你好其它相关文章!

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
标签: redis
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:redis有多少种锁

相关资讯