title: Why use a cache
body: <p>In <a href="https://angularjs.org/" rel="nofollow"><code>AngularJS</code></a> you can create a cache. </p>
  
  <p>This is essentially nothing more than the equivalent of an <code>ArrayList&lt;T&gt;</code> in Java where you can add/remove items. In Javascript though, you have push and pop to add/remove stuff from an array. </p>
  
  <p>So why would you want to use AngularJS' cache?</p>
  
  <p><a href="https://docs.angularjs.org/api/ng/service/%24cacheFactory" rel="nofollow">https://docs.angularjs.org/api/ng/service/$cacheFactory</a></p>