/** * {@inheritdoc} */ public function getAll() { if (!static::$all) { $this->cache = $this->keyValueStore->getAll(); static::$all = TRUE; } return $this->cache; }
/** * {@inheritdoc} */ public function doLoadMultiple(array $ids = NULL) { if (empty($ids)) { $entities = $this->keyValueStore->getAll(); } else { $entities = $this->keyValueStore->getMultiple($ids); } return $this->mapFromStorageRecords($entities); }
/** * {@inheritdoc} */ public function createFetchTask($project) { if (empty($this->fetchTasks)) { $this->fetchTasks = $this->fetchTaskStore->getAll(); } if (empty($this->fetchTasks[$project['name']])) { $this->fetchQueue->createItem($project); $this->fetchTaskStore->set($project['name'], $project); $this->fetchTasks[$project['name']] = REQUEST_TIME; } }