44. Class

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.

Return type:int

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

Project Versions

Table Of Contents

Previous topic

43. Class

Next topic

45. Class

This Page