Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2018 17:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/bab48422df48dac3d19e6ec317ba4d06 to your computer and use it in GitHub Desktop.
Save anonymous/bab48422df48dac3d19e6ec317ba4d06 to your computer and use it in GitHub Desktop.
Open the console to see the output of this example.
localforage.setItem('somekey', 'some value', function(err, value) {
// Do other things once the value has been saved.
console.log(value);
localforage.getItem('somekey', function(err,value) {
console.log('we just read ' + value);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment