PHP Class Horde_Cache_Storage_Hashtable, horde

Since: 2.2.0
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Cache_Storage_Base
Mostrar archivo Open project: horde/horde

Protected Properties

Property Type Description
$_hash Horde_HashTable HashTable object.

Public Methods

Method Description
__construct ( array $params = [] )
clear ( )
exists ( $key, $lifetime )
expire ( $key )
get ( $key, $lifetime )
set ( $key, $data, $lifetime )

Protected Methods

Method Description
_getKey ( string $key, boolean $ts = false ) : string Return the hashtable key.
_initOb ( )

Method Details

__construct() public method

public __construct ( array $params = [] )
$params array Additional parameters:
  - hashtable: (Horde_HashTable) [REQUIRED] A Horde_HashTable object.
  - prefix: (string) The prefix to use for the cache keys.
            DEFAULT: ''

_getKey() protected method

Return the hashtable key.
protected _getKey ( string $key, boolean $ts = false ) : string
$key string Object ID.
$ts boolean Return the timestamp key?
return string Hashtable key ID.

_initOb() protected method

protected _initOb ( )

clear() public method

public clear ( )

exists() public method

public exists ( $key, $lifetime )

expire() public method

public expire ( $key )

get() public method

public get ( $key, $lifetime )

set() public method

public set ( $key, $data, $lifetime )

Property Details

$_hash protected_oe property

HashTable object.
protected Horde_HashTable $_hash
return Horde_HashTable