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

Local storage #14

Open
tracend opened this issue Mar 24, 2013 · 2 comments
Open

Local storage #14

tracend opened this issue Mar 24, 2013 · 2 comments
Labels

Comments

@tracend
Copy link
Member

tracend commented Mar 24, 2013

Include a helper lib to interact with local storage

@tracend
Copy link
Member Author

tracend commented Mar 24, 2013

@tracend
Copy link
Member Author

tracend commented Mar 24, 2013

There may need to be separation between localStorage and sessionStorage calls, to avoid instantiating the same class with different options, like { persist : true }

  • For persistant storage
var store = c.store;
  • For session
var store = c.session;

Proposed API:

store.get("key");

store.set({ key : value });

store.has("key");

store.remove("key");

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

No branches or pull requests

1 participant