2010年1月28日星期四

[fw-mvc] zend_registry or zend_cache_manager

hi all developers ;)


$cache = Zend_Cache::factory('Core','File',$frontend,$backend);

1:


$manager = new Zend_Cache_Manager;
$manager->setCache('appcache', $cache);


2:

Zend_Registry::set ( 'cache', $cache );

------------------------------------------------------------------------

which one is better for storing the $cache object ...   ?

for better performance and better memory usage and etc...

--
________________
Sincerely
Sina Miandashti
MuSicBasE.ir & InvisionPower.ir Admin

没有评论: