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(); }