public function read($key)
    {
        if (!isset($this->cacheDirectory)) {
            return;
        }

        $this->loadCacheMetaData();

        return unserialize(file_get_contents($this->cacheDirectory . '/' . $key));
    }
public function read($key)
    {
        if (!isset($this->cacheDirectory)) {
            return;
        }

        $this->loadCacheMetaData();

        return unserialize(file_get_contents($this->cacheDirectory . '/' . $key));
    }
public function read ( $ key ) { if ( ! isset ( $ this -> cacheDirectory ) ) { return ; } $ this -> loadCacheMetaData ( ) ; return unserialize ( file_get_contents ( $ this -> cacheDirectory . '/' . $ key ) ) ; }
Read content from cache

@param string $key

@return mixed
Read content from cache