PHP 클래스 Icicle\Concurrent\Worker\BasicEnvironment

상속: implements Icicle\Concurrent\Worker\Environment
파일 보기 프로젝트 열기: icicleio/concurrent

공개 메소드들

메소드 설명
__construct ( )
clear ( ) Removes all values.
count ( ) : integer
delete ( string $key )
exists ( string $key ) : boolean
get ( string $key ) : mixed | null
offsetExists ( $key ) : boolean Alias of exists().
offsetGet ( string $key ) : mixed Alias of get().
offsetSet ( string $key, mixed $value ) Alias of set() with $ttl = 0.
offsetUnset ( string $key ) Alias of delete().
set ( string $key, mixed $value, integer $ttl )

메소드 상세

__construct() 공개 메소드

public __construct ( )

clear() 공개 메소드

Removes all values.
public clear ( )

count() 공개 메소드

public count ( ) : integer
리턴 integer

delete() 공개 메소드

public delete ( string $key )
$key string

exists() 공개 메소드

public exists ( string $key ) : boolean
$key string
리턴 boolean

get() 공개 메소드

public get ( string $key ) : mixed | null
$key string
리턴 mixed | null Returns null if the key does not exist.

offsetExists() 공개 메소드

Alias of exists().
public offsetExists ( $key ) : boolean
$key
리턴 boolean

offsetGet() 공개 메소드

Alias of get().
public offsetGet ( string $key ) : mixed
$key string
리턴 mixed

offsetSet() 공개 메소드

Alias of set() with $ttl = 0.
public offsetSet ( string $key, mixed $value )
$key string
$value mixed

offsetUnset() 공개 메소드

Alias of delete().
public offsetUnset ( string $key )
$key string

set() 공개 메소드

public set ( string $key, mixed $value, integer $ttl )
$key string
$value mixed Using null for the value deletes the key.
$ttl integer Number of seconds until data is automatically deleted. Use 0 for unlimited TTL.