Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($backend=null) | |
__destruct () | |
setMemoryLimit ($newLimit) | |
getMemoryLimit () | |
setMinSize ($newSize) | |
getMinSize () | |
create ($value='') | |
createLocked ($value='') | |
unlink (Zend_Memory_Container_Movable $container, $id) | |
processUpdate (Zend_Memory_Container_Movable $container, $id) | |
load (Zend_Memory_Container_Movable $container, $id) | |
Definition at line 44 of file Manager.php.
__construct | ( | $backend = null | ) |
Memory manager constructor
If backend is not specified, then memory objects are never swapped
Zend_Cache_Backend | $backend | |
array | $backendOptions | associative array of options for the corresponding backend constructor |
Definition at line 161 of file Manager.php.
__destruct | ( | ) |
create | ( | $value = '' | ) |
Create new Zend_Memory value container
string | $value |
Zend_Memory_Exception |
Definition at line 254 of file Manager.php.
createLocked | ( | $value = '' | ) |
Create new Zend_Memory value container, which has value always locked in memory
string | $value |
Zend_Memory_Exception |
Definition at line 267 of file Manager.php.
getMemoryLimit | ( | ) |
getMinSize | ( | ) |
Get minimum size of values, which may be swapped
Definition at line 242 of file Manager.php.
load | ( | Zend_Memory_Container_Movable | $container, |
$id | |||
) |
processUpdate | ( | Zend_Memory_Container_Movable | $container, |
$id | |||
) |
Process value update
This method is automatically invoked by memory container only once per "modification session", but user may call memory container touch() method several times depending on used algorithm. So we have to use this check to optimize this case.
Definition at line 334 of file Manager.php.
setMemoryLimit | ( | $newLimit | ) |
Set memory grow limit
integer | $newLimit |
Zend_Exception |
Definition at line 210 of file Manager.php.
setMinSize | ( | $newSize | ) |
Set minimum size of values, which may be swapped
integer | $newSize |
Definition at line 232 of file Manager.php.
unlink | ( | Zend_Memory_Container_Movable | $container, |
$id | |||
) |
Unlink value container from memory manager
Used by Memory container destroy() method
Definition at line 310 of file Manager.php.