MatthiasMullie\Minify\Minify::cache PHP Method

cache() public method

Minify the data & write it to a CacheItemInterface object.
public cache ( Psr\Cache\CacheItemInterface $item ) : Psr\Cache\CacheItemInterface
$item Psr\Cache\CacheItemInterface Cache item to write the data to
return Psr\Cache\CacheItemInterface Cache item with the minifier data
    public function cache(CacheItemInterface $item)
    {
        $content = $this->execute();
        $item->set($content);
        return $item;
    }