ttlcache icon indicating copy to clipboard operation
ttlcache copied to clipboard

an in-memory LRU string-string map with expiration for golang

Results 5 ttlcache issues
Sort by recently updated
recently updated
newest added

I am a bot. Please reach out to [@azillion](https://github.com/azillion) if you have any issues, or just close the PR.

I couldn't find a license specified in the repository.

func (cache *Cache) close() { cache.mutex.Lock() for key, item := range cache.items { delete(cache.items, key) } } cache.mutex.Unlock() }

Hi, Not sure if I get it right. As this lib use map to store values which map will expand as needed, so it will only clean expired items, but...

Added a simple channel to kill the go routine so that it doesn't leak.