public function findAll() { $rows = $this->cache->fetch($this->cacheKey); if (is_array($rows)) { return $this->factory->createMany($rows); } $databoxes = $this->repository->findAll(); $this->saveCache($databoxes); return $databoxes; }
/** * @return \databox[] */ public function findAll() { return $this->factory->createMany($this->fetchRows()); }