go-cache
go-cache copied to clipboard
Adding some utility functions to cache:
- GetRefresh: Get item from cache, update TTL. This allows users to store resources in cache and have them automatically removed if they haven't been used for X amount of time
- GetRefreshDefault: Same as GetRefresh with default duration (=~ SetDefault)
- Pop: Get elements from cache, and remove them
TODO (and soon to follow)
A couple of tests covering these 3 functions