[dev] Horde_Cache_Memcache potential problem?
Duck
duck at obala.net
Fri Jan 13 07:41:04 PST 2006
On Friday 13 January 2006 15:28, Didi Rieder wrote:
> If I was thinking right about this (please correct me if I'm wrong),
> it would be nice to have a more intelligent garbage collection.
You can't.
The only way to do GC is to flush the server or to delete all connected keys.
But memcache don't provide a list of existing keys so, the only way it would
be to write down a cache key list. Which is a wastefull operation, not good
for a cache system.
I suggest you to run a separate memcache demon a another port or to disable
GC. Since memcache would automatically delete old entries as the memory runs
out.
Duck
More information about the dev
mailing list