Checks if the cache has a value for a key.
string $key A unique key:
Boolean Whether the cache has a value for this key
Overrides CacheInterface::has
public function has($key) {
if ($this->cache
->has($key)) {
if (time() < $this->cache
->get($key . '.expires')) {
return true;
}
$this->cache
->remove($key . '.expires');
$this->cache
->remove($key);
}
return false;
}