Zend\Cache\Storage\Adapter\MemoryOptions::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.
Signature
public function setMemoryLimit(string|int
$memoryLimit )
Parameters
$memoryLimit
— object
Returns
- MemoryOptions