PHP Class Webiny\Component\Cache\Bridge\Couchbase

Inheritance: extends AbstractCache
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Méthode Description
getInstance ( string $user = '', string $password = '', string $bucket = '', string $host = '127.0.0.1:8091' ) : 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 méthode

Override the AbstractCache::getInstance method.
See also: CacheAbstract::getInstance()
public static getInstance ( string $user = '', string $password = '', string $bucket = '', string $host = '127.0.0.1:8091' ) : void | Webiny\Component\Cache\Bridge\CacheStorageInterface
$user string Couchbase username.
$password string Couchbase password.
$bucket string Couchbase bucket.
$host string Couchbase host (with port number).
Résultat void | Webiny\Component\Cache\Bridge\CacheStorageInterface

getLibrary() public static méthode

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

setLibrary() public static méthode

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