async-cache-dedupe
async-cache-dedupe copied to clipboard
Async cache with dedupe support
when an error occur, we can add the option "staleOnError" to serve the latest cached response, for example ```js const cache = createCache({ ttl: 60 }) cache.define('fetchUser', { staleOnError: 10...
For some use cases where we don't necessarily need the latest data as soon as ttl is passed, it can be useful to be able to specify a separate interval...
I want to get data from cache synchronously if cache hits, so as to reduce an extra event loop. But it's seems the `cache.get` method is always returning a promise....
I would like to use async cache dedupe for http request caching. However, I'm missing a way to set the stale value on a per entry basis after the request...
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.22.0 to 0.23.1. Release notes Sourced from esbuild's releases. v0.23.1 Allow using the node: import prefix with es* targets (#3821) The node: prefix on imports is an...
First of all thanks for this great plugin. I'm using it to cache some database searchs and I want to answer the clients with a X-Cache-Status header that informs if...
as titled
Bumps [@matteo.collina/tspl](https://github.com/mcollina/tspl) from 0.1.1 to 0.2.0. Release notes Sourced from @matteo.collina/tspl's releases. v0.2.0 What's Changed fix(README): code samples in mcollina/tspl#4 Update README.md in mcollina/tspl#5 Support await plan by @jsumners-nr in...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 5.1.4 to 6.0.1. Release notes Sourced from webpack-cli's releases. v6.0.1 6.0.1 (2024-12-20) Bug Fixes update peer dependencies (#4356) (7a7e5d9) v6.0.0 6.0.0 (2024-12-19) BREAKING CHANGES the minimum required...