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

6 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::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.
Store::unlock in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/Store.php
Releases the lock for the given Request.

... See full list

File

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

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