title: How to make the Ember Local Storage Adapter (LSAdapter) work with the Ember REST Adapter?
body: <p>I would like to take advantage of both the Ember Local Storage Adapter (LSAdapter) and the Ember REST Adapter (RESTAdapter), so that there is a centralized database for all the users while avoiding sending an Ajax request for each user action.</p>
  
  <p>Specifically, I would like to:</p>
  
  <ol>
  <li>Populate the LSAdapter with data from the server. </li>
  <li>All changes users make are updated to the LSAdapter. (I know how to do this step)<br />
   (In preparation for #3, I can have a model that saves a log in LSAdapter of all the updates)</li>
  <li>Once in n minutes, the LSAdapter update data are sent back to the server.</li>
  </ol>
  
  <p>My backend server is NOT Rails, so please make the answers generic. </p>
  
  <p><strong>Is it possible to use BOTH LSAdapter and RESTAdapter in an Ember app? If so, please provide code sample of how to set it up.</strong><br />
  I would also appreciate if you provide code sample for steps 1 and 3, basically, how a database can talk to the local storage and vice versa.</p>
  
  <hr>
  
  <p>If it's not possible to have both LSADapter and RESTAdapter, what can I do to accomplish steps 1 and 3?</p>
  
  <p>The only get around I can think of is to set up the Ember app store as a RESTAdapter, but then call <a href="http://www.w3schools.com/html/html5_webstorage.asp" rel="noreferrer">Web Storage localstorage</a> directly in my app, not calling it from LSAdapter at all.  Let me know if there is an easier or built-in way.</p>