ZF-6468: "BlackHole" cache backend

Issue Type: Improvement Created: 2009-04-29T03:50:58.000+0000 Last Updated: 2009-12-22T02:24:14.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Ilya Gruzinov (shagren) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Cache

Related issues: - ZF-2705

Attachments: - BlackHole.php


Sometimes developers want temporary disable caching. The easiest way is switch backend to some other. I propose include new backend with name "BlackHole". It is always return true for storing data, false when loading/test data, and empty array for searching by tags, etc... It implement Extended interface for more compatibility.

NB: 'caching=false' option is not equal this backend, i.e. you can use this backend as part of Two_Levels backends.


Posted by Ilya Gruzinov (shagren) on 2009-04-29T03:51:57.000+0000

BlackHole backend.

Posted by julien PAULI (doctorrock83) on 2009-04-30T01:08:23.000+0000

Yeah, a Null backend could be cool for testing purposes

Posted by Fabien MARTY (fab) on 2009-07-17T11:03:40.000+0000

change Assignee because I'm inactive now

Posted by Satoru Yoshida (satoruyoshida) on 2009-08-31T04:31:51.000+0000

Probabry, I think the method getFillingPercentage() should return integer zero instead of array() .

Posted by Ilya Gruzinov (shagren) on 2009-09-01T06:48:25.000+0000

Yes, you are right

Posted by Satoru Yoshida (satoruyoshida) on 2009-09-01T14:49:30.000+0000

Thanks comment, Ilya ;-)

Posted by Satoru Yoshida (satoruyoshida) on 2009-12-21T18:25:38.000+0000

It would be released in 1.10 . Plz try and report ;-)

Posted by Ilya Gruzinov (shagren) on 2009-12-22T02:24:14.000+0000

with current trunk - my application works good. But some slow now ;)

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.