goburrow / cache

Mango Cache 🥭 - Partial implementation of Guava Cache in Go (golang).
BSD 3-Clause "New" or "Revised" License
574 stars 48 forks source link

The value in cache won't refresh timely even though has set refreshAfterWrite. #34

Open SharonLau99 opened 2 years ago

SharonLau99 commented 2 years ago

version: v0.1.4 If only set refreshAfterWrite: The value in cache won't refresh until c.readCount > 64 or send write event, even if the key has expired. Before that, we can only read the old value from cache. image