contain-rs / lru-cache

A cache that holds a limited number of key-value pairs
https://contain-rs.github.io/lru-cache/lru_cache/
Apache License 2.0
83 stars 36 forks source link

Capacity based on entries size #33

Open dippi opened 8 years ago

dippi commented 8 years ago

I made a fork that handle cache capacity using entries size rather than entries number. I found it useful to keep control of memory usage, when cache entries are collections or strings with different legths.

I don't think it is should be merged back (that's why an issue instead of a PR), but I was wondering if you'd like to take it as a contain-rs project. Let me know!

apasel422 commented 7 years ago

CC #38 .