PHP Class Bluz\Cache\Adapter\Memcached

See also: Memcached
Inheritance: extends AbstractAdapter
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$handler instance of memcached

Méthodes publiques

Méthode Description
__construct ( array $settings = [] ) Check and setup memcached servers
getHandler ( ) : Memcached Get Mamcached Handler

Méthodes protégées

Méthode Description
doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
doContains ( string $id ) : boolean
doDelete ( string $id ) : boolean
doFlush ( ) : boolean
doGet ( string $id ) : mixed
doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean

Method Details

__construct() public méthode

Check and setup memcached servers
public __construct ( array $settings = [] )
$settings array

doAdd() protected méthode

protected doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
Résultat boolean

doContains() protected méthode

protected doContains ( string $id ) : boolean
$id string
Résultat boolean

doDelete() protected méthode

protected doDelete ( string $id ) : boolean
$id string
Résultat boolean

doFlush() protected méthode

protected doFlush ( ) : boolean
Résultat boolean

doGet() protected méthode

protected doGet ( string $id ) : mixed
$id string
Résultat mixed

doSet() protected méthode

protected doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
Résultat boolean

getHandler() public méthode

Get Mamcached Handler
public getHandler ( ) : Memcached
Résultat Memcached

Property Details

$handler protected_oe property

instance of memcached
protected $handler