UNA
Loading...
Searching...
No Matches
BxDolCacheMemcache Class Reference
Inheritance diagram for BxDolCacheMemcache:
BxDolCache BxDol

Public Member Functions

 __construct ()
 
 getData ($sKey, $iTTL=false)
 
 setData ($sKey, $mixedData, $iTTL=false)
 
 delData ($sKey)
 
 isAvailable ()
 
 isInstalled ()
 
 removeAllByPrefix ($s)
 
- Public Member Functions inherited from BxDolCache
 getSizeByPrefix ($s)
 

Protected Attributes

 $iTTL = 3600
 
 $iStoreFlag = 0
 
 $oMemcache = null
 

Constructor & Destructor Documentation

◆ __construct()

BxDolCacheMemcache::__construct ( )

constructor

Reimplemented from BxDol.

Member Function Documentation

◆ delData()

BxDolCacheMemcache::delData ( $sKey)

Delete cache from cache server

Parameters
string$sKey- file name
Returns
result of the operation

Reimplemented from BxDolCache.

◆ getData()

BxDolCacheMemcache::getData ( $sKey,
$iTTL = false )

Get data from cache server

Parameters
string$sKey- file name
int$iTTL- time to live
Returns
the data is got from cache.

Reimplemented from BxDolCache.

◆ isAvailable()

BxDolCacheMemcache::isAvailable ( )

Check if memcache is available

Returns
boolean

Reimplemented from BxDolCache.

◆ isInstalled()

BxDolCacheMemcache::isInstalled ( )

Check if memcache extension is loaded

Returns
boolean

Reimplemented from BxDolCache.

◆ removeAllByPrefix()

BxDolCacheMemcache::removeAllByPrefix ( $s)

It always removes all data, regardless the prefix param

Returns
true on success

Reimplemented from BxDolCache.

◆ setData()

BxDolCacheMemcache::setData ( $sKey,
$mixedData,
$iTTL = false )

Save data in cache server

Parameters
string$sKey- file name
mixed$mixedData- the data to be cached in the file
int$iTTL- time to live
Returns
boolean result of operation.

Reimplemented from BxDolCache.


The documentation for this class was generated from the following file: