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($path, $prefix)
PSR-6 Constructor
$cachePool = \ByJG\Cache\Factory::createTmpfsCachePool($path, $prefix, $bufferSize = 10)
or
$cachePool = new \ByJG\Cache\Psr6\CachePool(new \ByJG\Cache\Psr16\createTmpfsCachePool($path, $prefix));