PHP Класс CacheEngine_APC

Наследование: extends CacheEngine
Показать файл Открыть проект

Открытые методы

Метод Описание
addValue ( $p_key, $p_value, $p_ttl ) : boolean Inserts the value identified by the given key in the cache.
clearPages ( ) : void Deletes the pages stored in the cache.
clearValues ( ) : boolean Deletes the values stored in the cache.
deletePage ( $p_key ) : void Delete the page identified by the given key from the cache.
deleteValue ( $p_key ) : boolean Delete the value identified by the given key from the cache.
description ( ) : string Returns a short description of the cache engine.
fetchValue ( $p_key ) : mixed Fetches the value identified by the given key from the cache.
garbageCollector ( ) : void Deletes the expired values and pages stored in the cache.
getInfo ( $p_type = self::CACHE_VALUES_INFO ) : array Returns an array of cached data; false if invalid type.
getMemInfo ( ) : array Returns an array of shared memory data
getName ( )
hasValueKey ( $p_key ) : mixed Returns true if a value identified by the given key was stored in the cache.
isSupported ( ) : boolean Returns true if the engine was supported in PHP, false otherwise.
pageCachingSupported ( ) : boolean Returns true if the page caching was supported, false otherwise.
storePage ( $p_key, $p_value, $p_ttl ) : boolean Stores the current page under the given key (identifier).
storeValue ( $p_key, $p_value, $p_ttl ) : boolean Stores the value identified by the given key in the cache.

Описание методов

addValue() публичный Метод

Returns false if the key already existed and does not overwrite the existing key.
public addValue ( $p_key, $p_value, $p_ttl ) : boolean
$p_key
$p_value
Результат boolean

clearPages() публичный Метод

Deletes the pages stored in the cache.
public clearPages ( ) : void
Результат void

clearValues() публичный Метод

Returns true on success, false on failure.
public clearValues ( ) : boolean
Результат boolean

deletePage() публичный Метод

Delete the page identified by the given key from the cache.
public deletePage ( $p_key ) : void
Результат void

deleteValue() публичный Метод

Returns true on success, false on failure.
public deleteValue ( $p_key ) : boolean
Результат boolean

description() публичный Метод

Returns a short description of the cache engine.
public description ( ) : string
Результат string

fetchValue() публичный Метод

Fetches the value identified by the given key from the cache.
public fetchValue ( $p_key ) : mixed
Результат mixed

garbageCollector() публичный Метод

Deletes the expired values and pages stored in the cache.
public garbageCollector ( ) : void
Результат void

getInfo() публичный Метод

Returns an array of cached data; false if invalid type.
public getInfo ( $p_type = self::CACHE_VALUES_INFO ) : array
$p_type
Результат array

getMemInfo() публичный Метод

Returns an array of shared memory data
public getMemInfo ( ) : array
Результат array

getName() публичный Метод

public getName ( )

hasValueKey() публичный Метод

Returns true if a value identified by the given key was stored in the cache.
public hasValueKey ( $p_key ) : mixed
Результат mixed

isSupported() публичный Метод

Returns true if the engine was supported in PHP, false otherwise.
public isSupported ( ) : boolean
Результат boolean

pageCachingSupported() публичный Метод

Returns true if the page caching was supported, false otherwise.
public pageCachingSupported ( ) : boolean
Результат boolean

storePage() публичный Метод

Returns true on success, false on failure.
public storePage ( $p_key, $p_value, $p_ttl ) : boolean
$p_key
$p_value
Результат boolean

storeValue() публичный Метод

Returns true on success, false on failure.
public storeValue ( $p_key, $p_value, $p_ttl ) : boolean
$p_key
$p_value
Результат boolean