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.
我试图弄清楚如何通过 phpredis zadd 方法向 zset 添加多个项目。类似于以下内容
ZADD myzset 2 "two" 3 "three"
根据文档,您可以传递分数/值对。
$redis->zAdd('myzset', 2, 'two', 3, 'three');