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

[Feature Request] Local storage #4

Open
sparcut opened this issue Nov 9, 2017 · 3 comments
Open

[Feature Request] Local storage #4

sparcut opened this issue Nov 9, 2017 · 3 comments

Comments

@sparcut
Copy link

sparcut commented Nov 9, 2017

Need option to use local store.

At the moment you can only use sync storage.

@sparcut sparcut changed the title [Feature Request]Local storage [Feature Request] Local storage Nov 9, 2017
@ecmadao
Copy link
Owner

ecmadao commented Nov 9, 2017

Yes, it's a good idea, and I also have some plan for it. But chrome-utils is mainly developed for chrome extensions, so I only use chrome extension raw api: chrome.storage. As for other storage ways, such as local storage, session storage, indexed db, web sql, I think they should be separated as another web frontend storage package.
Any way, thanks for your suggestion. Maybe I can work for the new package some times later.

@ecmadao ecmadao closed this as completed Nov 9, 2017
@sparcut
Copy link
Author

sparcut commented Nov 10, 2017

Sorry, I feel you've misunderstood what I ment by local store.

I'm not referring to the localStorage, rather the chrome local storage: chrome.storage.local. I use it for storing things that I don't want synced e.g. state, whereas I use sync for things like settings.

https://developer.chrome.com/apps/storage

@ecmadao
Copy link
Owner

ecmadao commented Nov 12, 2017

Sounds great! I think this feature can be added to the module. But these days I have some trivia to deal with, maybe I can start to work on it a few days later.

@ecmadao ecmadao reopened this Nov 12, 2017
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