PHP Класс BxDolCacheFile, dolphin.pro

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

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

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

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

Метод Описание
__construct ( ) constructor
_removeFileIfTtlExpired ( string $sFile, integer $iTTL ) : true remove file from dist if TTL expored
delData ( string $sKey ) : result Delete cache file.
getData ( string $sKey, integer $iTTL = false ) : the Get all data from the cache file.
getSizeByPrefix ( $s ) get size of cached data by name prefix
removeAllByPrefix ( $s ) : true remove all data from cache by key prefix
setData ( string $sKey, mixed $mixedData, integer $iTTL = false ) : boolean Save all data in cache file.

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

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

constructor
public __construct ( )

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

remove file from dist if TTL expored
public _removeFileIfTtlExpired ( string $sFile, integer $iTTL ) : true
$sFile string - full path to filename
$iTTL integer - time to live in seconds
Результат true if TTL is expired and file is deleted or false otherwise

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

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

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

Get all data from the cache file.
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 )

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

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

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

Save all data in cache file.
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.

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

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

public $sPath