示例#1
0
 /**
  * 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
  */
 public function read($hash, $namespace = null)
 {
     if ($this->cacheProvider instanceof iNamespacedCache) {
         return $this->cacheProvider->read($hash, $namespace);
     }
     return $this->cacheProvider->read($hash);
 }
示例#2
0
 /**
  * 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
  * @return mixed
  */
 public function read($hash)
 {
     return $this->cacheProvider->read($hash);
 }