PHP Класс PHPDaemon\Clients\Memcache\Pool

Автор: Vasily Zorin ([email protected])
Наследование: extends PHPDaemon\Network\Client
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
getConfigDefaults ( ) : array | boolean Setting default config options Overriden from NetworkClient::getConfigDefaults

Описание методов

add() публичный Метод

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
Результат void

append() публичный Метод

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
Результат void

delete() публичный Метод

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
Результат void

get() публичный Метод

Gets the key
public get ( string $key, callable $onResponse ) : void
$key string Key
$onResponse callable Callback called when response received
Результат void

getConfigDefaults() защищенный Метод

Setting default config options Overriden from NetworkClient::getConfigDefaults
protected getConfigDefaults ( ) : array | boolean
Результат array | boolean

prepend() публичный Метод

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
Результат void

replace() публичный Метод

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
Результат void

set() публичный Метод

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
Результат void

stats() публичный Метод

Gets a statistics
public stats ( callable $onResponse, string $server = null ) : void
$onResponse callable Callback called when the request complete
$server string Server
Результат void