__construct()
__construct() :
APICache::__construct()
Caching for CakePHP.
config(string|array name = default, mixed||string|int settings = array()) : mixed||string|int
Set the cache configuration to use
string|array | name | Name of the configuration |
mixed||string|int | settings | Optional associative array of settings passed to the engine |
(engine, settings) on success, false on failure
engine( name = file, mixed||string|int settings = array()) :
Set the cache engine to use or modify settings for one instance
name | Name of the engine (without 'Engine') |
|
mixed||string|int | settings | Optional associative array of settings passed to the engine |
True on success, false on failure
write( key, value, duration = null) :
Write data for key into cache
key | Identifier for the data |
|
value | Data to be cached - anything except a resource |
|
duration | Optional - string configuration name OR how long to cache the data, either in seconds or a string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600') |
True if the data was successfully cached, false on failure