You are here

public function VariationCacheInterface::get in VariationCache 8

Gets a cache entry based on cache keys.

Parameters

string[] $keys: The cache keys to retrieve the cache entry for.

\Drupal\Core\Cache\CacheableDependencyInterface $initial_cacheability: The cache metadata of the data to store before other systems had a chance to adjust it. This is also commonly known as "pre-bubbling" cacheability.

Return value

object|false The cache item or FALSE on failure.

See also

\Drupal\Core\Cache\CacheBackendInterface::get()

1 method overrides VariationCacheInterface::get()
VariationCache::get in src/Cache/VariationCache.php
Gets a cache entry based on cache keys.

File

src/Cache/VariationCacheInterface.php, line 26

Class

VariationCacheInterface
An interface defining variation cache factory classes.

Namespace

Drupal\variationcache\Cache

Code

public function get(array $keys, CacheableDependencyInterface $initial_cacheability);