Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get data from cache synchronously #108

Open
vaakian opened this issue Nov 10, 2023 · 1 comment
Open

Get data from cache synchronously #108

vaakian opened this issue Nov 10, 2023 · 1 comment

Comments

@vaakian
Copy link

vaakian commented Nov 10, 2023

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.

@mcollina
Copy link
Owner

A PR would be highly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants