| sidebar_position | 7 |
|---|
This class uses Redis as the cache engine.
The constructor expects a string with the server and port.
$server = 'localhost:5678'When $server is null it defaults to 127.0.0.1:6379; a server without a port uses 6379.
$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));