ZF-7172: How to instatiate the ZendServer cache backends
Description
There is no description in the docs how to instatiate the ZendServer cache backends
This wont work:
$cache = Zend_Cache::factory('Core',
'ZendServer_ShMem',
$frontendOptions,
$backendOptions
);
The problem is the name normalize function.
The 6. parameter has to be true and the name have to be full written.
$cache = Zend_Cache::factory('Core',
'Zend_Cache_Backend_ZendServer_ShMem',
$frontendOptions,
$backendOptions,
false,
true
);
May it will be better the two backends move from backend/ZendServer/ to /backend/ and move the abstract class ZendServer to backend/ZendServer
Comments
Posted by Fabien MARTY (fab) on 2009-07-17T11:03:32.000+0000
change Assignee because I'm inactive now
Posted by Satoru Yoshida (satoruyoshida) on 2009-08-19T06:31:04.000+0000
I think there are 3 problems.
1) $standardBackends in Zend/Cache.php has no entry for the Zend Server backends.
2) The factory parameter.may be not ZendServer_ShMem, but Zend Server_ShMem (or may be Zend_Server_ShMem).
3) We can not find detail about using the Zend Server backends .
Posted by Satoru Yoshida (satoruyoshida) on 2009-08-21T09:41:43.000+0000
I would vote the comment of vincent. "the two backends move from backend/ZendServer/ to /backend/".
If we would move the 2 class to /backend/ZendServerDisk.php and /backend/ZendServerShmem.php, they could work more easy.
Posted by Satoru Yoshida (satoruyoshida) on 2009-08-21T21:59:10.000+0000
Add description to manual at SVN r17742 . This issue could be solved without code change.nor class moving.