public function fromCache($cacheKey)
    {

        // query whether or not a value for the cache key is available
        if (isset($this->cache[$resolvedCacheKey = $this->resolveReference($cacheKey)])) {
            return $this->cache[$resolvedCacheKey];
        }

        // throw an exception if not
        throw new \Exception(sprintf('Can\'t find cached value for key "%s"', $cacheKey));
    }
public function fromCache($cacheKey)
    {

        // query whether or not a value for the cache key is available
        if (isset($this->cache[$resolvedCacheKey = $this->resolveReference($cacheKey)])) {
            return $this->cache[$resolvedCacheKey];
        }

        // throw an exception if not
        throw new \Exception(sprintf('Can\'t find cached value for key "%s"', $cacheKey));
    }
public function fromCache ( $ cacheKey ) { // query whether or not a value for the cache key is available if ( isset ( $ this -> cache [ $ resolvedCacheKey = $ this -> resolveReference ( $ cacheKey ) ] ) ) { return $ this -> cache [ $ resolvedCacheKey ] ; } // throw an exception if not throw new \ Exception ( sprintf ( 'Can\'t find cached value for key "%s"' , $ cacheKey ) ) ; }
Query whether or not a value for the passed cache key exists. If yes, the value
will be returned, else an exception will be thrown.

@param string $cacheKey The cache key to return the value for

@return mixed The value for the passed cache key
@throws \Exception Is thrown, if no value is available
Query whether or not a value for the passed cache key exists . If yes the value will be returned else an exception will be thrown .