I am trying to figure out how add multiple items to zset via the phpredis zadd method. Something like the following
ZADD myzset 2 "two" 3 "three"
I am trying to figure out how add multiple items to zset via the phpredis zadd method. Something like the following
ZADD myzset 2 "two" 3 "three"
According to the documentation, you can pass the pairs of score/value.
$redis->zAdd('myzset', 2, 'two', 3, 'three');