goburrow / cache

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

some go routines call the Get function for one key at the same time, may put pressure on the server #28

Open yiting1122 opened 3 years ago

yiting1122 commented 3 years ago

image

if the key is loading ,need wait.

Thanks

nqv commented 3 years ago

yes, there is already a TODO https://github.com/goburrow/cache/blob/f6da914dd6e3546dffa8802919dbca80cd33abe3/local.go#L293