From: Aaron Schulz Date: Sun, 24 Sep 2017 11:17:11 +0000 (+0200) Subject: Add more ProcessCacheLRU comments X-Git-Tag: 1.31.0-rc.0~1938^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a90350ee3201bfb0bf0b88f2dbec49f267c5702e;p=lhc%2Fweb%2Fwiklou.git Add more ProcessCacheLRU comments Change-Id: I5b59dd065dc387a6c7f9cae42ea5244247448650 --- 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