44.1. Zend\Cache\Storage\Adapter\MemoryOptions
These are options specific to the APC adapter
44.1.1. Methods
44.1.1.1. setMemoryLimit
-
setMemoryLimit()
Set memory limit
- A number less or equal 0 will disable the memory limit
- When a number is used, the value is measured in bytes. Shorthand notation may also be used.
- If the used memory of PHP exceeds this limit an OutOfSpaceException
will be thrown.
Parameters: | string|int – |
Return type: | MemoryOptions |
44.1.1.2. getMemoryLimit
-
getMemoryLimit()
Get memory limit
If the used memory of PHP exceeds this limit an OutOfSpaceException
will be thrown.
44.1.1.3. normalizeMemoryLimit
-
normalizeMemoryLimit()
Normalized a given value of memory limit into the number of bytes
Parameters: | string|int – |
Throws ExceptionInvalidArgumentException: |
| |
Return type: | int |