intelligenthack / intelligentcache

A distributed cache backed by Redis
MIT License
18 stars 2 forks source link

Allow to limit the amount of memory dedicated to the in-memory cache #3

Closed aaubry closed 3 years ago

aaubry commented 3 years ago

Currently there's no limit on the growth of the MemoryCache implementation. If lots of different values are added to the cache, its memory usage will growing without bounds. Add a way of controlling how much memory is available for the cache and have a policy for evicting entries when that limit is reached.

aaubry commented 3 years ago

Closing as the current implementation of the memory cache doesn't have this issue.