Lines Matching full:cache
14 use Assetic\Cache\CacheInterface;
26 private $cache; variable in Assetic\\Asset\\AssetCache
28 public function __construct(AssetInterface $asset, CacheInterface $cache) argument
31 $this->cache = $cache;
52 if ($this->cache->has($cacheKey)) {
53 $this->asset->setContent($this->cache->get($cacheKey));
59 $this->cache->set($cacheKey, $this->asset->getContent());
65 if ($this->cache->has($cacheKey)) {
66 return $this->cache->get($cacheKey);
70 $this->cache->set($cacheKey, $content);
131 * Returns a cache key for the current asset.