Skip to content

Instantly share code, notes, and snippets.

@JessieAMorris
Last active December 31, 2015 20:58
Show Gist options
  • Save JessieAMorris/8043351 to your computer and use it in GitHub Desktop.
Save JessieAMorris/8043351 to your computer and use it in GitHub Desktop.
localStore.js Examples
var store = new _.LargeLocalStorage({
size: 10000,
name: 'NamespaceThatYouWantToUse'
});
store.initialized.done(function() {
store.set("THIS IS THE KEY", {a: {object: true, test: "This is a test object for storing however"}}, {json: true}).done(function() {
store.get("THIS IS THE KEY", {json: true}).done(function(ret) {
console.log(ret.a.test); // prints "This is a test object for storing however"
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment