public function hasCache(string $identifier): bool
    {
        return isset($this->caches[$identifier]) || isset($this->cacheConfigurations[$identifier]);
    }
public function hasCache(string $identifier): bool
    {
        return isset($this->caches[$identifier]) || isset($this->cacheConfigurations[$identifier]);
    }
public function hasCache ( string $ identifier ) : bool { return isset ( $ this -> caches [ $ identifier ] ) || isset ( $ this -> cacheConfigurations [ $ identifier ] ) ; }
Checks if the specified cache has been registered.

@param string $identifier The identifier of the cache
@return boolean true if a cache with the given identifier exists, otherwise false
@api
Checks if the specified cache has been registered .