PHP 클래스 BxDolCacheFile, dolphin.pro

상속: extends BxDolCache
파일 보기 프로젝트 열기: boonex/dolphin.pro 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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