Add support for Zend Cache backend

lyricnz - May 15, 2009 - 10:52
Project:Cache Router
Version:6.x-1.0-rc1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

See http://files.zend.com/help/Zend-Server-Community-Edition/zenddatacache.html for documentation on the API.

#1

lyricnz - September 7, 2009 - 15:43

Quick research indicates that this would probably be identical to the APC engine, apart from:

apc_fetch($key) ==> zend_shm_cache_fetch($key)
apc_store($key, $cache, $expire) ==> zend_shm_cache_store($key, $cache, $expire)
apc_delete($key) ==> zend_shm_cache_delete($key)

and the "function_exists('apc_add'))" in lock().

I suppose some of flush() might be able to be replaced with zend_shm_cache_clear() too. I haven't tried this, but Zend also has a "zend_datacache.apc_compatibility" which makes some APC compatible methods available - which I suppose would work too.

#2

lyricnz - September 7, 2009 - 15:42
Version:7.x-1.x-dev» 6.x-1.0-rc1

I can provide a patch if you want.

#3

andypost - October 11, 2009 - 20:15

+1 I've tested zend-ce and wondered it's performance.

Another idea is using it's namespace parameter for bins!

#4

najibx - December 2, 2009 - 13:30

i use Zend-Server-Community-Edition for local dev/demo on window. would be helpful is supported :-)

 
 

Drupal is a registered trademark of Dries Buytaert.