-1

In bootstrap I am registering cache obj

$cache = Zend_Cache::factory('Core','File',$frontendOptions,$backendOptions);
Zend_Registry::set('cache',$cache);

When I try to retrieve in model class ,It return the object but I am not able to get the list of function related to cache in my IDE.I was thinking atleast public method will get listed..

$this->_cache->load return false !

can you please help whats could possibly be wrong?.

Regards

user269867
  • 3,266
  • 9
  • 45
  • 65

1 Answers1

0

What is it?

$this->_cache->load return false !

You can retrieve registry element from Model like this:

$cache = Zend_Registry::get('cache');
Alex Pliutau
  • 21,392
  • 27
  • 113
  • 143
  • $this->_cache = Zend_registry::get('cache'); _cache is class variable in my class So when I use $this->_cache->load('key') it doesn't return anything – user269867 Sep 18 '12 at 07:23
  • Please provide more info: how you set cache value, backend and frontend options. – Alex Pliutau Sep 18 '12 at 08:04