PHP Class Horde_Cache_Storage_Memcache, horde

Deprecation: Use HashTable driver instead.
Author: Duck ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Cache_Storage_Base
Mostrar archivo Open project: horde/horde

Protected Properties

Property Type Description
$_memcache Horde_Memcache Memcache object.
$_objectcache array Cache results of exists()/get() calls (since we will get the entire object on an exists() call anyway).

Public Methods

Method Description
__construct ( array $params = [] ) Construct a new Horde_Cache_Memcache object.
clear ( )
exists ( $key, $lifetime )
expire ( $key )
get ( $key, $lifetime )
set ( $key, $data, $lifetime )

Protected Methods

Method Description
_initOb ( )

Method Details

__construct() public method

Construct a new Horde_Cache_Memcache object.
public __construct ( array $params = [] )
$params array Parameter array:
  - memcache: (Horde_Memcache) [REQUIRED] A Horde_Memcache object.
  - prefix: (string) The prefix to use for the cache keys.
            DEFAULT: ''

_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

$_memcache protected_oe property

Memcache object.
protected Horde_Memcache $_memcache
return Horde_Memcache

$_objectcache protected_oe property

Cache results of exists()/get() calls (since we will get the entire object on an exists() call anyway).
protected array $_objectcache
return array