aboutsummaryrefslogtreecommitdiff
path: root/lib/BridgeAbstract.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/BridgeAbstract.php')
-rw-r--r--lib/BridgeAbstract.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php
index 2467dec6..6444b6aa 100644
--- a/lib/BridgeAbstract.php
+++ b/lib/BridgeAbstract.php
@@ -322,16 +322,14 @@ abstract class BridgeAbstract
return null;
}
- protected function loadCacheValue(string $key)
+ protected function loadCacheValue(string $key, $default = null)
{
- $cacheKey = $this->getShortName() . '_' . $key;
- return $this->cache->get($cacheKey);
+ return $this->cache->get($this->getShortName() . '_' . $key, $default);
}
- protected function saveCacheValue(string $key, $value, $ttl = 86400)
+ protected function saveCacheValue(string $key, $value, int $ttl = null)
{
- $cacheKey = $this->getShortName() . '_' . $key;
- $this->cache->set($cacheKey, $value, $ttl);
+ $this->cache->set($this->getShortName() . '_' . $key, $value, $ttl);
}
public function getShortName(): string