[dev] [cvs] commit: framework/Cache Cache.php framework/Cache/Cache apc.php eaccelerator.php memcache.php xcache.php zps4.php

Michael M Slusarz slusarz at horde.org
Fri Mar 9 08:36:59 UTC 2007


Quoting duck <duck at obala.net>:

> Please leave
>
> $this->_setExpire($key, $lifetime);
>
> before cache retrieval for apc, eaccellerator, xcache and mamcache.
> They set the TTL when the cache entry is set when is retrieved.
> The _setExpire is a trick for this.

I guess I am confused.  _setExpire() *is* called before we retrieve  
the cache (See get()).  I didn't change this.

> Then in memachced we need to trick the cache key ($key = $this->_prefix
> . $key;).
> Memcached is a standalone deamon not aware of the host. So we must
> prefix the key otherwise we are will access the cached data on different
> host.

This wasn't changed either.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list