Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

Copyright 2005-2017 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright: 2005-2017 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 514 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Imap_Client_Cache_Backend_Cache:: (19 methods):
  __construct()
  _initOb()
  save()
  get()
  getCachedUids()
  set()
  getMetaData()
  setMetaData()
  deleteMsgs()
  deleteMailbox()
  clear()
  _getCid()
  _deleteMailbox()
  _loadUids()
  _loadSlice()
  _loadSliceMap()
  _toUpdate()
  serialize()
  __serialize()


Class: Horde_Imap_Client_Cache_Backend_Cache  - X-Ref

A Horde_Cache implementation for caching IMAP/POP data.
Requires the Horde_Cache package.

__construct(array $params = array()   X-Ref
Constructor.

param: array $params  Configuration parameters:

_initOb()   X-Ref
Initialization tasks.


save()   X-Ref
Updates the cache.


get($mailbox, $uids, $fields, $uidvalid)   X-Ref
No description

getCachedUids($mailbox, $uidvalid)   X-Ref
No description

set($mailbox, $data, $uidvalid)   X-Ref
No description

getMetaData($mailbox, $uidvalid, $entries)   X-Ref
No description

setMetaData($mailbox, $data)   X-Ref
No description

deleteMsgs($mailbox, $uids)   X-Ref
No description

deleteMailbox($mailbox)   X-Ref
No description

clear($lifetime)   X-Ref
No description

_getCid($mailbox, $slice)   X-Ref
Create the unique ID used to store the data in the cache.

param: string $mailbox  The mailbox to cache.
param: string $slice    The cache slice.
return: string  The cache ID.

_deleteMailbox($mbox)   X-Ref
Delete a mailbox from the cache.

param: string $mbox  The mailbox to delete.

_loadUids($mailbox, $uids, $uidvalid = null)   X-Ref
Load UIDs by regenerating from the cache.

param: string $mailbox    The mailbox to load.
param: array $uids        The UIDs to load.
param: integer $uidvalid  The IMAP uidvalidity value of the mailbox.

_loadSlice($mailbox, $slice)   X-Ref
Load UIDs from a cache slice.

param: string $mailbox  The mailbox to load.
param: integer $slice   The slice to load.

_loadSliceMap($mailbox, $uidvalid = null)   X-Ref
Load the slicemap for a given mailbox.  The slicemap contains
the uidvalidity information, the UIDs->slice lookup table, and any
metadata that needs to be saved for the mailbox.

param: string $mailbox    The mailbox.
param: integer $uidvalid  The IMAP uidvalidity value of the mailbox.

_toUpdate($mailbox, $type, $data)   X-Ref
Add update entry for a mailbox.

param: string $mailbox  The mailbox.
param: string $type     'add', 'slice', or 'slicemap'.
param: mixed $data      The data to update.

serialize()   X-Ref
No description

__serialize()   X-Ref

return: array