PHP 클래스 Webiny\Component\Cache\Bridge\Memcache

상속: extends AbstractCache
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getInstance() 공개 정적인 메소드

Override the AbstractCache::getInstance method.
또한 보기: 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.
리턴 void | Webiny\Component\Cache\Bridge\CacheStorageInterface

getLibrary() 공개 정적인 메소드

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

setLibrary() 공개 정적인 메소드

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