Cheetah
All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
ChWsbCacheMemcache Class Reference
Inheritance diagram for ChWsbCacheMemcache:
ChWsbCache

Public Member Functions

 __construct ()
 
 getData ($sKey, $iTTL=false)
 
 setData ($sKey, $mixedData, $iTTL=false)
 
 delData ($sKey)
 
 isAvailable ()
 
 isInstalled ()
 
 removeAllByPrefix ($s)
 
 getSizeByPrefix ($s)
 

Public Attributes

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

Detailed Description

Definition at line 10 of file ChWsbCacheMemcache.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbCacheMemcache::__construct ( )

constructor

Reimplemented from ChWsbCache.

Definition at line 19 of file ChWsbCacheMemcache.php.

Member Function Documentation

◆ delData()

ChWsbCacheMemcache::delData (   $sKey)

Delete cache from cache server

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

Reimplemented from ChWsbCache.

Definition at line 62 of file ChWsbCacheMemcache.php.

◆ getData()

ChWsbCacheMemcache::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 ChWsbCache.

Definition at line 37 of file ChWsbCacheMemcache.php.

◆ getSizeByPrefix()

ChWsbCacheMemcache::getSizeByPrefix (   $s)

get size of cached data by name prefix

Reimplemented from ChWsbCache.

Definition at line 99 of file ChWsbCacheMemcache.php.

◆ isAvailable()

ChWsbCacheMemcache::isAvailable ( )

Check if memcache is available

Returns
boolean

Reimplemented from ChWsbCache.

Definition at line 72 of file ChWsbCacheMemcache.php.

◆ isInstalled()

ChWsbCacheMemcache::isInstalled ( )

Check if memcache extension is loaded

Returns
boolean

Reimplemented from ChWsbCache.

Definition at line 81 of file ChWsbCacheMemcache.php.

◆ removeAllByPrefix()

ChWsbCacheMemcache::removeAllByPrefix (   $s)

remove all data from cache by key prefix

Returns
true on success

Reimplemented from ChWsbCache.

Definition at line 90 of file ChWsbCacheMemcache.php.

◆ setData()

ChWsbCacheMemcache::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 ChWsbCache.

Definition at line 51 of file ChWsbCacheMemcache.php.

Member Data Documentation

◆ $iStoreFlag

ChWsbCacheMemcache::$iStoreFlag = 0

Definition at line 13 of file ChWsbCacheMemcache.php.

◆ $iTTL

ChWsbCacheMemcache::$iTTL = 3600

Definition at line 12 of file ChWsbCacheMemcache.php.

◆ $oMemcache

ChWsbCacheMemcache::$oMemcache = null

Definition at line 14 of file ChWsbCacheMemcache.php.


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