async-cache-dedupe
async-cache-dedupe copied to clipboard
Get data from cache synchronously
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.
Is there a existing workaround to achieve that? would be really appreciated.
A PR would be highly appreciated!