Zend_Cache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Zend_Cache

Post by shiznatix »

Hello all. I am trying to use the new Zend_Cache to cache a class but am having troubles. Basically I have this:

Code: Select all

 
$cache = Zend_Cache::factory('Class', 'File', array('cached_entity' => Singleton::getObject('Usermap')));
 
but this dies with the exception: "Incorrect option name : cached_entity"
now ok maybe I am putting it in the wrong place or whatever so I try this:

Code: Select all

 
$cache = Zend_Cache::factory('Class', 'File');
 
and that dies saying that I am missing the required cached_entity. Zargs I say! I tried everything, read the manual like 100 times but no answers anywhere. Can someone shed some light on this?
Post Reply