Zend Framework

"BlackHole" cache backend

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Cache
  • Labels:
    None

Description

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.

Issue Links

Activity

Hide
Ilya Gruzinov added a comment -

BlackHole backend.

Show
Ilya Gruzinov added a comment - BlackHole backend.
Hide
julien PAULI added a comment -

Yeah, a Null backend could be cool for testing purposes

Show
julien PAULI added a comment - Yeah, a Null backend could be cool for testing purposes
Hide
Fabien MARTY added a comment -

change Assignee because I'm inactive now

Show
Fabien MARTY added a comment - change Assignee because I'm inactive now
Hide
Satoru Yoshida added a comment -

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

Show
Satoru Yoshida added a comment - Probabry, I think the method getFillingPercentage() should return integer zero instead of array() .
Hide
Ilya Gruzinov added a comment -

Yes, you are right

Show
Ilya Gruzinov added a comment - Yes, you are right
Hide
Satoru Yoshida added a comment -

Thanks comment, Ilya

Show
Satoru Yoshida added a comment - Thanks comment, Ilya
Hide
Satoru Yoshida added a comment -

It would be released in 1.10 . Plz try and report

Show
Satoru Yoshida added a comment - It would be released in 1.10 . Plz try and report
Hide
Ilya Gruzinov added a comment -

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

Show
Ilya Gruzinov added a comment - with current trunk - my application works good. But some slow now

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: