PHP Class Webiny\Component\Cache\Bridge\Memcache

Inheritance: extends AbstractCache
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
getInstance ( string $host = '127.0.0.1', integer $port = 11211 ) : void | Webiny\Component\Cache\Bridge\CacheStorageInterface Override the AbstractCache::getInstance method.
getLibrary ( ) : string Get the name of bridge library which will be used as the driver.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

Method Details

getInstance() public static method

Override the AbstractCache::getInstance method.
See also: CacheAbstract::getInstance()
public static getInstance ( string $host = '127.0.0.1', integer $port = 11211 ) : void | Webiny\Component\Cache\Bridge\CacheStorageInterface
$host string Host on which memcached is running.
$port integer Port on which memcached is running.
return void | Webiny\Component\Cache\Bridge\CacheStorageInterface

getLibrary() public static method

Get the name of bridge library which will be used as the driver.
public static getLibrary ( ) : string
return string

setLibrary() public static method

Change the default library used for the driver.
public static setLibrary ( string $pathToClass )
$pathToClass string Path to the new driver class. Must be an instance of \Webiny\Component\Cache\Bridge\CacheInterface