Quoc-Viet Nguyen
Quoc-Viet Nguyen
Yeah, that's a good point. I will change that later.
FYI, it's doing that way because sync.Map doesn't support closure to store value like in Java, so concurrent calls to Get("x") will end up multiple loading calls with same value,...
`reloader` is a user-defined way to refresh cache entries, e.g. using a pool to avoid creating a new goroutine for each refresh. `loader` is a cache loader function, must be...
Thank you, I'll take a look
yes, there is already a TODO https://github.com/goburrow/cache/blob/f6da914dd6e3546dffa8802919dbca80cd33abe3/local.go#L293