PHP Класс Icicle\Concurrent\Worker\BasicEnvironment

Наследование: implements Icicle\Concurrent\Worker\Environment
Показать файл Открыть проект

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

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