Ember has the library ember-data, which handles all relational data for you. It currently only works with REST-based apis ({json:api} being the best spec in REST for this), but it manages cache / requests / etc for you. No need to configure anything.
Ember has the library
ember-data
, which handles all relational data for you. It currently only works with REST-based apis ({json:api}
being the best spec in REST for this), but it manages cache / requests / etc for you. No need to configure anything.usage is this:
and then later down the road when you want to read from the cache, you can
this.store.peekAll('user')
for synchronous access to the cacheMore information here: guides.emberjs.com/release/models/