API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
init ($settings=array()) | |
gc () | |
write ($key, $value, $duration=null) | |
read ($key) | |
delete ($key) | |
clear ($check) | |
settings () | |
Data Fields | |
$settings | |
clear | ( | $check | ) |
Delete all keys from the cache
boolean | $check | if true will check expiration, otherwise delete all |
Reimplemented in XoopsCacheApc, XoopsCacheMemcache, XoopsCacheModel, and XoopsCacheFile.
delete | ( | $key | ) |
Delete a key from the cache
string | $key | Identifier for the data |
Reimplemented in XoopsCacheApc, XoopsCacheFile, XoopsCacheMemcache, and XoopsCacheModel.
gc | ( | ) |
Garbage collection
Permanently remove all expired and deleted data
@access public
Reimplemented in XoopsCacheFile, and XoopsCacheModel.
init | ( | $settings = array() | ) |
Iitialize the cache engine
Called automatically by the cache frontend
array | $settings | Associative array of parameters for the engine |
Reimplemented in XoopsCacheApc, XoopsCacheFile, XoopsCacheMemcache, and XoopsCacheModel.
read | ( | $key | ) |
Read a key from the cache
string | $key | Identifier for the data |
Reimplemented in XoopsCacheApc, XoopsCacheFile, XoopsCacheMemcache, and XoopsCacheModel.
settings | ( | ) |
Cache Engine settings
write | ( | $key, | |
$value, | |||
$duration = null |
|||
) |
Write value for a key into cache
string | $key | Identifier for the data |
mixed | $value | Data to be cached |
mixed | $duration | How long to cache the data, in seconds |
Reimplemented in XoopsCacheFile, XoopsCacheApc, XoopsCacheMemcache, and XoopsCacheModel.