Lines Matching refs:cache
21 private $cache; variable in Assetic\\Cache\\ExpiringCache
24 public function __construct(CacheInterface $cache, $lifetime) argument
26 $this->cache = $cache;
32 if ($this->cache->has($key)) {
33 if (time() < $this->cache->get($key.'.expires')) {
37 $this->cache->remove($key.'.expires');
38 $this->cache->remove($key);
46 return $this->cache->get($key);
51 $this->cache->set($key.'.expires', time() + $this->lifetime);
52 $this->cache->set($key, $value);
57 $this->cache->remove($key.'.expires');
58 $this->cache->remove($key);