Thanks to zmalloc Redis can implement maxmemory easily, you can do
something like:
while (used_memory() > configured_max_memory) {
evict_smoe_object();
}
There are no other ways to do this, there is even a lack of
platform-specific non portable ways.
Cheers,
Salvatore
> --
> 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.
>
--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele