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_MongoDb Component Proposal

Proposed Component Name Zend_Cache_Backend_MongoDb
Developer Notes
Proposers Robert Allen
Zend Liaison TBD
Revision 1.0 - 1 March 2012: Initial Draft. (wiki revision: 7)

Table of Contents

1. Overview

Zend_Cache_Backend_MongoDb is an extended Cache Backend supporting tags, automatic_cleaning, expire_read, infinite_lifetime and get_list functionality. By taking advantage of the speed, reliability and distributed features of MongoDb it is possible to employ advanced caching features in complex and fragmented environments.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will employ MongoDb as a storage engine for cached records.
  • This component will support access via Zend_Cache_Manager
  • This component will allow explicit declaration of the MongoDb object.
  • This component will include a factory method.
  • This component will support tagging.
  • This component will automatic cleaning.
  • This component will support infinite lifetime.
  • This component will support tag and ID listing.
  • This component will not support priority.

4. Dependencies on Other Framework Components

  • MongoDb pecl extension
  • Zend_Cache_Backend_ExtendedInterface
  • Zend_Cache_Backend

5. Theory of Operation

This adapter functions in a similar manner as the sqlite backend; however by employing MongoDb as the storage engine we are no longer restricted to the file sytem and gain the benefits of replication and high availability in clustered/load-balanced environments.

6. Milestones / Tasks

  • Milestone 1: [DONE] Develop the cache backend class.
  • Milestone 2: [DONE] Develop and pass unit tests.
  • Milestone 3: Incorporate feedback and change sets from review.
  • Milestone 4: Write Documentation.

7. Class Index

  • Zend_Cache_Backend_MongoDb
  • MongoDb
  • MongoCollection

8. Use Cases


9. Class Skeletons



zend_cache zend_cache Delete
mongodb mongodb Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.