fastcache icon indicating copy to clipboard operation
fastcache copied to clipboard

fastcache.go: add LoadOrSet interface

Open fynnss opened this issue 1 year ago • 0 comments

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

fynnss avatar Nov 20 '23 06:11 fynnss