Note that you can only group string values in a hash.
Cheers,
Pieter
On Wed, Feb 9, 2011 at 6:41 PM, Tute <tute....@gmail.com> wrote:
> What is less expensive to Redis to have? A big hash or a lot of keys ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.
>
>
If you're worried about some type of timer or garbage collector, it
isn't a big deal. From <http://redis.io/topics/expire>:
Enhanced Lazy Expiration algorithm
Redis does not constantly monitor keys that are going to be
expired. Keys are expired simply when some client tries to access a
key, and the key is found to be timed out.
Of course this is not enough as there are expired keys that will
never be accessed again. This keys should be expired anyway, so
once every second Redis test a few keys at random among keys with
an expire set. All the keys that are already expired are deleted
from the keyspace.
-j
--
Jay A. Kreibich < J A Y @ K R E I B I.C H >
"Intelligence is like underwear: it is important that you have it,
but showing it to the wrong people has the tendency to make them
feel uncomfortable." -- Angela Johnson
Cheers,
Pieter