Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 520 Bytes

class-tmpfs-cache-engine.md

File metadata and controls

28 lines (16 loc) · 520 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($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));