PHP 클래스 Horde_Imap_Client_Cache_Backend_Cache, horde

Requires the Horde_Cache package.
저자: Michael Slusarz ([email protected])
상속: extends Horde_Imap_Client_Cache_Backend
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_cache Horde_Cache The cache object.
$_data array The working data for the current pageload. All changes take place to this data.
$_loaded array The list of cache slices loaded.
$_slicemap array The mapping of UIDs to slices.
$_update array - slice: (array) List of slices that were modified. - slicemap: (boolean) Was slicemap info changed?

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
clear ( $lifetime )
deleteMailbox ( $mailbox )
deleteMsgs ( $mailbox, $uids )
get ( $mailbox, $uids, $fields, $uidvalid )
getCachedUids ( $mailbox, $uidvalid )
getMetaData ( $mailbox, $uidvalid, $entries )
save ( ) Updates the cache.
serialize ( )
set ( $mailbox, $data, $uidvalid )
setMetaData ( $mailbox, $data )

보호된 메소드들

메소드 설명
_deleteMailbox ( string $mbox ) Delete a mailbox from the cache.
_getCid ( string $mailbox, string $slice ) : string Create the unique ID used to store the data in the cache.
_initOb ( ) Initialization tasks.
_loadSlice ( string $mailbox, integer $slice ) Load UIDs from a cache slice.
_loadSliceMap ( string $mailbox, integer $uidvalid = null ) 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.
_loadUids ( string $mailbox, array $uids, integer $uidvalid = null ) Load UIDs by regenerating from the cache.
_toUpdate ( string $mailbox, string $type, mixed $data ) Add update entry for a mailbox.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters:
  - REQUIRED Parameters:
    - cacheob: (Horde_Cache) The cache object to use.

  - Optional Parameters:
    - lifetime: (integer) The lifetime of the cache data (in seconds).
                DEFAULT: 1 week (604800 seconds)
    - slicesize: (integer) The slicesize to use.
                 DEFAULT: 50

_deleteMailbox() 보호된 메소드

Delete a mailbox from the cache.
protected _deleteMailbox ( string $mbox )
$mbox string The mailbox to delete.

_getCid() 보호된 메소드

Create the unique ID used to store the data in the cache.
protected _getCid ( string $mailbox, string $slice ) : string
$mailbox string The mailbox to cache.
$slice string The cache slice.
리턴 string The cache ID.

_initOb() 보호된 메소드

Initialization tasks.
protected _initOb ( )

_loadSlice() 보호된 메소드

Load UIDs from a cache slice.
protected _loadSlice ( string $mailbox, integer $slice )
$mailbox string The mailbox to load.
$slice integer The slice to load.

_loadSliceMap() 보호된 메소드

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.
protected _loadSliceMap ( string $mailbox, integer $uidvalid = null )
$mailbox string The mailbox.
$uidvalid integer The IMAP uidvalidity value of the mailbox.

_loadUids() 보호된 메소드

Load UIDs by regenerating from the cache.
protected _loadUids ( string $mailbox, array $uids, integer $uidvalid = null )
$mailbox string The mailbox to load.
$uids array The UIDs to load.
$uidvalid integer The IMAP uidvalidity value of the mailbox.

_toUpdate() 보호된 메소드

Add update entry for a mailbox.
protected _toUpdate ( string $mailbox, string $type, mixed $data )
$mailbox string The mailbox.
$type string 'add', 'slice', or 'slicemap'.
$data mixed The data to update.

clear() 공개 메소드

public clear ( $lifetime )

deleteMailbox() 공개 메소드

public deleteMailbox ( $mailbox )

deleteMsgs() 공개 메소드

public deleteMsgs ( $mailbox, $uids )

get() 공개 메소드

public get ( $mailbox, $uids, $fields, $uidvalid )

getCachedUids() 공개 메소드

public getCachedUids ( $mailbox, $uidvalid )

getMetaData() 공개 메소드

public getMetaData ( $mailbox, $uidvalid, $entries )

save() 공개 메소드

Updates the cache.
public save ( )

serialize() 공개 메소드

public serialize ( )

set() 공개 메소드

public set ( $mailbox, $data, $uidvalid )

setMetaData() 공개 메소드

public setMetaData ( $mailbox, $data )

프로퍼티 상세

$_cache 보호되어 있는 프로퍼티

The cache object.
protected Horde_Cache $_cache
리턴 Horde_Cache

$_data 보호되어 있는 프로퍼티

The working data for the current pageload. All changes take place to this data.
protected array $_data
리턴 array

$_loaded 보호되어 있는 프로퍼티

The list of cache slices loaded.
protected array $_loaded
리턴 array

$_slicemap 보호되어 있는 프로퍼티

The mapping of UIDs to slices.
protected array $_slicemap
리턴 array

$_update 보호되어 있는 프로퍼티

- slice: (array) List of slices that were modified. - slicemap: (boolean) Was slicemap info changed?
protected array $_update
리턴 array