PHP Class Horde_Cache_Storage_Apc, horde

Author: Duck ([email protected])
Inheritance: extends Horde_Cache_Storage_Base
Afficher le fichier Open project: horde/horde

Méthodes publiques

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

Méthodes protégées

Méthode Description
_setExpire ( string $key, integer $lifetime ) Set expire time on each call since APC sets it on cache creation.

Method Details

__construct() public méthode

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

_setExpire() protected méthode

Set expire time on each call since APC 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 méthode

public clear ( )

exists() public méthode

public exists ( $key, $lifetime )

expire() public méthode

public expire ( $key )

get() public méthode

public get ( $key, $lifetime )

set() public méthode

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