expirable-cache
expirable-cache copied to clipboard
Expirable Go LRC\LRU cache without goroutines
Results
2
expirable-cache issues
Sort by
recently updated
recently updated
newest added
Improve performance in frequently used cache methods: 1. Values method: - Move time.Now() outside of lock - Simplify iteration 2. DeleteExpired method: - Replace key slice allocation with direct list...
The hashicorp lru.Cache implementation (https://github.com/hashicorp/golang-lru/blob/main/lru.go) contains a few other functions which are useful. I'm not sure why they don't include them in the simplelru or expirablelru implementations. In particular, the...