You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use angular-cache as default one for $recourse.
At app.run
$http.defaults.cache=CacheFactory('defaultCache',{maxAge: 15*60*1000,// Items added to this cache expire after 15 minutescacheFlushInterval: 60*60*1000,// This cache will clear itself every hourdeleteOnExpire: 'aggressive'// Items will be deleted from this cache when they expire});
Api.js config file (it is registered before app.run):
You may be trying to use the cache without having been instantiated yet.
Or try putting "cache: CacheFactory.get ('defaultCache')" instead of "cache: true"
Hi all,
I'm trying to use angular-cache as default one for $recourse.
At app.run
Api.js config file (it is registered before app.run):
However, when I try to get this keys array is empty
Any ideas?
Thanks
The text was updated successfully, but these errors were encountered: