Extends
lithium\core\Object
Class constructor.
Parameters
- array $config Configuration parameters for this cache adapter. These settings are indexed by name and queryable through `Cache::config('name')`. The defaults are: - 'path' : Path where cached entries live `LITHIUM_APP_PATH . '/resources/tmp/cache'`. - 'expiry' : Default expiry time used if none is explicitly set when calling `Cache::write()`.
Source
public function __construct(array $config = array()) {
$defaults = array(
'path' => Libraries::get(true, 'resources') . '/tmp/cache',
'prefix' => '',
'expiry' => '+1 hour'
);
parent::__construct($config + $defaults);
}