PHP Class Webiny\Component\Cache\Storage\Redis

Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getInstance ( string $host = 'localhost', integer $port = 6379 ) : Webiny\Component\Cache\Bridge\CacheStorageInterface Get an instance of Redis cache storage.

Method Details

getInstance() public static method

Get an instance of Redis cache storage.
public static getInstance ( string $host = 'localhost', integer $port = 6379 ) : Webiny\Component\Cache\Bridge\CacheStorageInterface
$host string Host on which Redis server is running.
$port integer Port on which Redis server is running.
return Webiny\Component\Cache\Bridge\CacheStorageInterface