Returns the value for a key.
string $key A unique key:
string|null The value in the cache
Overrides CacheInterface::get
public function get($key) {
$path = $this->dir . '/' . $key;
if (!file_exists($path)) {
throw new \RuntimeException('There is no cached value for ' . $key);
}
return file_get_contents($path);
}