public function read($hash, $namespace = null)
    {
        if ($this->cacheProvider instanceof iNamespacedCache) {
            return $this->cacheProvider->read($hash, $namespace);
        }

        return $this->cacheProvider->read($hash);
    }
public function read($hash, $namespace = null)
    {
        if ($this->cacheProvider instanceof iNamespacedCache) {
            return $this->cacheProvider->read($hash, $namespace);
        }

        return $this->cacheProvider->read($hash);
    }
public function read ( $ hash , $ namespace = null ) { if ( $ this -> cacheProvider instanceof iNamespacedCache ) { return $ this -> cacheProvider -> read ( $ hash , $ namespace ) ; } return $ this -> cacheProvider -> read ( $ hash ) ; }
Given the hash of a some data, check to see whether it exists the cache.

@param string $hash
The hash of the Cached object, as defined by the user
@param string $namespace
Read multiple items by a namespace
@return mixed
Given the hash of a some data check to see whether it exists the cache .