Redis zscore zadd uri wrong score
I'm currently working on assigning groups to a special URL, with their groupId as score.
create group-url:
$this->cache->redis->zadd("group_route",$groupId,$groupUrl);
search if it is a group-url, and get the group:
function isCostumUrl($groupUrl) {
$group = $this->cache->redis->zrank("group_route",$groupUrl);
if ($group) {
return $group;
} else {
return false;
}
}
Problem My problem is that somehow the result-groupid is wrong. I am searching for katt, that has id 4, but it reply with 3 which actually belongs to group-url fisk.
How can I actually make it return the right result?
