lithium\storage\cache\adapter\File::__construct()
Overrides
lithium\core\Object::__construct()
Constructor.
Parameters
-
array
$configConfiguration for this cache adapter. These settings are queryable through
Cache::config('name'). The available options are as follows:'scope'string: Scope which will prefix keys; per default not set.'expiry'mixed: The default expiration time for cache values, if no value is otherwise set. Can be either astrtotime()compatible tring or TTL in seconds. To indicate items should not expire useCache::PERSIST. Defaults to+1 hour.'path'string: Path where cached entries live, defaults toLibraries::get(true, 'resources') . '/tmp/cache'.
Returns
voidSource
public function __construct(array $config = array()) {
$defaults = array(
'path' => Libraries::get(true, 'resources') . '/tmp/cache',
'scope' => null,
'expiry' => '+1 hour'
);
parent::__construct($config + $defaults);
}