dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "registration: Only allow one extension to set a specific config setting"
[lhc/web/wiklou.git]
/
includes
/
libs
/
ProcessCacheLRU.php
diff --git
a/includes/libs/ProcessCacheLRU.php
b/includes/libs/ProcessCacheLRU.php
index
03e23ed
..
b374259
100644
(file)
--- a/
includes/libs/ProcessCacheLRU.php
+++ b/
includes/libs/ProcessCacheLRU.php
@@
-23,14
+23,17
@@
use Wikimedia\Assert\Assert;
/**
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 {
* @ingroup Cache
*/
class ProcessCacheLRU {
- /** @var
A
rray */
+ /** @var
a
rray */
protected $cache = []; // (key => prop => value)
protected $cache = []; // (key => prop => value)
- /** @var
A
rray */
+ /** @var
a
rray */
protected $cacheTimes = []; // (key => prop => UNIX timestamp)
protected $maxCacheKeys; // integer; max entries
protected $cacheTimes = []; // (key => prop => UNIX timestamp)
protected $maxCacheKeys; // integer; max entries