I am trying to figure out a way to cache records I retrieve using ember-data with the ActiveModelAdapter to localStorage. In the past, I have used the localForageAdapter for ember-data models. I am looking for suggestions for a way of caching ember-data records locally via localStorage. I was thinking about duplicating my ActiveModel adapter models with localForage adapter models and duplicating all records retrieved by ActiveModel models to the equivalent LocalForage models. This approach doesn’t feel very clean. Another approach I was considering was overwriting the ActiveModelSerializer to attempt to store data to localStorage. The last approach I was considering was to scrap out ember-data and just use ember-orbit although that would require a big rewrite and also I ember-orbit doesn’t seem that well documented and battle tested.
Can anyone give advice on how to locally cache data in localStorage?