$cacheFactory

Improve this Doc View Source $cacheFactory

  1. service in module ng

Factory that constructs Cache objects and gives access to them.

var cache = $cacheFactory('cacheId');
expect($cacheFactory.get('cacheId')).toBe(cache);
e