aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache/LoggerWrapperCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Memcache/LoggerWrapperCache.php')
-rw-r--r--lib/private/Memcache/LoggerWrapperCache.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/private/Memcache/LoggerWrapperCache.php b/lib/private/Memcache/LoggerWrapperCache.php
index 55c0e76db79..55d5104dedb 100644
--- a/lib/private/Memcache/LoggerWrapperCache.php
+++ b/lib/private/Memcache/LoggerWrapperCache.php
@@ -167,10 +167,18 @@ class LoggerWrapperCache extends Cache implements IMemcacheTTL {
}
/** @inheritDoc */
- public function setTTL($key, $ttl) {
+ public function setTTL(string $key, int $ttl) {
$this->wrappedCache->setTTL($key, $ttl);
}
+ public function getTTL(string $key): int|false {
+ return $this->wrappedCache->getTTL($key);
+ }
+
+ public function compareSetTTL(string $key, mixed $value, int $ttl): bool {
+ return $this->wrappedCache->compareSetTTL($key, $value, $ttl);
+ }
+
public static function isAvailable(): bool {
return true;
}