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:
10
src/applications/cache/PhabricatorCaches.php
vendored
10
src/applications/cache/PhabricatorCaches.php
vendored
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user