View Source

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFDEV:Zend Proposal Zone Template}

{zone-data:component-name}
Zend_Cache backend for eAccelerator
{zone-data}

{zone-data:proposer-list}
[Federico Cargnelutti|mailto:fedecarg@gmail.com]
{zone-data}

{zone-data:revision}
1.0 - 16 August 2008: Initial Proposal.
{zone-data}

{zone-data:overview}
The eAccelerator backend for Zend_Cache would allow developers to use eAccelerator content caching capabilities with Zend_Cache class.
{zone-data}

{zone-data:references}
* [eAccelerator project|http://www.eaccelerator.net/]
{zone-data}

{zone-data:requirements}
* This backend would allow to store and retrieve data in the eAccelerator shared memory.
{zone-data}

{zone-data:dependencies}
* Zend_Cache_Backend
* Zend_Cache_Backend_Interface
{zone-data}

{zone-data:operation}
The backend will use eAccelerator functions eaccelerator_get, eaccelerator_put and eaccelerator_rm to retrieve, store and delete information from the cache.
{zone-data}

{zone-data:class-list}
* Zend_Cache_Backend_Eaccelerator
{zone-data}

{zone-data:use-cases}
||UC-01||
{code}
// use case
{code}
{zone-data}
{zone-data:milestones}
* Write proposal
* Gather feedback
* Review by the Zend team
* Develop full implementation and unit tests
* Documentation

{zone-data}
{zone-data:skeletons}
{code}
class Zend_Cache_Backend_Eaccelerator extends Zend_Cache_Backend implements Zend_Cache_Backend_Interface
{
public function __construct($options = array())
{}

public function load($id, $doNotTestCacheValidity = false)
{}

public function test($id)
{}

public function save($data, $id, $tags = array(), $specificLifetime = false)
{}

public function remove($id)
{}

public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array())
{}
}
{code}
{zone-data}

{zone-template-instance}]]></ac:plain-text-body></ac:macro>