This is an archive of the discontinued Mercurial Phabricator instance.

util: make capacity a public attribute on lrucachedict
ClosedPublic

Authored by indygreg on Sep 6 2018, 9:17 PM.

Details

Summary

So others can query it. Useful for operations that may want to verify
the cache has capacity for N items before it performs an operation that
may cause cache eviction.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Sep 6 2018, 9:17 PM
This revision was automatically updated to reflect the committed changes.