◆ active()
Determine is cache directory is writable
- Renvoie
- boolean @access private
◆ clear()
Delete all values from the cache
- Paramètres
-
boolean | $check | Optional - only delete expired cache items |
- Renvoie
- boolean True if the cache was successfully cleared, false otherwise @access public
Réimplémentée à partir de XoopsCacheEngine.
◆ delete()
Delete a key from the cache
- Paramètres
-
string | $key | Identifier for the data |
- Renvoie
- boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed @access public
Réimplémentée à partir de XoopsCacheEngine.
◆ gc()
Garbage collection. Permanently remove all expired and deleted data
- Renvoie
- boolean True if garbage collection was successful, false on failure @access public
Réimplémentée à partir de 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());
- Paramètres
-
array | $settings | array of setting for the engine |
- Renvoie
- boolean True if the engine has been successfully initialized, false if not @access public
Réimplémentée à partir de XoopsCacheEngine.
◆ read()
Read a key from the cache
- Paramètres
-
string | $key | Identifier for the data |
- Renvoie
- mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it @access public
Réimplémentée à partir de XoopsCacheEngine.
◆ setKey()
Get absolute file for a given key
- Paramètres
-
- Renvoie
- mixed Absolute cache file for the given key or false if erroneous @access private
◆ write()
write |
( |
|
$key, |
|
|
|
$data = null , |
|
|
|
$duration = null |
|
) |
| |
Write data for key into cache
- Paramètres
-
string | $key | Identifier for the data |
mixed | $data | Data to be cached |
mixed | $duration | How long to cache the data, in seconds |
- Renvoie
- boolean True if the data was successfully cached, false on failure @access public
Réimplémentée à partir de XoopsCacheEngine.
◆ $active
◆ $file
◆ $init
◆ $settings
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/cache/file.php