go-redis/cache

GetSkippingLocalCache does not update the value in the cache

btrvodka opened this issue · 0 comments

cache/cache.go

Line 217 in 1cdfea0

if !skipLocalCache && cd.opt.LocalCache != nil {

GetSkippingLocalCache reads values from Redis but does not update them in the cache. is it a bug or a feature?

fix:
-if !skipLocalCache && cd.opt.LocalCache != nil {
+if cd.opt.LocalCache != nil {