PHP 클래스 PHPDaemon\Clients\Memcache\Pool

저자: Vasily Zorin ([email protected])
상속: extends PHPDaemon\Network\Client
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 메소드들

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