Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将键值对存储在 memcached 中,其中许多值具有相同的键,从而导致相同的对。现在,我想要每个键的值的组合列表。我无法完成这项工作。我们可以在 memcached 中创建一个 Hashmap 吗?还是键值对列表?参考哪个我可以单独检索值?
你总是可以为一个键存储一个列表(逗号分隔等),然后检索它,分解它......例如,php 的 serialize/unserialize() 是从 memcache 检索通用对象的好方法。