diff --git a/lib/private/Memcache/KeyValueCache.php b/lib/private/Memcache/KeyValueCache.php index d3ab350588a71..77cba3bee57f5 100644 --- a/lib/private/Memcache/KeyValueCache.php +++ b/lib/private/Memcache/KeyValueCache.php @@ -66,6 +66,7 @@ public function get($key) { #[\Override] public function set($key, $value, $ttl = 0) { + $ttl = (int)$ttl; $value = self::encodeValue($value); $ttl = $this->normalizeTtl($ttl); return (bool)$this->getCache()->setex($this->getPrefix() . $key, $ttl, $value);