bigcache
bigcache copied to clipboard
Add method SetCb
The purpose is to support some atomic operations
Can you clarify the use case? Why it cannot be just:
err := cache.Set("key", []byte("value"))
callback()
?
in order to verify that it is not affected when cb was nil.
Long story, wait until I have time to reply.