__construct()
__destruct()
create()
createLocked()
getMemoryLimit()
getMinSize()
setMemoryLimit()
setMinSize()
_commit()
_create()
_generateMemManagerId()
_swap()
_swapCheck()
$cache
$lastModified
$managerId
$memoryLimit
$memorySize
$minSize
$nextId
$sizes
$unloadCandidates
Memory manager
This class encapsulates memory menagement operations, when PHP works in limited memory mode.
__construct(\Zend\Cache\Storage\StorageInterface $cache)
If cache is not specified, then memory objects are never swapped
__destruct()
Clean up cache storage
create(string $value) : \Zend\Memory\Container\ContainerInterface
createLocked(string $value) : \Zend\Memory\Container\ContainerInterface
getMemoryLimit() : integer
integer
getMinSize() : integer
integer
setMemoryLimit(integer $newLimit)
integer
setMinSize(integer $newSize)
integer
_commit()
_create(string $value, bool $locked) : \Zend\Memory\Container\ContainerInterface
_generateMemManagerId()
_swap(\Zend\Memory\Container\Movable $container, integer $id)
$lastModified : \Zend\Memory\Container\Movable
It's used to reduce number of calls necessary to trace objects' modifications Modification is not processed by memory manager until we do not switch to another object. So we have to trace only first object modification and do nothing for others
$managerId : integer
$memoryLimit : integer
Default value is 2/3 of memory_limit php.ini variable Negative value means no limit
$memorySize : integer
$minSize : integer
Default value is 16K Negative value means that memory objects are never swapped
$nextId : integer
$sizes : array
This list is used to calculate modification of object sizes
array(
$unloadCandidates : array
It also represents objects access history. Last accessed objects are moved to the end of array
array(