Mercurial > hg-stable
comparison mercurial/worker.py @ 39582:bd9d3a89f07b
util: add a popoldest() method to lrucachedict
This allows consumers to prune the oldest item from the cache. This
could be useful for e.g. a consumer that wishes for the size of
items tracked by the cache to remain under a high water mark.
Differential Revision: https://phab.mercurial-scm.org/D4501
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 05 Sep 2018 23:15:20 -0700 |
parents | c08ea1e219c0 |
children | 03f7d0822ec1 909c31805f54 |
comparison
equal
deleted
inserted
replaced
39581:2dcc68c7d25b | 39582:bd9d3a89f07b |
---|