Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes the cache to use a LRU policy with a maximum number of entries. This maximum is for the moment static when instantiating the cache. It also removes the goroutine that cleans the expired items by a simple check when getting elements as we can simply check the tail expiration. Fixes #273
- Loading branch information
Gaylor Bosson
committed
Oct 24, 2018
1 parent
dc03807
commit 8528451
Showing
4 changed files
with
146 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.