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

Cache persist on IndexedDB? #195

Open
frederikhors opened this issue May 8, 2023 · 2 comments
Open

Cache persist on IndexedDB? #195

frederikhors opened this issue May 8, 2023 · 2 comments
Labels
✨ enhancement New feature or request

Comments

@frederikhors
Copy link

Hi, I'm new to Vue and to villus.

I'm trying to understand if there is a way to persist the cache in IndexedDB.

Is there an example already?

Thank you for your amazing work!

@logaretm logaretm added the ✨ enhancement New feature or request label May 9, 2023
@logaretm
Copy link
Owner

logaretm commented May 9, 2023

Hi, you could take a look at how cache plugin is implemented and swap the localstorage with indexed db calls.

Let me know if you need further guidance.

Perhaps the cache plugin should let you define your get and set methods to make the storage swappable.

@frederikhors
Copy link
Author

I'm not using Vue yet, just wondering why we'll most likely start.

Anyway, I thought there was already some example and it would be nice to have it, but I think I'm not very good at writing code like this.

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