Skip to content

Instantly share code, notes, and snippets.

@pjsvis
Created December 9, 2013 10:57
Show Gist options
  • Select an option

  • Save pjsvis/7870507 to your computer and use it in GitHub Desktop.

Select an option

Save pjsvis/7870507 to your computer and use it in GitHub Desktop.
angular.module('app', ['jmdobry.angular-cache']).config(function ($angularCacheProvider) {
// optionally set cache defaults
$angularCacheFactoryProvider.setCacheDefaults({ options... });
}).run(function ($angularCacheFactory) {
// Create a cache here, or anywhere else. Just inject $angularCacheFactory
var newCache = $angularCacheFactory('newCache', { options... });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment