Closed lesichkovm closed 1 year ago
The current way to check if a key exists is to use Get and check for nil. While it works it create boilerplate code.
It would be most convenient if there was a method to check if a key exists. For instance:
if cache.Has("key123") { return cache.Get("key123") }
Thanks
That's a good idea :+1:
The current way to check if a key exists is to use Get and check for nil. While it works it create boilerplate code.
It would be most convenient if there was a method to check if a key exists. For instance:
Thanks