PHP 클래스 BxDolCacheAPC, dolphin.pro

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

공개 프로퍼티들

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