From a90350ee3201bfb0bf0b88f2dbec49f267c5702e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 24 Sep 2017 13:17:11 +0200 Subject: [PATCH] Add more ProcessCacheLRU comments Change-Id: I5b59dd065dc387a6c7f9cae42ea5244247448650 --- includes/libs/ProcessCacheLRU.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/libs/ProcessCacheLRU.php b/includes/libs/ProcessCacheLRU.php index 03e23edbb7..b374259fdc 100644 --- a/includes/libs/ProcessCacheLRU.php +++ b/includes/libs/ProcessCacheLRU.php @@ -23,14 +23,17 @@ use Wikimedia\Assert\Assert; /** - * Handles per process caching of items + * Class for process caching individual properties of expiring items + * + * When the key for an entire item is deleted, all properties for it are deleted + * * @ingroup Cache */ class ProcessCacheLRU { - /** @var Array */ + /** @var array */ protected $cache = []; // (key => prop => value) - /** @var Array */ + /** @var array */ protected $cacheTimes = []; // (key => prop => UNIX timestamp) protected $maxCacheKeys; // integer; max entries -- 2.20.1