Open Darkheir opened 10 months ago
Do we need this func? We have Get
The main difference is that Get
increases the hit score of the key while Contains
doesn't.
I also find it more readable to do if !cache.Contains("key")
than if _, err := cache.Get("foo"); errors.Is(err, bigcache.ErrEntryNotFound)
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.31%. Comparing base (
e5c39b2
) to head (6a482f4
). Report is 1 commits behind head on main.:exclamation: Current head 6a482f4 differs from pull request most recent head 29b0a38
Please upload reports for the commit 29b0a38 to get more accurate results.
Add a new function allowing to check if the cache contains the given key