mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +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:
parent
21c8d8775e
commit
965d7d44c5
4 changed files with 69 additions and 54 deletions
|
@ -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']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue