UNA
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
 isAvailable ()
 
 isInstalled ()
 

Constructor & Destructor Documentation

◆ __construct()

BxDolCacheMemcache::__construct ( )

constructor

Member Function Documentation

◆ delData()

BxDolCacheMemcache::delData (   $sKey)

Delete cache from cache server

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

◆ 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.

◆ isAvailable()

BxDolCacheMemcache::isAvailable ( )

Check if memcache is available

Returns
boolean

◆ isInstalled()

BxDolCacheMemcache::isInstalled ( )

Check if memcache extension is loaded

Returns
boolean

◆ removeAllByPrefix()

BxDolCacheMemcache::removeAllByPrefix (   $s)

It always removes all data, regardless the prefix param

Returns
true on success

◆ 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.

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