Memory

June 19, 2018 ยท View on GitHub

Store the cache in process memory (in other words in an array). Cache Memory is removed when the PHP process exist. Also it is not shared between different processes.

use Desarrolla2\Cache\Memory as MemoryCache;

$cache = new MemoryCache();

Options

nametypedefault
ttlintnullMaximum time to live in seconds
limitintnullMaximum items in cache
prefixstring""Key prefix

Packer

By default the SerializePacker is used.