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

Async Cache #33

Open
tanishqmanuja opened this issue Dec 23, 2024 · 2 comments
Open

Async Cache #33

tanishqmanuja opened this issue Dec 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@tanishqmanuja
Copy link

Can someone help me on using a async defaultCache for cachePlugin. I want to do filesystem IO for the cache so async is required.

@suhaotian
Copy link
Owner

What's the use cases of AsyncCache plugin?

@tanishqmanuja
Copy link
Author

tanishqmanuja commented Dec 24, 2024

I am using octokit to get stuff from github and want cache all get requests and persist the changes during server restarts (Astro Framework). So the filesystem cache should work but I don't want to use fs modules without async because that would block the page render.

Axios supports the same via interceptors so i thought there would be some support in xior also.

@suhaotian suhaotian added the enhancement New feature or request label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants