PHP 클래스 Habari\APCCache

상속: extends Cache
파일 보기 프로젝트 열기: habari/system

보호된 프로퍼티들

프로퍼티 타입 설명
$cache_data
$enabled
$prefix

공개 메소드들

메소드 설명
__construct ( ) Constructor for APCCache

보호된 메소드들

메소드 설명
_expire ( string $name, $group, string $match_mode = 'strict' ) Expires the named value from the cache.
_expired ( string $name, string $group ) : boolean Return whether a named cache value has expired
_extend ( string $name, integer $expiry, $group ) Extend the expiration of the named cached value.
_get ( string $name, $group ) : mixed Returns the named value from the cache.
_get_group ( $group ) : array Returns the named values from a group of cache.
_has ( string $name, $group ) : boolean Is record with $name in the cache?
_has_group ( $group ) : boolean Is group named $group in the cache?
_purge ( ) Remove all cached items
_set ( $name, $value, $expiry, $group, $keep )

메소드 상세

__construct() 공개 메소드

Constructor for APCCache
public __construct ( )

_expire() 보호된 메소드

Expires the named value from the cache.
protected _expire ( string $name, $group, string $match_mode = 'strict' )
$name string The name of the cached item
$match_mode string (optional) how to match bucket names ('strict', 'regex', 'glob') (default 'strict')

_expired() 보호된 메소드

Return whether a named cache value has expired
protected _expired ( string $name, string $group ) : boolean
$name string The name of the cached item
$group string The group of the cached item
리턴 boolean true if the stored value has expired

_extend() 보호된 메소드

Extend the expiration of the named cached value.
protected _extend ( string $name, integer $expiry, $group )
$name string The name of the cached item
$expiry integer The duration in seconds to extend the cache expiration by

_get() 보호된 메소드

Returns the named value from the cache.
protected _get ( string $name, $group ) : mixed
$name string The name of the cached item
리턴 mixed The item value or null if it doesn't exist in cache

_get_group() 보호된 메소드

Returns the named values from a group of cache.
protected _get_group ( $group ) : array
리턴 array The cache records of the group

_has() 보호된 메소드

Is record with $name in the cache?
protected _has ( string $name, $group ) : boolean
$name string name of the cached item
리턴 boolean true if item is cached, false if not

_has_group() 보호된 메소드

Is group named $group in the cache?
protected _has_group ( $group ) : boolean
리턴 boolean true if group is cached, false if not

_purge() 보호된 메소드

Remove all cached items
protected _purge ( )

_set() 보호된 메소드

protected _set ( $name, $value, $expiry, $group, $keep )

프로퍼티 상세

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

protected $cache_data

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

protected $enabled

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

protected $prefix