PHP Class BxDolCacheAPC, dolphin.pro

Inheritance: extends BxDolCache
Datei anzeigen Open project: boonex/dolphin.pro Class Usage Examples

Public Properties

Property Type Description
$iTTL

Public Methods

Method Description
__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

Method Details

__construct() public method

constructor
public __construct ( )

delData() public method

Delete cache from shared memory
public delData ( string $sKey ) : result
$sKey string - file name
return result of the operation

getData() public method

Get data from shared memory cache
public getData ( string $sKey, integer $iTTL = false ) : the
$sKey string - file name
$iTTL integer - time to live
return the data is got from cache.

getSizeByPrefix() public method

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

isAvailable() public method

Check if apc cache functions are available
public isAvailable ( ) : boolean
return boolean

isInstalled() public method

Check if apc extension is loaded
public isInstalled ( ) : boolean
return boolean

removeAllByPrefix() public method

remove all data from cache by key prefix
public removeAllByPrefix ( $s ) : true
return true on success

setData() public method

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
return boolean result of operation.

Property Details

$iTTL public_oe property

public $iTTL