Skip to content

Instantly share code, notes, and snippets.

@selfup
Created June 18, 2016 00:50
Show Gist options
  • Save selfup/25fcdabf6fe975f4e8af96f78731c8d7 to your computer and use it in GitHub Desktop.
Save selfup/25fcdabf6fe975f4e8af96f78731c8d7 to your computer and use it in GitHub Desktop.
lspi.createRecord("testOne")
// Now that you have created a record try grabbing it
lspi.getRecord("testOne")
// This returns an empty object. Now we add a real object
lspi.updateRecord("testOne", {test: "Basic data for the 'testOne' record"})
// Now let's see what that really looks like
lspi.getRecord("testOne")
// Ok cool! You are using a high level API for the LocalStorage API. Think of this as an ORM!
// Look around the source code and try things out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment