Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 742 Bytes

memory.md

File metadata and controls

23 lines (16 loc) · 742 Bytes

Memory

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

name type default
ttl int null Maximum time to live in seconds
limit int null Maximum items in cache
prefix string "" Key prefix

Packer

By default the SerializePacker is used.