Hi,

A similar proposal is under review in the issue tracker :
http://framework.zend.com/issues/browse/ZF-457

You can add comments :-)

Regards


2006/11/30, Matthew Ratzloff <[EMAIL PROTECTED]>:
> I've played around with Zend_Cache and I found out that Zend_Cache only
> supports some kind of 'general lifetime'.
>
> In real enviroments there is a need for cache-record based ttl's. E.g.
> we're caching some database queries that almost never need to be updated
> ( so I would set TTL to e.g. 24 hours). Some other queries should only
> be cached a couple of minutes or even seconds.

I strongly agree with this.  A global lifetime is insufficient for the
kinds of things I do, and creating multiple caching objects seems
superfluous.  I can see a 'cache_id_uts'-type file naming standard for a
file backend.

I would prefer the ability to do something like the following:

$cache->save($object, 'object', 120);

A global lifetime could still be set, but it would only be a default value.

-Matt




--
Fabien MARTY
[EMAIL PROTECTED]

Reply via email to