API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsCacheModel Class Reference
Inheritance diagram for XoopsCacheModel:
Collaboration diagram for XoopsCacheModel:

Public Member Functions

 init ($settings=array())
 
 gc ()
 
 write ($key, $value, $duration=null)
 
 read ($key)
 
 delete ($key)
 
 clear ($check=null)
 
- Public Member Functions inherited from XoopsCacheEngine
 init ($settings=array())
 
 gc ()
 
 write ($key, $value, $duration=null)
 
 read ($key)
 
 delete ($key)
 
 clear ($check)
 
 settings ()
 

Data Fields

 $settings = array()
 
 $model
 
 $fields = array()
 
- Data Fields inherited from XoopsCacheEngine
 $settings
 

Member Function Documentation

◆ clear()

clear (   $check = null)

Delete all keys from the cache

Returns
boolean True if the cache was successfully cleared, false otherwise @access public

Reimplemented from XoopsCacheEngine.

◆ delete()

delete (   $key)

Delete a key from the cache

Parameters
string$keyIdentifier for the data
Returns
boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed @access public

Reimplemented from XoopsCacheEngine.

◆ gc()

gc ( )

Garbage collection. Permanently remove all expired and deleted data

@access public

Reimplemented from XoopsCacheEngine.

◆ init()

init (   $settings = array())

Initialize the Cache Engine

Called automatically by the cache frontend To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array());

Parameters
array$settingsarray of setting for the engine
Returns
boolean True if the engine has been successfully initialized, false if not @access public

Reimplemented from XoopsCacheEngine.

Here is the call graph for this function:

◆ read()

read (   $key)

Read a key from the cache

Parameters
string$keyIdentifier for the data
Returns
mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it @access public

Reimplemented from XoopsCacheEngine.

◆ write()

write (   $key,
  $value,
  $duration = null 
)

Write data for key into cache

Parameters
string$keyIdentifier for the data
mixed$valueData to be cached
integer$durationHow long to cache the data, in seconds
Returns
boolean True if the data was successfully cached, false on failure @access public

Reimplemented from XoopsCacheEngine.

Field Documentation

◆ $fields

$fields = array()

◆ $model

$model

◆ $settings

$settings = array()

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