go-cache
Store short-lived values in an in-memory Go cache.
patrickmn · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/patrickmn/go-cache at v2.1.0+incompatible. Set one fictional stock number and confirm a missing key returns no value.
What we tested
v2.1.0+incompatible. Set one fictional stock number and confirm a missing key returns no value. Returned the stored seed count and recognized the uncached item.