XOOPS 2.5.6
Final
|
Public Member Functions | |
__construct () | |
clear ($check=false, $config=null) | |
config ($name= 'default', $settings=array()) | |
delete ($key, $config=null) | |
engine ($name= 'file', $settings=array()) | |
gc () | |
isInitialized ($engine=null) | |
key ($key) | |
loadEngine ($name) | |
settings ($engine=null) | |
write ($key, $value, $duration=null) | |
Static Public Member Functions | |
static & | getInstance () |
static | read ($key, $config=null) |
Public Attributes | |
$configs = array() | |
$engine = null | |
$name = null | |
Definition at line 28 of file xoopscache.php.
XoopsCache::__construct | ( | ) |
Definition at line 59 of file xoopscache.php.
XoopsCache::clear | ( | $check = false , |
|
$config = null |
|||
) |
Delete all keys from the cache
boolean | $check | if true will check expiration, otherwise delete all |
string | $config | name of the configuration to use |
Definition at line 320 of file xoopscache.php.
References getInstance().
XoopsCache::config | ( | $name = 'default' , |
|
$settings = array() |
|||
) |
Set the cache configuration to use
string | $name | Name of the configuration |
array | $settings | Optional associative array of settings passed to the engine |
Definition at line 107 of file xoopscache.php.
References getInstance().
XoopsCache::delete | ( | $key, | |
$config = null |
|||
) |
Delete a key from the cache
string | $key | Identifier for the data |
string | $config | name of the configuration to use |
Definition at line 291 of file xoopscache.php.
References getInstance().
Referenced by mod_clearConfig().
XoopsCache::engine | ( | $name = 'file' , |
|
$settings = array() |
|||
) |
Set the cache engine to use or modify settings for one instance
string | $name | Name of the engine (without 'Engine') |
array | $settings | Optional associative array of settings passed to the engine |
Definition at line 156 of file xoopscache.php.
References getInstance().
XoopsCache::gc | ( | ) |
Garbage collection
Permanently remove all expired and deleted data
public
Definition at line 190 of file xoopscache.php.
References $config, and getInstance().
|
static |
Returns a singleton instance
Definition at line 69 of file xoopscache.php.
Referenced by xos_logos_PageBuilder\buildBlock(), clear(), config(), delete(), engine(), gc(), isInitialized(), read(), xos_opal_Theme\render(), settings(), and write().
XoopsCache::isInitialized | ( | $engine = null | ) |
Check if Cache has initialized a working storage engine
string | $engine | Name of the engine |
string | $config | Name of the configuration setting |
Definition at line 342 of file xoopscache.php.
References getInstance().
XoopsCache::key | ( | $key | ) |
generates a safe key
string | $key | the key passed over |
Definition at line 378 of file xoopscache.php.
XoopsCache::loadEngine | ( | $name | ) |
Tries to find and include a file for a cache engine and returns object instance
$name | Name of the engine |
Definition at line 86 of file xoopscache.php.
References $file.
|
static |
Read a key from the cache
string | $key | Identifier for the data |
string | $config | name of the configuration to use |
Definition at line 260 of file xoopscache.php.
References $config, and getInstance().
Referenced by XoopsCaptchaImageHandler\getList(), XoopsEditorHandler\getList(), XoopsObject\loadFilters(), mod_loadConfig(), mod_loadFile(), XoopsPreload\setPreloads(), and xoops_getActiveModules().
XoopsCache::settings | ( | $engine = null | ) |
Return the settings for current cache engine
string | $engine | Name of the engine |
Definition at line 359 of file xoopscache.php.
References getInstance().
XoopsCache::write | ( | $key, | |
$value, | |||
$duration = null |
|||
) |
Write data for key into cache
string | $key | Identifier for the data |
mixed | $value | Data to be cached - anything except a resource |
mixed | $duration | Optional - string configuration name OR how long to cache the data, either in seconds or a string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600') |
Definition at line 208 of file xoopscache.php.
References $config, and getInstance().
Referenced by XoopsCaptchaImageHandler\getList(), XoopsEditorHandler\getList(), XoopsObject\loadFilters(), mod_createFile(), mod_loadConfig(), and xoops_setActiveModules().
XoopsCache::$configs = array() |
Definition at line 46 of file xoopscache.php.
XoopsCache::$engine = null |
Definition at line 36 of file xoopscache.php.
XoopsCache::$name = null |
Definition at line 54 of file xoopscache.php.