/** * @param string $key * @return bool */ public function hasKey($key) { if ($this->memoryCache->hasKey($key)) { return true; } return $this->fileCache->hasKey($key); }