Pārlūkot izejas kodu

ensure redis returns bool for hasKey

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v22.0.0beta1
Arthur Schiwon pirms 3 gadiem
vecāks
revīzija
9f5480eef4
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 1
- 1
lib/private/Http/Client/NegativeDnsCache.php Parādīt failu

@@ -46,6 +46,6 @@ class NegativeDnsCache {
}

public function isNegativeCached(string $domain, int $type) : bool {
return $this->cache->hasKey($this->createCacheKey($domain, $type));
return (bool)$this->cache->hasKey($this->createCacheKey($domain, $type));
}
}

+ 1
- 1
lib/private/Memcache/Redis.php Parādīt failu

@@ -69,7 +69,7 @@ class Redis extends Cache implements IMemcacheTTL {
}

public function hasKey($key) {
return self::$cache->exists($this->getNameSpace() . $key);
return (bool)self::$cache->exists($this->getNameSpace() . $key);
}

public function remove($key) {

Notiek ielāde…
Atcelt
Saglabāt