PHP Класс BxDolCacheAPC, dolphin.pro

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

Открытые свойства

Свойство Тип Описание
$iTTL

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

Метод Описание
__construct ( ) constructor
delData ( string $sKey ) : result Delete cache from shared memory
getData ( string $sKey, integer $iTTL = false ) : the Get data from shared memory cache
getSizeByPrefix ( $s ) get size of cached data by name prefix
isAvailable ( ) : boolean Check if apc cache functions are available
isInstalled ( ) : boolean Check if apc extension is loaded
removeAllByPrefix ( $s ) : true remove all data from cache by key prefix
setData ( string $sKey, mixed $mixedData, integer $iTTL = false ) : boolean Save data in shared memory cache

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

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

constructor
public __construct ( )

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

Delete cache from shared memory
public delData ( string $sKey ) : result
$sKey string - file name
Результат result of the operation

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

Get data from shared memory cache
public getData ( string $sKey, integer $iTTL = false ) : the
$sKey string - file name
$iTTL integer - time to live
Результат the data is got from cache.

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

get size of cached data by name prefix
public getSizeByPrefix ( $s )

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

Check if apc cache functions are available
public isAvailable ( ) : boolean
Результат boolean

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

Check if apc extension is loaded
public isInstalled ( ) : boolean
Результат boolean

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

remove all data from cache by key prefix
public removeAllByPrefix ( $s ) : true
Результат true on success

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

Save data in shared memory cache
public setData ( string $sKey, mixed $mixedData, integer $iTTL = false ) : boolean
$sKey string - file name
$mixedData mixed - the data to be cached in the file
$iTTL integer - time to live
Результат boolean result of operation.

Описание свойств

$iTTL публичное свойство

public $iTTL