protected function getCache(DataAbstract $data)
    {
        if (!$this->isCacheEnabled) {
            return false;
        }

        return $this->cache->get($data->getCacheKey());
    }
protected function getCache(DataAbstract $data)
    {
        if (!$this->isCacheEnabled) {
            return false;
        }

        return $this->cache->get($data->getCacheKey());
    }
protected function getCache ( DataAbstract $ data ) { if ( ! $ this -> isCacheEnabled ) { return false ; } return $ this -> cache -> get ( $ data -> getCacheKey ( ) ) ; }
Get Data object from cache if is enabled.

@param  DataAbstract $data
@return bool|DataAbstract
Get Data object from cache if is enabled .