Property | Type | Description | |
---|---|---|---|
$_db | MongoCollection | The MongoDB Collection object for the cache data. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
__destruct ( ) | Destructor. | |
clear ( ) | ||
exists ( $key, $lifetime ) | ||
expire ( $key ) | ||
get ( $key, $lifetime ) | ||
set ( $key, $data, $lifetime ) |
Method | Description | |
---|---|---|
_getCid ( string $key ) : string | Gets the cache ID for a key. | |
_initOb ( ) |
public __construct ( array $params = [] ) | ||
$params | array | Parameters:
- collection: (string) The collection name. - mongo_db: [REQUIRED] (Horde_Mongo_Client) A MongoDB client object. |