Rename PhutilKeyValueCache subclasses

Summary: Ref T5655. Depends on D10155.

Test Plan: Ran `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D10156
This commit is contained in:
Joshua Spence
2014-08-06 08:12:28 +10:00
parent 8fd098329b
commit 4e9746ed4e
2 changed files with 7 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ final class PhabricatorCaches {
private static function buildImmutableCaches() {
$caches = array();
$apc = new PhutilKeyValueCacheAPC();
$apc = new PhutilAPCKeyValueCache();
if ($apc->isAvailable()) {
$caches[] = $apc;
}
@@ -80,11 +80,11 @@ final class PhabricatorCaches {
private static function buildRepositoryGraphL1Caches() {
$caches = array();
$request = new PhutilKeyValueCacheInRequest();
$request = new PhutilInRequestKeyValueCache();
$request->setLimit(32);
$caches[] = $request;
$apc = new PhutilKeyValueCacheAPC();
$apc = new PhutilAPCKeyValueCache();
if ($apc->isAvailable()) {
$caches[] = $apc;
}
@@ -141,7 +141,7 @@ final class PhabricatorCaches {
private static function buildSetupCaches() {
// In most cases, we should have APC. This is an ideal cache for our
// purposes -- it's fast and empties on server restart.
$apc = new PhutilKeyValueCacheAPC();
$apc = new PhutilAPCKeyValueCache();
if ($apc->isAvailable()) {
return array($apc);
}
@@ -150,7 +150,7 @@ final class PhabricatorCaches {
// much better than nothing; some setup steps are quite slow.
$disk_path = self::getSetupCacheDiskCachePath();
if ($disk_path) {
$disk = new PhutilKeyValueCacheOnDisk();
$disk = new PhutilOnDiskKeyValueCache();
$disk->setCacheFile($disk_path);
$disk->setWait(0.1);
if ($disk->isAvailable()) {