Wendi Yu 8a94ccc5a2 Replace time-dependent cache limiting with LRU
To keep memory usage as constant as possible, the previous cache
purging at periodic time intervals has been replaced by an LRU that
discards the oldest string when the capacity of the cache is reached.

Also fixed some formatting and commenting issues, and added better
testing for the rate limiter.

Signed-off-by: Wendi Yu <wendi.yu@yahoo.ca>
2020-05-07 14:06:07 -06:00
..
2020-03-25 04:48:15 -04:00