lithium\storage\cache\adapter\File::__construct PHP Метод

__construct() публичный Метод

Constructor.
См. также: lithium\storage\Cache::config()
public __construct ( array $config = [] ) : void
$config array Configuration 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 a `strtotime()` compatible tring or TTL in seconds. To indicate items should not expire use `Cache::PERSIST`. Defaults to `+1 hour`. - `'path'` _string_: Path where cached entries live, defaults to `Libraries::get(true, 'resources') . '/tmp/cache'`.
Результат void
    public function __construct(array $config = array())
    {
        $defaults = array('path' => Libraries::get(true, 'resources') . '/tmp/cache', 'scope' => null, 'expiry' => '+1 hour');
        parent::__construct($config + $defaults);
    }