Свойство | Тип | Описание | |
---|---|---|---|
$_noexist | array | A list of items known not to exist. | |
$_params | array | Configuration parameters. | |
$_persistent | boolean | Persistent storage provided by driver? |
Метод | Описание | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
__get ( $name ) | ||
__set ( $name, $val ) | ||
clear ( ) | Clear all hash table entries. | |
delete ( mixed $keys ) : boolean | Delete a key(s). | |
exists ( mixed $keys ) : mixed | Do the keys exists? | |
get ( mixed $keys ) : mixed | Get data associated with a key(s). | |
hkey ( string $key ) : string | Add local prefix to beginning of key. | |
offsetExists ( $offset ) | ||
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
serialize ( ) | ||
set ( string $key, string $val, array $opts = [] ) : boolean | Set the value of a key. | |
unserialize ( $data ) |
Метод | Описание | |
---|---|---|
_delete ( $keys ) : boolean | Delete keys. | |
_exists ( array $keys ) : array | Get data associated with keys. | |
_get ( array $keys ) : array | Get data associated with keys. | |
_getExists ( mixed $keys, callable $callback ) : mixed | Does a get/exists action on a set of keys. | |
_init ( ) | Do initialization. | |
_set ( string $key, string $val, array $opts ) : boolean | Set the value of a key. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters:
- logger: (Horde_Log_Logger) Logger object. - prefix: (string) Prefix to use for key storage. |
public set ( string $key, string $val, array $opts = [] ) : boolean | ||
$key | string | The key. |
$val | string | The string to store. |
$opts | array | Additional options:
- expire: (integer) Expiration time in seconds. DEFAULT: Doesn't expire. - replace: (boolean) Replace the value of key. If key doesn't exist, returns false. DEFAULT: false |
Результат | boolean | True on success, false on error. |
protected array $_noexist | ||
Результат | array |
protected bool $_persistent | ||
Результат | boolean |