graphql-cache icon indicating copy to clipboard operation
graphql-cache copied to clipboard

[FEAT] Never expire cache

Open danielfigueiredo opened this issue 5 years ago • 0 comments

I have a scenario where I want my cache to never expire, letting Redis deal with the less frequently used keys in case memory reaches cap. In my current case there is normally enough space to cache all possible queries for one specific service. That said, the library is very easy to use and works just fine, so thanks for putting this together.

Describe the solution you'd like Pass a constant or some sort of value to never expire the cache. I was wondering whether there is a way to configure the cache to never expire. I couldn't find if it is possible anywhere. Is there a way to do such thing?

danielfigueiredo avatar Apr 24 '20 13:04 danielfigueiredo