go-cache
go-cache copied to clipboard
An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.
To make go-cache as useful as memcache it needs an upper limit on the amount of memory that it can use otherwise it is easy to cache too many things...
will be memory cleared when my application stops?
The method `Get` will return false when the key has been expired, the user will reset the key usually. But the method `Set` https://github.com/patrickmn/go-cache/blob/46f407853014144407b6c2ec7ccc76bf67958d93/cache.go#L51 ``` func (c *cache) Set(k string,...
I am trying to use top but not really sure which process to look for
The cache seems to be the root object because it is referenced by goroutine stack.
The set method should return some sort of **validation/error**, In my case the cache was not being set and it took me a fair amount of time to debug the...
With this PR I add the following changes: - support of go modules