コード例 #1
0
 /**
  * @return null
  */
 private function buildCache()
 {
     $this->hosts = array();
     $hostPool = $this->hostPoolProvider->get();
     while ($hostPool->hasNext()) {
         $this->hosts[] = $hostPool->getNext();
     }
     $this->createCacheTime = $this->clock->getTime();
     $this->writeCacheToStorage();
 }