1148. Class

1148.1. Zend\Memory\MemoryManager

Memory manager

This class encapsulates memory menagement operations, when PHP works in limited memory mode.

1148.1.1. Methods

1148.1.1.1. _generateMemManagerId

_generateMemManagerId()

This function is intended to generate unique id, used by memory manager

1148.1.1.2. __construct

__construct()

Memory manager constructor

If cache is not specified, then memory objects are never swapped

Parameters:CacheStorage

1148.1.1.3. __destruct

__destruct()

Object destructor

Clean up cache storage

1148.1.1.4. setMemoryLimit

setMemoryLimit()

Set memory grow limit

Parameters:integer

1148.1.1.5. getMemoryLimit

getMemoryLimit()

Get memory grow limit

Return type:integer

1148.1.1.6. setMinSize

setMinSize()

Set minimum size of values, which may be swapped

Parameters:integer

1148.1.1.7. getMinSize

getMinSize()

Get minimum size of values, which may be swapped

Return type:integer

1148.1.1.8. create

create()

Create new Zend_Memory value container

Parameters:string
Return type:ContainerContainerInterface
Throws :ExceptionExceptionInterface

1148.1.1.9. createLocked

createLocked()

Create new Zend_Memory value container, which has value always locked in memory

Parameters:string
Return type:ContainerContainerInterface
Throws :ExceptionExceptionInterface

1148.1.1.10. _create

_create()

Create new Zend_Memory object

Parameters:
  • string
  • bool
Return type:

ZendMemoryContainerContainerInterface

Throws :

ZendMemoryExceptionExceptionInterface

1148.1.1.12. processUpdate

processUpdate()

Process value update

Parameters:
  • ZendMemoryContainerMovable
  • integer

1148.1.1.13. _commit

_commit()

Commit modified object and put it back to the loaded objects list

1148.1.1.14. _swapCheck

_swapCheck()

Check and swap objects if necessary

1148.1.1.15. _swap

_swap()

Swap object data to disk Actually swaps data or only unloads it from memory, if object is not changed since last swap

Parameters:
  • ZendMemoryContainerMovable
  • integer

1148.1.1.16. load

load()

Load value from swap file.

Parameters:
  • ZendMemoryContainerMovable
  • integer