PHP Class BxDolCacheAPC, dolphin.pro

Inheritance: extends BxDolCache
Afficher le fichier Open project: boonex/dolphin.pro Class Usage Examples

Méthodes publiques

Свойство Type Description
$iTTL

Méthodes publiques

Méthode 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 méthode

constructor
public __construct ( )

delData() public méthode

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

getData() public méthode

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

getSizeByPrefix() public méthode

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

isAvailable() public méthode

Check if apc cache functions are available
public isAvailable ( ) : boolean
Résultat boolean

isInstalled() public méthode

Check if apc extension is loaded
public isInstalled ( ) : boolean
Résultat boolean

removeAllByPrefix() public méthode

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

setData() public méthode

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
Résultat boolean result of operation.

Property Details

$iTTL public_oe property

public $iTTL