Zend Framework

How to instatiate the ZendServer cache backends

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.9.2
  • Component/s: Zend_Cache
  • Labels:
    None

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

Activity

Hide
Fabien MARTY added a comment -

change Assignee because I'm inactive now

Show
Fabien MARTY added a comment - change Assignee because I'm inactive now
Hide
Satoru Yoshida added a comment -

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 .

Show
Satoru Yoshida added a comment - 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 .
Hide
Satoru Yoshida added a comment -

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.

Show
Satoru Yoshida added a comment - 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.
Hide
Satoru Yoshida added a comment -

Add description to manual at SVN r17742 . This issue could be solved without code change.nor class moving.

Show
Satoru Yoshida added a comment - Add description to manual at SVN r17742 . This issue could be solved without code change.nor class moving.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: