Page 1 of 1

Zend_Cache

Posted: Tue Oct 07, 2008 5:44 am
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?