Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 504 Bytes

File metadata and controls

28 lines (16 loc) · 504 Bytes

Class TmpfsCacheEngine

This class uses the Tmpfs as the cache engine.

Defining the Path

The TmpfsCacheEngine allows to store the cache files in the /dev/shm tmpfs.

PSR-16 Constructor

$cache = new \ByJG\Cache\Psr16\TmpfsCacheEngine($prefix, $logger)

PSR-6 Constructor

$cachePool = \ByJG\Cache\Factory::createTmpfsCachePool($prefix, $logger)

or

$cachePool = new \ByJG\Cache\Psr6\CachePool(new \ByJG\Cache\Psr16\TmpfsCacheEngine($prefix, $logger));