Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15433499
D10156.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D10156.diff
View Options
diff --git a/src/applications/cache/PhabricatorCaches.php b/src/applications/cache/PhabricatorCaches.php
--- a/src/applications/cache/PhabricatorCaches.php
+++ b/src/applications/cache/PhabricatorCaches.php
@@ -54,7 +54,7 @@
private static function buildImmutableCaches() {
$caches = array();
- $apc = new PhutilKeyValueCacheAPC();
+ $apc = new PhutilAPCKeyValueCache();
if ($apc->isAvailable()) {
$caches[] = $apc;
}
@@ -80,11 +80,11 @@
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 @@
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 @@
// 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()) {
diff --git a/src/applications/diviner/cache/DivinerDiskCache.php b/src/applications/diviner/cache/DivinerDiskCache.php
--- a/src/applications/diviner/cache/DivinerDiskCache.php
+++ b/src/applications/diviner/cache/DivinerDiskCache.php
@@ -5,7 +5,7 @@
private $cache;
public function __construct($cache_directory, $name) {
- $dir_cache = id(new PhutilKeyValueCacheDirectory())
+ $dir_cache = id(new PhutilDirectoryKeyValueCache())
->setCacheDirectory($cache_directory);
$profiled_cache = id(new PhutilKeyValueCacheProfiler($dir_cache))
->setProfiler(PhutilServiceProfiler::getInstance())
@@ -25,7 +25,7 @@
/**
* Convert a long-form hash key like `ccbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaN` into
* a shortened directory form, like `cc/bb/aaaaaaaaN`. In conjunction with
- * @{class:PhutilKeyValueCacheDirectory}, this gives us nice directories
+ * @{class:PhutilDirectoryKeyValueCache}, this gives us nice directories
* inside .divinercache instead of a million hash files with huge names at
* top level.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 25, 11:31 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705661
Default Alt Text
D10156.diff (2 KB)
Attached To
Mode
D10156: Rename `PhutilKeyValueCache` subclasses
Attached
Detach File
Event Timeline
Log In to Comment