【发布时间】:2019-05-24 00:04:16
【问题描述】:
我有 3 种类型的值。
Type1 - In millions
Type2 - In hundreds
Type3 - In tens
对于每个type1,所有type2都应该被type3处理。
我可以使用集合。
Type1#Type3 = {Type2 values}
或者
Type1#Type2 = {Type3 values}
如果我将 Type3 保留为 key,则 set 占用的内存更多。
或者有没有更好的方法来存储这种类型的数据?
我评估了占用比设置更多内存的哈希。我使用 ziplist 压缩来评估哈希。
有什么建议吗?
【问题讨论】:
标签: redis