You can create new a memory manager
Zend_Memory_Manager object) using the
Zend_Memory::factory($backendName [, $backendOprions])
The first argument
$backendName is a string that
names one of the backend implementations supported by
The second argument
$backendOptions is an optional
backend options array.
$backendOptions = array(
'cache_dir' => './tmp/' // Directory where to put the swapped memory blocks
$memoryManager = Zend_Memory::factory('File', $backendOptions);
Zend_Cache backends as
You may use the special name 'None' as a backend name,
in addition to standard
$memoryManager = Zend_Memory::factory('None');
If you use 'None' as the backend name, then the memory manager never swaps memory blocks. This is useful if you know that memory is not limited or the overall size of objects never reaches the memory limit.
The 'None' backend doesn't need any option specified.