feat(sqlite cache): add config options (#3499)

* refactor: sqlite cache

* refactor

* feat: add config options to sqlite cache

* refactor
This commit is contained in:
Dag 2023-07-06 15:59:38 +02:00 committed by GitHub
parent 21c8d8775e
commit 965d7d44c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 54 deletions

View file

@ -9,8 +9,8 @@ class FileCache implements CacheInterface
public function __construct(array $config = [])
{
$default = [
'path' => null,
'enable_purge' => true,
'path' => null,
'enable_purge' => true,
];
$this->config = array_merge($default, $config);
if (!$this->config['path']) {