Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 514 Bytes

File metadata and controls

31 lines (19 loc) · 514 Bytes
sidebar_position
4

ArrayCacheEngine

This class is a simple cache engine that uses an array to store the values. It does not persist between requests.

It is ideal to use on unit tests or when you need a simple cache engine.

PSR-16 Constructor

$cache = new \ByJG\Cache\Psr16\ArrayCacheEngine()

PSR-6 Constructor

$cachePool = \ByJG\Cache\Factory::createArrayPool()

or

$cachePool = new \ByJG\Cache\Psr6\CachePool(new \ByJG\Cache\Psr16\ArrayCacheEngine());