Add a new item to the back of the eviction order
| 1889 | |
| 1890 | // Add a new item to the back of the eviction order |
| 1891 | void addNew(Entry& e) { |
| 1892 | sizeUsed += e.size; |
| 1893 | evictionOrder.push_back(e); |
| 1894 | e.ownedByEvictor = true; |
| 1895 | } |
| 1896 | |
| 1897 | // Claim ownership of an entry, removing its size from the current size and removing it |
| 1898 | // from the eviction order if it exists there |