mcollina / async-cache-dedupe

Async cache with dedupe support
MIT License
613 stars 39 forks source link

feat: support dynamic stale config property #72

Closed agubler closed 1 year ago

agubler commented 1 year ago

Adds support for a dynamic stale value via a function in the options. Also includes a small fix for the "global" ttl typings to allow a function as it is supported in code

69

agubler commented 1 year ago

Could you add some docs?

Yes. Whoops

agubler commented 1 year ago

@mcollina I added some docs, let me know if anything else is needed :D