Open apasel422 opened 9 years ago
One potential argument against this is that you might never get to the limit.
In that case, LruCache
should expose a way to set the maximum size separately from the maximum storage capacity.
s/maximum/minimum, but yeah that wouldn't be unreasonable.
I should be able to bang something out for this in the next hour or so if that's alright.
@jstnlef Go for it!
Since the capacity is restricted, it makes sense not to over- or underallocate on creation.