private static function buildRepositoryGraphL1Caches()
 {
     $caches = array();
     $request = new PhutilInRequestKeyValueCache();
     $request->setLimit(32);
     $caches[] = $request;
     $apc = new PhutilAPCKeyValueCache();
     if ($apc->isAvailable()) {
         $caches[] = $apc;
     }
     return $caches;
 }
 public function testCacheStack()
 {
     $req_cache = new PhutilInRequestKeyValueCache();
     $disk_cache = new PhutilOnDiskKeyValueCache();
     $disk_cache->setCacheFile(new TempFile());
     $apc_cache = new PhutilAPCKeyValueCache();
     $stack = array($req_cache, $disk_cache);
     if ($apc_cache->isAvailable()) {
         $stack[] = $apc_cache;
     }
     $cache = new PhutilKeyValueCacheStack();
     $cache->setCaches($stack);
     $this->doCacheTest($cache);
     $disk_cache->destroyCache();
     $req_cache->destroyCache();
 }