Inheritance diagram for FileEngine:

Public Member Functions | |
| __active () | |
| __setKey ($key) | |
| clear ($check) | |
| delete ($key) | |
| gc () | |
| init ($settings=array()) | |
| read ($key) | |
| write ($key, &$data, $duration) | |
Public Attributes | |
| $__active = false | |
| $__File = null | |
| $__init = true | |
| $settings = array() | |
Definition at line 33 of file file.php.
| FileEngine::__active | ( | ) |
Determine is cache directory is writable
Definition at line 259 of file file.php.
References __(), CacheEngine::settings(), and writable().
Referenced by init().
| FileEngine::__setKey | ( | $ | key | ) |
| FileEngine::clear | ( | $ | check | ) |
Delete all values from the cache
| boolean | $check Optional - only delete expired cache items |
Reimplemented from CacheEngine.
Definition at line 204 of file file.php.
References __setKey(), read(), and CacheEngine::settings().
Referenced by gc().
| FileEngine::delete | ( | $ | key | ) |
Delete a key from the cache
| string | $key Identifier for the data |
Reimplemented from CacheEngine.
Definition at line 191 of file file.php.
References __setKey().
| FileEngine::gc | ( | ) |
Garbage collection. Permanently remove all expired and deleted data
Reimplemented from CacheEngine.
Definition at line 108 of file file.php.
References clear().
| FileEngine::init | ( | $ | settings = array() |
) |
Initialize the Cache Engine
Called automatically by the cache frontend To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array());
| array | $setting array of setting for the engine |
Reimplemented from CacheEngine.
Definition at line 77 of file file.php.
References $settings, __active(), and CacheEngine::settings().
| FileEngine::read | ( | $ | key | ) |
Read a key from the cache
| string | $key Identifier for the data |
Reimplemented from CacheEngine.
Definition at line 159 of file file.php.
References __setKey(), and CacheEngine::settings().
Referenced by clear().
| FileEngine::write | ( | $ | key, | |
| &$ | data, | |||
| $ | duration | |||
| ) |
Write data for key into cache
| string | $key Identifier for the data | |
| mixed | $data Data to be cached | |
| mixed | $duration How long to cache the data, in seconds |
Reimplemented from CacheEngine.
Definition at line 120 of file file.php.
References __setKey(), and CacheEngine::settings().
| FileEngine::$settings = array() |
1.4.7