async-cache-dedupe icon indicating copy to clipboard operation
async-cache-dedupe copied to clipboard

Get data from cache synchronously

Open vaakian opened this issue 2 years ago • 1 comments

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.

vaakian avatar Nov 10 '23 14:11 vaakian

A PR would be highly appreciated!

mcollina avatar Nov 10 '23 14:11 mcollina