Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Cache_Backend_Redis Component Proposal

Proposed Component Name Zend_Cache_Backend_Redis
Developer Notes
Proposers Rostyslav Mykhajliw
Zend Liaison
Revision 1.0 - 32 December 2010: Beta specification. (wiki revision: 10)

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


... (see good use cases book)

9. Class Skeletons



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 04, 2011

    <p>Please note that the cache component will be completely re-factored.<br />
    Please take a look at:
    <a class="external-link" href=""></a></p>

  2. Aug 09, 2011

    <p>What is the status of Redis in ZF2? This backend is fast.</p>

  3. Oct 12, 2011

    <p>Why on earth would you not support tags with this backend?! Using Redis' excellent data structures makes tagging is easy and fast.</p>

    <p>I've implemented a Redis backend that supports tagging and passes all unit tests (and adds some additional unit tests) for ZF 1.x.
    <a class="external-link" href=""></a></p>

    <p>A future version will use pipelining and possibly transactions (if there is no performance hit).</p>