redis 配置:
hash-max-ziplist-value 64 #字符串长度都小于64字节
hash-max-ziplist-entries 512 #元素数量小于512
验证 hash-max-ziplist-value 64

根据以上可以看出 hash-max-ziplist-value 这个对filed 有影响。对key和value 无影响
filed 512 个元素:
db4a15af911e97f69235c1f8f1659fee



filed 513个元素
39a42c71f7afb373aa0e1ed8a7efff0d


本文深入探讨了Redis的hash-max-ziplist-value和hash-max-ziplist-entries配置项,解释了这些参数如何影响字段的存储效率,特别是在字符串长度和元素数量方面的限制。
853

被折叠的 条评论
为什么被折叠?



