Skip to main content

NoCacheEngine

This class doesn't cache. Use it to disable the cache without changing your code.

PSR-16 Constructor

$cache = new \ByJG\Cache\Psr16\NoCacheEngine();

PSR-6 Constructor

$cachePool = \ByJG\Cache\Factory::createNullPool();

or

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