2010年1月28日星期四

Re: [fw-mvc] Re: [fw-general] Bootstrap Resource usage in model - best practice advice please

> And yes, there should be no more than one cache instance (at least 1 backend for cache).

Have a look at

[x] Zend_Cache_Manager

and the accompanied

[x] Zend_Application_Resource_Cachemanager

that you can use for bootstrapping multiple caches via

[x] application.ini

and

[x] Zend_Controller_Action_Helper_Cache

which you can use in your controllers to access caches (or, use
Zend_Cache_Manager::hasCache() and Zend_Cache_Manager::getCache()).
- as it does what you need. And I, of course.


Best regards,

Andreas

没有评论: