Change-Id: I5b59dd065dc387a6c7f9cae42ea5244247448650
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 {
protected $cache = []; // (key => prop => value)
protected $cache = []; // (key => prop => value)
protected $cacheTimes = []; // (key => prop => UNIX timestamp)
protected $maxCacheKeys; // integer; max entries
protected $cacheTimes = []; // (key => prop => UNIX timestamp)
protected $maxCacheKeys; // integer; max entries