private function Store::getCacheKey

Returns a cache key for the given Request.

Parameters

Request $request A Request instance:

Return value

string A key for the given Request

7 calls to Store::getCacheKey()
Store::invalidate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Invalidates all cache entries that match the request.
Store::isLocked in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Returns whether or not a lock exists.
Store::lock in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Locks the cache for a given Request.
Store::lookup in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Locates a cached Response for the Request provided.
Store::purge in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Purges data for the given URL.

... See full list

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php, line 374

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) {
  if (isset($this->keyCache[$request])) {
    return $this->keyCache[$request];
  }
  return $this->keyCache[$request] = 'md' . sha1($request
    ->getUri());
}