Last active
December 31, 2015 20:58
-
-
Save JessieAMorris/8043351 to your computer and use it in GitHub Desktop.
localStore.js Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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