protected function evict() { while ($this->size > $this->limit && !empty($this->items)) { $item = array_shift($this->items); $this->size -= strlen($item[0]); } }