Zend Framework: Zend_Cache best-fit mode Component Proposal
| Proposed Component Name | Zend_Cache best-fit mode |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_Cache best-fit mode |
| Proposers | Stanislav Malyshev |
| Revision | 1.0 - 8 November 2007: Proposal initiated. (wiki revision: 7) |
Table of Contents
1. Overview
The proposal is to provide an imporvement for Zend_Cache that will allow it to adapt to different environments without having the developer repeatedly code for it.
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
- This improvement will allow Zend_Cache to choose best available backend from a set of suitable backends.
- The backend will be able to tell the Zend_Cache main class if it is possible to instantiate this driver
- The backend availability may also depend on the configuration
4. Dependencies on Other Framework Components
- Zend_Cache
5. Theory of Operation
The cache factory would check all backends in user-defined order and will try to find best one that is available basing on the system environment and configuration. The backends will provide the information about the availability. Then the cache factory would instantiate the best available backend.
6. Milestones / Tasks
- Milestone 1 - proposal acceptance
- Milestone 2 - create and commit the actual code
7. Class Index
- Zend_Cache
- Zend_Cache_Backend
8. Use Cases
| UC-01 |
|---|
Choose best available:
| UC-02 |
|---|
Choose best available with options:
ZF Home Page
Code Browser
Wiki Dashboard