Skip to content

Instantly share code, notes, and snippets.

@vseventer
Created July 31, 2012 15:28
Show Gist options
  • Save vseventer/3217822 to your computer and use it in GitHub Desktop.
Save vseventer/3217822 to your computer and use it in GitHub Desktop.
Kinvey JavaScript Library: Using the offline store.
var entity = new Kinvey.Entity({/*attributes*/}, 'collection', {
store: 'offline',
options: { policy: 'cachefirst' }// Optional, caching policy.
});
var collection = new Kinvey.Collection('collection', {
store: 'offline',
options: { policy: 'cachefirst' }// Optional, caching policy.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment