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
}
})
});