Inheritance diagram for Cache:

Public Member Functions | |
| __loadEngine ($name) | |
Static Public Member Functions | |
| clear ($check=false, $config=null) | |
| config ($name=null, $settings=array()) | |
| delete ($key, $config=null) | |
| engine ($name= 'File', $settings=array()) | |
| gc () | |
| & | getInstance () |
| isInitialized ($engine=null) | |
| read ($key, $config=null) | |
| set ($settings=array(), $value=null) | |
| settings ($engine=null) | |
| write ($key, $value, $config=null) | |
Public Attributes | |
| $__config = array() | |
| $__name = 'default' | |
| $__reset = false | |
| $_Engine = null | |
Definition at line 32 of file cache.php.
| Cache::__loadEngine | ( | $ | name | ) |
| Cache::clear | ( | $ | check = false, |
|
| $ | config = null | |||
| ) | [static] |
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 343 of file cache.php.
References $config, getInstance(), and isInitialized().
| Cache::config | ( | $ | name = null, |
|
| $ | settings = array() | |||
| ) | [static] |
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 98 of file cache.php.
References engine(), getInstance(), isInitialized(), and settings().
Referenced by Configure::__loadBootstrap().
| Cache::delete | ( | $ | key, | |
| $ | config = null | |||
| ) | [static] |
Delete a key from the cache
| string | $key Identifier for the data | |
| string | $config name of the configuration to use |
Definition at line 309 of file cache.php.
References $config, getInstance(), and isInitialized().
| Cache::engine | ( | $ | name = 'File', |
|
| $ | settings = array() | |||
| ) | [static] |
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 144 of file cache.php.
References __loadEngine(), getInstance(), and settings().
Referenced by config(), gc(), isInitialized(), set(), and settings().
| Cache::gc | ( | ) | [static] |
| & Cache::getInstance | ( | ) | [static] |
| Cache::isInitialized | ( | $ | engine = null |
) | [static] |
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 372 of file cache.php.
References engine(), getInstance(), and Configure::read().
Referenced by clear(), config(), delete(), read(), and write().
| Cache::read | ( | $ | key, | |
| $ | config = null | |||
| ) | [static] |
Read a key from the cache
| string | $key Identifier for the data | |
| string | $config name of the configuration to use |
Definition at line 273 of file cache.php.
References $config, getInstance(), and isInitialized().
Referenced by DataSource::__cacheDescription(), App::__find(), Configure::corePaths(), App::getInstance(), Configure::listObjects(), DataSource::listSources(), and I18n::translate().
| Cache::set | ( | $ | settings = array(), |
|
| $ | value = null | |||
| ) | [static] |
Temporarily change settings to current config options. if no params are passed, resets settings if needed Cache::write() will reset the configuration changes made
| mixed | $settings Optional string for simple name-value pair or array | |
| string | $value Optional for a simple name-value pair |
Definition at line 173 of file cache.php.
References engine(), and getInstance().
| Cache::settings | ( | $ | engine = null |
) | [static] |
| Cache::write | ( | $ | key, | |
| $ | value, | |||
| $ | config = null | |||
| ) | [static] |
Write data for key into cache
| string | $key Identifier for the data | |
| mixed | $value Data to be cached - anything except a resource | |
| string | $config Optional - string configuration name |
Definition at line 224 of file cache.php.
References $config, getInstance(), and isInitialized().
Referenced by DataSource::__cacheDescription(), App::__destruct(), Configure::__destruct(), I18n::__destruct(), Configure::corePaths(), and DataSource::listSources().
1.4.7