public function loadCache($cacheKey)
    {
        if (!isset($this->localCache[$cacheKey])) {
            $data = $this->cache->load($cacheKey);

            if ($data) {
                $data = unserialize($data);
            }

            $this->localCache[$cacheKey] = $data;
        }

        return $this->localCache[$cacheKey];
    }
public function loadCache($cacheKey)
    {
        if (!isset($this->localCache[$cacheKey])) {
            $data = $this->cache->load($cacheKey);

            if ($data) {
                $data = unserialize($data);
            }

            $this->localCache[$cacheKey] = $data;
        }

        return $this->localCache[$cacheKey];
    }
public function loadCache ( $ cacheKey ) { if ( ! isset ( $ this -> localCache [ $ cacheKey ] ) ) { $ data = $ this -> cache -> load ( $ cacheKey ) ; if ( $ data ) { $ data = unserialize ( $ data ) ; } $ this -> localCache [ $ cacheKey ] = $ data ; } return $ this -> localCache [ $ cacheKey ] ; }
Load data from the cache

@param string $cacheKey Cache key.

@return mixed
Load data from the cache