Intellicode / graphql-resolver-cache

Caching for Graphql Resolvers
MIT License
19 stars 3 forks source link

How to invalidate cache? #9

Open matteodem opened 6 years ago

matteodem commented 6 years ago

This pkg looks really useful for a project I'm working on! Is there any way to invalidate cache entries?

Or has that to be done on the cache object itself?

Intellicode commented 6 years ago

Hi @matteodem,

Great that you are using this package! You can maybe use this (set the maxAge to 0)? https://github.com/Intellicode/graphql-resolver-cache/blob/master/src/lru-cache.js#L15

matteodem commented 6 years ago

Thanks for the hint, I'll try that out and report back