ZF-8991: Zend_Cache_Backend_Memory


Would be great to have a backend cache component, which will hold information in static variable, in memory.

This is the implementation, which could be used "as is" or with some corrections: http://code.google.com/p/fazend/…


This looks like Zend_Registry.

Right, but Zend_Registry doesn't implement Zend_Cache_Backend_Interface, and thus can't be used in caching.

Desired use case:

$cache = Zend_Cache::factory( 'Core', new Zend_Cache_Backend_Memory(), ); Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);

This is planned on refactoring and named Zend_Cache_Backend_Array

This issue is now fixed in ZF2-136

I removed the flag to be fixed in ZF2 to feel free implementing it for ZF1.