| sidebar_position | 7 |
|---|
This class uses Redis as the cache engine.
The constructor expects a string with the server and port.
$server = 'localhost:5678'$cache = new \ByJG\Cache\Psr16\RedisCacheEngine($server, $password, $logger)$cachePool = \ByJG\Cache\Factory::createRedisPool($server, $password, $bufferSize, $logger)or
$cachePool = new \ByJG\Cache\Psr6\CachePool(new \ByJG\Cache\Psr16\RedisCacheEngine($server, $password, $logger));