fastcache
fastcache copied to clipboard
fastcache.go: add LoadOrSet interface
This PR implements the LoadOrSet API like sync.Map.LoadOrStore semantic.
LoadOrStore returns the existing value for the key if present. Otherwise, it stores and returns the given value. The loaded result is true if the value was loaded, false if stored.
For more detail information. See #5