Lines Matching refs:data
51 * Caches data to redis
57 * prefixed with `simple_primary-` and data will expire after 3600 seconds
92 * @param Base::TYPE_FEED|Base::TYPE_IMAGE $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
129 * Save data to the cache
131 * @param array|\SimplePie\SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
134 public function save($data)
136 if ($data instanceof \SimplePie\SimplePie) {
137 $data = $data->data;
139 $response = $this->cache->set($this->name, serialize($data));
148 * Retrieve the data saved to the cache
150 * @return array Data for SimplePie::$data
154 $data = $this->cache->get($this->name);
156 if ($data !== false) {
157 return unserialize($data);
169 $data = $this->cache->get($this->name);
171 if ($data !== false) {
185 $data = $this->cache->get($this->name);
187 if ($data !== false) {
188 $return = $this->cache->set($this->name, $data);