mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-08 09:36:39 +02:00
refactor: CacheFactory (#2834)
This commit is contained in:
@@ -390,7 +390,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
*/
|
||||
protected function loadCacheValue($key, $duration = 86400){
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFac->setWorkingDir(PATH_LIB_CACHES);
|
||||
|
||||
$cache = $cacheFac->create(Configuration::getConfig('cache', 'type'));
|
||||
$cache->setScope(get_called_class());
|
||||
$cache->setKey($key);
|
||||
@@ -407,7 +407,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
*/
|
||||
protected function saveCacheValue($key, $value){
|
||||
$cacheFac = new CacheFactory();
|
||||
$cacheFac->setWorkingDir(PATH_LIB_CACHES);
|
||||
|
||||
$cache = $cacheFac->create(Configuration::getConfig('cache', 'type'));
|
||||
$cache->setScope(get_called_class());
|
||||
$cache->setKey($key);
|
||||
|
Reference in New Issue
Block a user