Webiny\Component\Cache\Cache::Redis PHP 메소드

Redis() 공개 정적인 메소드

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.
리턴 CacheStorage
    public static function Redis($host = '127.0.0.1', $port = 6379, $options = [])
    {
        return new CacheStorage(Storage\Redis::getInstance($host, $port), $options);
    }