Skip to content

Commit

Permalink
Enabled backup in persistent cache (local storage).
Browse files Browse the repository at this point in the history
#cache
  • Loading branch information
jeandat committed Feb 8, 2016
1 parent 778741a commit 65c3ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app.run.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@

var options = {
maxAge: 60 * 60 * 1000, // Items added to this cache expire after 1 hour
deleteOnExpire: 'passive' // Cache will do nothing when an item expires.
deleteOnExpire: 'passive', // Cache will do nothing when an item expires.
// Expired items will remain in the cache until requested, at which point they are removed, and undefined is returned.
storageMode: 'localStorage' // This cache will use `localStorage`.
};

$log.debug('Created a default cache for HTTP requests with properties:', options);
Expand Down

0 comments on commit 65c3ba4

Please sign in to comment.