コード例 #1
0
 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;
 }
コード例 #2
0
 /**
  * @return \databox[]
  */
 public function findAll()
 {
     return $this->factory->createMany($this->fetchRows());
 }