How combine data from Redis? -



How combine data from Redis? -

i utilize sorted sets type in redis. each user adds event redis score - current timestamp , key: user:id_user

how can 10 latest events redis store sorted score(timestamp)? there function zrevrangebyscore, if utilize it, problem, because not every user have events @ lastly time score.

edited: example, want merge sorted keys score(timestamp) , selecting latest info lastly 4 hours each users.

problem is, if user did not post info in redis in interval(4 hours) not show nil user. need select latest info sorted timestamp each user. maybe utilize function?

redis node-redis

Comments