undefinedfix
Sign in

The zrevrangebyscore method of phpredis does not return a value if it does not take the 'WithCores' = > true parameter

AsmaTalukder edited in Fri, 19 Aug 2022

The zrevrangebyscore method of phpredis does not have a return value if it takes the 'WithCores' = > true parameter. Just remove it

$redis->zRangeByScore('key', 0, 3, ['withscores' => TRUE, 'limit' => [1, 1]]); 

Do you know why?

2 Replies
Saibiou
commented on Fri, 19 Aug 2022

There are some bugs in phpredis. You can only store user ID and then store other information in the cache

Braden
commented on Fri, 19 Aug 2022

Encountered the same problem, looking for a long time did not solve

lock This question has been locked and the reply function has been disabled.