--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Itamar Haber | Chief Developers Advocate
Redis Watch Newsletter - Curator and Janitor
Redis Labs - Enterprise-Class Redis for Developers
Mobile: +1 (415) 688 2443
Mobile (IL): +972 (54) 567 9692
Email: ita...@redislabs.com
Skype: itamar.haber
Thanks a lot for your response.I'm using the Session Hash because I am maintaining another relation between IPAddress and the sessionIDs that are supported by that device. So dont want to use that long sessionID (be90839090..) everywhere.Just for example:hmset Session:1 .. . . IPAddress 192.168.1.1 .....sadd 192.168.1.1 Session:1 Session:3 ...
And, say I am using sorted sets with session ID as the member and the recvdTime as the score.Is manually looking up this set by order (from earliest session), finding whether the session has expired and then removing the hashset a costly operation?
How does this compare with using a DB and making a query like "Remove session from Sessions where (currentTime - session.recvdTime) > a value"