PHP Class Horde_Cache_Storage_Mongo, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Cache_Storage_Base
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_db MongoCollection The MongoDB Collection object for the cache data.

Méthodes publiques

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

Méthodes protégées

Méthode Description
_getCid ( string $key ) : string Gets the cache ID for a key.
_initOb ( )

Method Details

__construct() public méthode

Constructor.
public __construct ( array $params = [] )
$params array Parameters:
  - collection: (string) The collection name.
  - mongo_db: [REQUIRED] (Horde_Mongo_Client) A MongoDB client object.

__destruct() public méthode

Destructor.
public __destruct ( )

_getCid() protected méthode

Gets the cache ID for a key.
protected _getCid ( string $key ) : string
$key string The key.
Résultat string The cache ID.

_initOb() protected méthode

protected _initOb ( )

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 )

Property Details

$_db protected_oe property

The MongoDB Collection object for the cache data.
protected MongoCollection $_db
Résultat MongoCollection