Definition at line 55 of file file.php.
XoopsCacheFile::active |
( |
| ) |
|
Determine is cache directory is writable
- Returns
- boolean private
Definition at line 298 of file file.php.
XoopsCacheFile::clear |
( |
|
$check = true | ) |
|
Delete all values from the cache
- Parameters
-
boolean | $check | Optional - only delete expired cache items |
- Returns
- boolean True if the cache was succesfully cleared, false otherwise public
Definition at line 241 of file file.php.
References $dir, and $expires.
XoopsCacheFile::delete |
( |
|
$key | ) |
|
Delete a key from the cache
- Parameters
-
string | $key | Identifier for the data |
- Returns
- boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed public
Definition at line 226 of file file.php.
Garbage collection. Permanently remove all expired and deleted data
- Returns
- boolean True if garbage collection was succesful, false on failure public
Definition at line 126 of file file.php.
XoopsCacheFile::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 | $setting | array of setting for the engine |
- Returns
- boolean True if the engine has been successfully initialized, false if not public
Definition at line 104 of file file.php.
References XoopsFile\getHandler(), and XoopsLoad\load().
XoopsCacheFile::read |
( |
|
$key | ) |
|
Read a key from the cache
- Parameters
-
string | $key | Identifier 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 public
Definition at line 187 of file file.php.
References XoopsLoad\load(), and XoopsUtility\recursive().
XoopsCacheFile::setKey |
( |
|
$key | ) |
|
Get absolute file for a given key
- Parameters
-
- Returns
- mixed Absolute cache file for the given key or false if erroneous private
Definition at line 282 of file file.php.
XoopsCacheFile::write |
( |
|
$key, |
|
|
|
$data = null , |
|
|
|
$duration = null |
|
) |
| |
Write data for key into cache
- Parameters
-
string | $key | Identifier for the data |
mixed | $data | Data to be cached |
mixed | $duration | How long to cache the data, in seconds |
- Returns
- boolean True if the data was succesfully cached, false on failure public
Definition at line 140 of file file.php.
References $expires.
XoopsCacheFile::$active = false |
XoopsCacheFile::$file = null |
XoopsCacheFile::$init = true |
XoopsCacheFile::$settings = array() |
The documentation for this class was generated from the following file:
- L:/0xoops/xoops-2.5.6/htdocs/class/cache/file.php