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.4k stars 193 forks source link

Is there any way to limit size for cache ? #240

Closed jayanthktn closed 4 months ago

jayanthktn commented 5 months ago

if memory exceeds the certain limit, we should notice or throw an error. Memory limit should not exceed 200MB

eko commented 4 months ago

The cache size limit depends on the store you’re using.

Please refer to the store library.

Closing this issue but feel free to reopen if you have any question related to gocache.