bigcache icon indicating copy to clipboard operation
bigcache copied to clipboard

Add method SetCb

Open 1xxz188 opened this issue 3 years ago • 3 comments

The purpose is to support some atomic operations

1xxz188 avatar Aug 10 '22 06:08 1xxz188

Can you clarify the use case? Why it cannot be just:

err := cache.Set("key", []byte("value"))
callback()

?

cristaloleg avatar Aug 10 '22 06:08 cristaloleg

in order to verify that it is not affected when cb was nil.

1xxz188 avatar Aug 10 '22 06:08 1xxz188

Long story, wait until I have time to reply.

1xxz188 avatar Aug 10 '22 06:08 1xxz188