You are here

public function AliasManager::setCacheKey in Drupal 8

Specify the key to use when writing the cache.

Overrides CacheDecoratorInterface::setCacheKey

File

core/lib/Drupal/Core/Path/AliasManager.php, line 160

Class

AliasManager
The default alias manager implementation.

Namespace

Drupal\Core\Path

Code

public function setCacheKey($key) {

  // Prefix the cache key to avoid clashes with other caches.
  $this->cacheKey = 'preload-paths:' . $key;
}