1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

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
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']) {