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

Breadcrumb

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

function Store::getCacheKey

Returns a cache key for the given Request.

7 calls to Store::getCacheKey()
Store::doPurge in vendor/symfony/http-kernel/HttpCache/Store.php
Purges data for the given URL.
Store::invalidate in vendor/symfony/http-kernel/HttpCache/Store.php
Invalidates all cache entries that match the request.
Store::isLocked in vendor/symfony/http-kernel/HttpCache/Store.php
Returns whether or not a lock exists.
Store::lock in vendor/symfony/http-kernel/HttpCache/Store.php
Tries to lock the cache for a given Request, without blocking.
Store::lookup in vendor/symfony/http-kernel/HttpCache/Store.php
Locates a cached Response for the Request provided.

... See full list

File

vendor/symfony/http-kernel/HttpCache/Store.php, line 436

Class

Store
Store implements all the logic for storing cache metadata (Request and Response headers).

Namespace

Symfony\Component\HttpKernel\HttpCache

Code

private function getCacheKey(Request $request) : string {
    if (isset($this->keyCache[$request])) {
        return $this->keyCache[$request];
    }
    return $this->keyCache[$request] = $this->generateCacheKey($request);
}

API Navigation

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