PHP Class Horde_HashTable_Predis, horde

See: https://github.com/nrk/predis
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_HashTable_Base, implements Horde_HashTable_Lock
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_locks array Locked keys.
$_predis Predis\Client Predis client object.

Public Methods

Method Description
__construct ( array $params = [] )
clear ( )
hkey ( $key )
lock ( $key )
shutdown ( ) Shutdown function.
unlock ( $key )

Protected Methods

Method Description
_delete ( $keys )
_exists ( $keys )
_get ( $keys )
_init ( )
_set ( $key, $val, $opts )

Method Details

__construct() public method

public __construct ( array $params = [] )
$params array Additional configuration parameters:
  - predis: (Predis\Client) [REQUIRED] Predis client object.

_delete() protected method

protected _delete ( $keys )

_exists() protected method

protected _exists ( $keys )

_get() protected method

protected _get ( $keys )

_init() protected method

protected _init ( )

_set() protected method

protected _set ( $key, $val, $opts )

clear() public method

public clear ( )

hkey() public method

public hkey ( $key )

lock() public method

public lock ( $key )

shutdown() public method

Shutdown function.
public shutdown ( )

unlock() public method

public unlock ( $key )

Property Details

$_locks protected_oe property

Locked keys.
protected array $_locks
return array

$_predis protected_oe property

Predis client object.
protected Predis\Client $_predis
return Predis\Client