function IpUtils::getCacheResult
2 calls to IpUtils::getCacheResult()
- IpUtils::checkIp4 in vendor/
symfony/ http-foundation/ IpUtils.php - Compares two IPv4 addresses. In case a subnet is given, it checks if it contains the request IP.
- IpUtils::checkIp6 in vendor/
symfony/ http-foundation/ IpUtils.php - Compares two IPv6 addresses. In case a subnet is given, it checks if it contains the request IP.
File
-
vendor/
symfony/ http-foundation/ IpUtils.php, line 240
Class
- IpUtils
- Http utility functions.
Namespace
Symfony\Component\HttpFoundationCode
private static function getCacheResult(string $cacheKey) : ?bool {
if (isset(self::$checkedIps[$cacheKey])) {
// Move the item last in cache (LRU)
$value = self::$checkedIps[$cacheKey];
unset(self::$checkedIps[$cacheKey]);
self::$checkedIps[$cacheKey] = $value;
return self::$checkedIps[$cacheKey];
}
return null;
}