FastFeed\Cache\FastFeed::fetch PHP Method

fetch() public method

public fetch ( string $channel = 'default' ) : array | Desarrolla2\Cache\CacheInterface
$channel string
return array | Desarrolla2\Cache\CacheInterface
    public function fetch($channel = 'default')
    {
        $items = $this->getFromCache($channel);
        if (!$items) {
            $items = parent::fetch($channel);
            $this->setToCache($channel, $items);
        }
        return $items;
    }