ใช้อแดปเตอร์ ember-localstorage
App.store = DS.Store.create({
revision: 11,
adapter: DS.LSAdapter.create()
}); ตัวอย่าง
คุณต้องกำหนดอะแดปเตอร์ที่คุณต้องการใช้สำหรับที่เก็บข้อมูลฝั่งไคลเอ็นต์ -
App.Store = DS.SyncStore.extend({
revision: 10,
adapter: DS.IndexedDB.adapter({
mappings: {
person: App.Person,
persons: App.Person,
contact: App.Contact,
contacts: App.Contact
}
})
});