refactor: CacheFactory (#2834)

This commit is contained in:
Dag 2022-06-22 18:29:28 +02:00 committed by GitHub
parent b7b9378484
commit 07927008eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 49 additions and 130 deletions

View file

@ -123,7 +123,7 @@ class ElloBridge extends BridgeAbstract {
private function getAPIKey() {
$cacheFac = new CacheFactory();
$cacheFac->setWorkingDir(PATH_LIB_CACHES);
$cache = $cacheFac->create(Configuration::getConfig('cache', 'type'));
$cache->setScope(get_called_class());
$cache->setKey(array('key'));