Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IpUtils.php

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\HttpFoundation

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal