PHP Class PHPDaemon\Clients\Memcache\Pool

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\Client
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

Méthode Description
add ( string $key, string $value, integer $exp, callable $onResponse = null ) : void Adds the key
append ( string $key, string $value, integer $exp, callable $onResponse = null ) : void Appends a string to the key's value
delete ( string $key, callable $onResponse = null, integer $time ) : void Deletes the key
get ( string $key, callable $onResponse ) : void Gets the key
prepend ( string $key, string $value, integer $exp, callable $onResponse = null ) : void Prepends a string to the key's value
replace ( string $key, string $value, integer $exp, callable $onResponse = null ) : void Replaces the key
set ( string $key, string $value, integer $exp, callable $onResponse = null ) : void Sets the key
stats ( callable $onResponse, string $server = null ) : void Gets a statistics

Méthodes protégées

Méthode Description
getConfigDefaults ( ) : array | boolean Setting default config options Overriden from NetworkClient::getConfigDefaults

Method Details

add() public méthode

Adds the key
public add ( string $key, string $value, integer $exp, callable $onResponse = null ) : void
$key string Key
$value string Value
$exp integer Lifetime in seconds (0 - immortal)
$onResponse callable Callback called when the request complete
Résultat void

append() public méthode

Appends a string to the key's value
public append ( string $key, string $value, integer $exp, callable $onResponse = null ) : void
$key string Key
$value string Value
$exp integer Lifetime in seconds (0 - immortal)
$onResponse callable Callback called when the request complete
Résultat void

delete() public méthode

Deletes the key
public delete ( string $key, callable $onResponse = null, integer $time ) : void
$key string Key
$onResponse callable Callback called when the request complete
$time integer Time to block this key
Résultat void

get() public méthode

Gets the key
public get ( string $key, callable $onResponse ) : void
$key string Key
$onResponse callable Callback called when response received
Résultat void

getConfigDefaults() protected méthode

Setting default config options Overriden from NetworkClient::getConfigDefaults
protected getConfigDefaults ( ) : array | boolean
Résultat array | boolean

prepend() public méthode

Prepends a string to the key's value
public prepend ( string $key, string $value, integer $exp, callable $onResponse = null ) : void
$key string Key
$value string Value
$exp integer Lifetime in seconds (0 - immortal)
$onResponse callable Callback called when the request complete
Résultat void

replace() public méthode

Replaces the key
public replace ( string $key, string $value, integer $exp, callable $onResponse = null ) : void
$key string Key
$value string Value
$exp integer Lifetime in seconds (0 - immortal)
$onResponse callable Callback called when the request complete
Résultat void

set() public méthode

Sets the key
public set ( string $key, string $value, integer $exp, callable $onResponse = null ) : void
$key string Key
$value string Value
$exp integer Lifetime in seconds (0 - immortal)
$onResponse callable Callback called when the request complete
Résultat void

stats() public méthode

Gets a statistics
public stats ( callable $onResponse, string $server = null ) : void
$onResponse callable Callback called when the request complete
$server string Server
Résultat void