/** * @since 2.2 * * @return array */ public function fetchList() { list($key, $optionsKey) = $this->getCacheKey($this->listLookup->getHash()); if ($this->cacheOptions->useCache && ($result = $this->tryFetchFromCache($key, $optionsKey)) !== null) { return $result; } $list = $this->listLookup->fetchList(); $this->saveToCache($key, $optionsKey, $list, $this->listLookup->getTimestamp(), $this->cacheOptions->ttl); return $list; }