Cheetah
Public Member Functions | Public Attributes | List of all members
ChWsbCacheOPcache Class Reference
Inheritance diagram for ChWsbCacheOPcache:
ChWsbCache

Public Member Functions

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

Public Attributes

 $bOpcacheGetConfigurationAva = false
 
 $bOpcacheGetStatusAva = false
 
 $bOpcacheGetConfigurationDisabled = true
 
 $bOpcacheGetStatusDisabled = true
 

Detailed Description

Definition at line 10 of file ChWsbCacheOPcache.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbCacheOPcache::__construct ( )

constructor

Reimplemented from ChWsbCache.

Definition at line 24 of file ChWsbCacheOPcache.php.

Member Function Documentation

◆ delData()

ChWsbCacheOPcache::delData (   $sKey)

Delete cache from cache server

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

Reimplemented from ChWsbCache.

Definition at line 89 of file ChWsbCacheOPcache.php.

◆ getData()

ChWsbCacheOPcache::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 64 of file ChWsbCacheOPcache.php.

◆ getSizeByPrefix()

ChWsbCacheOPcache::getSizeByPrefix (   $s)

get size of cached data by name prefix

Reimplemented from ChWsbCache.

Definition at line 134 of file ChWsbCacheOPcache.php.

◆ isAvailable()

ChWsbCacheOPcache::isAvailable ( )

Check if OPcache is available

Returns
boolean

Reimplemented from ChWsbCache.

Definition at line 99 of file ChWsbCacheOPcache.php.

◆ isInstalled()

ChWsbCacheOPcache::isInstalled ( )

Check if OPcache extension is loaded

Returns
boolean

Reimplemented from ChWsbCache.

Definition at line 113 of file ChWsbCacheOPcache.php.

◆ removeAllByPrefix()

ChWsbCacheOPcache::removeAllByPrefix (   $s)

remove all data from cache by key prefix

Returns
true on success

Reimplemented from ChWsbCache.

Definition at line 125 of file ChWsbCacheOPcache.php.

◆ setData()

ChWsbCacheOPcache::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 78 of file ChWsbCacheOPcache.php.

Member Data Documentation

◆ $bOpcacheGetConfigurationAva

ChWsbCacheOPcache::$bOpcacheGetConfigurationAva = false

Definition at line 16 of file ChWsbCacheOPcache.php.

◆ $bOpcacheGetConfigurationDisabled

ChWsbCacheOPcache::$bOpcacheGetConfigurationDisabled = true

Definition at line 18 of file ChWsbCacheOPcache.php.

◆ $bOpcacheGetStatusAva

ChWsbCacheOPcache::$bOpcacheGetStatusAva = false

Definition at line 17 of file ChWsbCacheOPcache.php.

◆ $bOpcacheGetStatusDisabled

ChWsbCacheOPcache::$bOpcacheGetStatusDisabled = true

Definition at line 19 of file ChWsbCacheOPcache.php.


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