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.
我正在使用 Predis 连接到 Reddis 服务器,并尝试使用 ZINCRBY。rawcommand 显然不再受支持,我无法让以下工作:
$cmdSet = $redis->createCommand('ZINCRBY'); $foo = array($stemwijzerid, $answernumber.'-'.$answer); $cmdSet->setArguments($foo); $cmdSetReply = $redis->executeCommand($cmdSet);
您是否尝试过简单地使用zincrby:
$redis->zincrby('myzset', 2. "one")