Wanghongw

Results 2 comments of Wanghongw

you need set StrongConsistency to true,like this: rc.Options.StrongConsistency = true

client := redis.NewClient(&redis.Options{ Addr: "localhost:6379", Password: "", DB: 0, // use default DB }) rc := rockscache.NewClient(client, rockscache.NewDefaultOptions()) // enable strongConsistency rc.Options.StrongConsistency = true rc.Fetch("test1", 60 * time.Second, func ()...