ZF-3490: Throw an exception for exceeding lifetimes

Issue Type: Improvement Created: 2008-06-21T14:18:56.000+0000 Last Updated: 2008-09-02T10:38:55.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Pieter Kokx (kokx) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments:


For the memcached backend, there is a lifetime limit of 30 days (2592000 seconds). Memcached will not store cache entries that have a lifetime longer than that, but the backend doesn't throw any error. So, the memcached backend should throw an exception if the lifetime exceeds 2592000 seconds, so debugging on this issue is much easier.


Posted by Fabien MARTY (fab) on 2008-06-22T03:14:02.000+0000

an exception could be see as an API break

so a warning in log is probably a good compromise, isn't it ?

Posted by Pieter Kokx (kokx) on 2008-06-22T03:32:05.000+0000

It is a lot better than giving a lifetime of a year that is not working while you don't know why, and yes, the log is a good compromise.

Posted by Fabien MARTY (fab) on 2008-07-05T06:00:09.000+0000

fixed in SVN trunk (thanks)

Posted by Wil Sinclair (wil) on 2008-09-02T10:38:55.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.