eko / gocache

☔️ A complete Go cache library that brings you multiple ways of managing your caches
https://vincent.composieux.fr/article/i-wrote-gocache-a-complete-and-extensible-go-cache-library/
MIT License
2.46k stars 195 forks source link

Update chain Set() to attempt to set to in each cache even if one fails #140

Closed ashtonian closed 2 years ago

ashtonian commented 2 years ago

Instead of returning when one cache fails this update attempts to set the value for each cache and then returns an aggregate error if one or more fail. This allows the user to run the cache in a fallback mode.