PHP Class Horde_Cache_Storage_Eaccelerator, horde

Author: Duck ([email protected])
Inheritance: extends Horde_Cache_Storage_Base
Exibir arquivo Open project: horde/horde

Public Methods

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

Protected Methods

Method Description
_setExpire ( string $key, integer $lifetime ) Set expire time on each call since eAccelerator sets it on cache creation.

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Optional parameters:
  - prefix: (string) The prefix to use for the cache keys.
            DEFAULT: ''

_setExpire() protected method

Set expire time on each call since eAccelerator sets it on cache creation.
protected _setExpire ( string $key, integer $lifetime )
$key string Cache key to expire.
$lifetime integer Lifetime of the data in seconds.

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 )