Webiny\Component\Cache\Cache::Redis PHP Method

Redis() public static method

Create a cache instance with Redis as cache driver.
public static Redis ( string $host = '127.0.0.1', integer $port = 6379, array $options = [] ) : CacheStorage
$host string Host where the Redis server is running.
$port integer Port where Redis server is running.
$options array Cache options.
return CacheStorage
    public static function Redis($host = '127.0.0.1', $port = 6379, $options = [])
    {
        return new CacheStorage(Storage\Redis::getInstance($host, $port), $options);
    }