Change-Id: I5b59dd065dc387a6c7f9cae42ea5244247448650
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