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

Mark bigcache GetWithTTL as not implemented #194

Closed melpomene closed 1 year ago

melpomene commented 1 year ago

Problem and solution presented in issue #172.

The bigcache implementation of GetWithTTL is just a hard coded 0 duration but with no indication in API it will not work as intended.

I suggest instead returning an error that lets the user know that the method is in fact not supported and it should not be relied upon.

eko commented 1 year ago

Thank you @melpomene