Zend Framework: Zend_Cache_Backend_Redis Component Proposal
| Proposed Component Name | Zend_Cache_Backend_Redis |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_Cache_Backend_Redis |
| Proposers | Rostyslav Mykhajliw |
| Zend Liaison | http://github.com/necromant2005/zeus-redis |
| Revision | 1.0 - 32 December 2010: Beta specification. (wiki revision: 9) |
Table of Contents
1. Overview
Zend_Cache_Backend_Redis is a simple backend for Zend\Cache in Redis.
GitHup sources
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
Currently we've got standard adapter for Redis
- This component will provide interface to Redis.
- This component will use Redis as Zend\Cache\Backend.
- This component will allow get/put/delete operations in Redis.
- This component will not support tags in Zend\Cache.
4. Dependencies on Other Framework Components
- Zend\Exception
- Zend\Cache\Backend\AbstractBackend
5. Theory of Operation
The primary goal of this component is realize Zend\Cache\Backend\AbstractBackend interface for Redis and allow use it natively from Zend Framework, also integrate into Zend\Cache\Cache factory method
- auto serialization/unserialization data
- allow put data by key
- allow get data by key
- allow delete data by key
- infinite lifetime support
6. Milestones / Tasks
- Milestone 1: [DONE] Create a base operation get/set/delete
- Milestone 2: [DONE] Realize interface Zend\Cache\Backend\AbstractBackend
- Milestone 3: Write a stable documentation.
7. Class Index
- Zend\Cache\Backend\Redis
8. Use Cases
| UC-01 |
|---|
... (see good use cases book)
9. Class Skeletons
Labels:
None
3 Comments
comments.show.hideJan 04, 2011
Marc Bennewitz (private)
Please note that the cache component will be completely re-factored.
Please take a look at: http://framework.zend.com/wiki/display/ZFPROP/Zend+Cache+2.0+-+Marc+Bennewitz
Aug 09, 2011
Benoît Durand
What is the status of Redis in ZF2? This backend is fast.
Oct 12, 2011
Colin Mollenhour
Why on earth would you not support tags with this backend?! Using Redis' excellent data structures makes tagging is easy and fast.
I've implemented a Redis backend that supports tagging and passes all unit tests (and adds some additional unit tests) for ZF 1.x. https://github.com/colinmollenhour/Zend_Cache_Backend_Redis
A future version will use pipelining and possibly transactions (if there is no performance hit).