我在redis上存储了以下类型的数据
{"
{"userId":"00001","userName":"You","xp":0,"type":"element","honor":500, "position":2}":"2",
"{"userId":"00002", "userName":"Another","xp":0,"type","honor":500,"position":1}":"1"
}
所以我需要通过userId检索分数(或位置值)(Ej:userId:00001必须返回1)
我尝试过使用 zscore(类似于 rank:userId (id)),但这不起作用。
我在谷歌上搜索过,但我只找到了简单(分数:值)对的例子