ใช้ ember-localstorage adapter
App.store = DS.Store.create({
revision: 11,
adapter: DS.LSAdapter.create()
});
ตัวอย่าง
คุณต้องกำหนด adapter ที่ต้องการใช้สำหรับ client-side storage:
App.Store = DS.SyncStore.extend({
revision: 10,
adapter: DS.IndexedDB.adapter({
mappings: {
person: App.Person,
persons: App.Person,
contact: App.Contact,
contacts: App.Contact
}
})
});