Property | Type | Description | |
---|---|---|---|
$_db | MongoDB | The MongoDB object for the cache data. | |
$_indices | array | The list of indices. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
checkMongoIndices ( ) | ||
clear ( $lifetime ) | ||
createMongoIndices ( ) | ||
deleteMailbox ( $mailbox ) | ||
deleteMsgs ( $mailbox, $uids ) | ||
get ( $mailbox, $uids, $fields, $uidvalid ) | ||
getCachedUids ( $mailbox, $uidvalid ) | ||
getMetaData ( $mailbox, $uidvalid, $entries ) | ||
set ( $mailbox, $data, $uidvalid ) | ||
setMetaData ( $mailbox, $data ) |
Method | Description | |
---|---|---|
_createUid ( string $mailbox ) : string | Create and return the UID for a mailbox/user/server combo. | |
_getUid ( string $mailbox ) : string | Return the UID for a mailbox/user/server combo. | |
_initOb ( ) | ||
_value ( mixed | MongoBinData $data ) : mixed | MongoBinData | Convert data from/to storage format. |
public __construct ( array $params = [] ) | ||
$params | array | Configuration parameters:
- REQUIRED parameters: - mongo_db: (Horde_Mongo_Client) A MongoDB client object. |
protected _createUid ( string $mailbox ) : string | ||
$mailbox | string | Mailbox name. |
return | string | UID from base table. |
protected MongoDB $_db | ||
return | MongoDB |