src/Cache.php
private function getFromCacheable($cacheId)
    {
        $cacheable = $this->cachedItems[$cacheId]->cacheable;
        $data = $cacheable->data();
        $ttl = $cacheable->ttl();
        $this->storage->write($cacheId, $data, $ttl);
        return $data;
    }
private function getFromCacheable($cacheId)
    {
        $cacheable = $this->cachedItems[$cacheId]->cacheable;
        $data = $cacheable->data();
        $ttl = $cacheable->ttl();
        $this->storage->write($cacheId, $data, $ttl);
        return $data;
    }
private function getFromCacheable ( $ cacheId ) { $ cacheable = $ this -> cachedItems [ $ cacheId ] -> cacheable ; $ data = $ cacheable -> data ( ) ; $ ttl = $ cacheable -> ttl ( ) ; $ this -> storage -> write ( $ cacheId , $ data , $ ttl ) ; return $ data ; }
read content from Cacheable instance and write it to cache
storage when cache is missed

@param  string $cacheId cache identifier
@return string content
read content from Cacheable instance and write it to cache storage when cache is missed