Lines Matching refs:cache
71 protected $cache;
86 * Create a new cache object
88 * @param string $name Unique ID for the cache
105 $this->cache = new NativeMemcached();
106 $this->cache->addServer($this->options['host'], (int)$this->options['port']);
110 * Save data to the cache
111 * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
124 * Retrieve the data saved to the cache
129 $data = $this->cache->get($this->name);
138 * Retrieve the last modified time for the cache
143 $data = $this->cache->get($this->name . '_mtime');
153 $data = $this->cache->get($this->name);
158 * Remove the cache
163 return $this->cache->delete($this->name, 0);
173 $this->cache->set($this->name . '_mtime', time(), (int)$this->options['extras']['timeout']);
174 return $this->cache->set($this->name, $data, (int)$this->options['extras']['timeout']);