public function ArrayCache::get

Overrides CacheInterface::get

See also

CacheInterface::get()

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/ArrayCache.php, line 34

Class

ArrayCache
A simple array cache

Namespace

Assetic\Cache

Code

public function get($key) {
  if (!$this
    ->has($key)) {
    throw new \RuntimeException('There is no cached value for ' . $key);
  }
  return $this->cache[$key];
}