X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FProcessCacheLRU.php;h=b374259fdc6ae2bfbbcafedddf945c0c9223f622;hb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;hp=03e23edbb753b0f8cc8d506657b9cb41a7b3d22a;hpb=17914cc990c375340b688900b7782f1d7d5339fc;p=lhc%2Fweb%2Fwiklou.git 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