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.42k stars 192 forks source link

Delete cache item containing cache keys for a tag upon tag invalidation #162

Closed Magomogo closed 2 years ago

Magomogo commented 2 years ago

@eko what do you think, should we delete the collection of cache keys after each of the keys was deleted?

Magomogo commented 2 years ago

Done for bigcache, risretto, memcache and pegasus. Freecache already has this functionality.

eko commented 2 years ago

Thanks @Magomogo :)