You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cause zScore is faster than zRank. But it doesnt work, cause if element doesn't exists, $ret table dosent have any information. (no false, just no entry).
The text was updated successfully, but these errors were encountered:
I have added a unit test for your case and have found no issue. If you look at the changes in commit 00b5784 and print the contents of $ret after the call to exec(), you will see the last entry is false, as expected.
Hi,
i have code in which i want to determine if n elements are in Sorted Set.
I can do:
$pipeline = $redis->multi( Redis::PIPELINE );
foreach( $target_keys as $id )
{
$pipeline->zRank( 'set' , $id );
}
$ret = $pipeline->exec();
and then check if false was returned. But i prefer to make:
$pipeline = $redis->multi( Redis::PIPELINE );
foreach( $target_keys as $id )
{
$pipeline->zScore( 'set' , $id );
}
$ret = $pipeline->exec();
cause zScore is faster than zRank. But it doesnt work, cause if element doesn't exists, $ret table dosent have any information. (no false, just no entry).
The text was updated successfully, but these errors were encountered: