-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all caches #37
Comments
$cacheFactory has limited functionality, and no ability to remove all caches at once. With $angularCacheFactory you could do the following to clear all caches: var keySet = $angularCacheFactory.keySet();
for (var key in keySet) {
$angularCacheFactory.get(key).removeAll();
} or var keySet = $angularCacheFactory.keySet();
for (var key in keySet) {
$angularCacheFactory.get(key).destroy();
} |
Yes, I was reffering to angularCacheFactory. Thanks for the tip and an awesome lib! |
No problem! Do you think it is worth it to add |
Yes, please (in my opinion)! :) On Tuesday, September 3, 2013, Jason Dobry wrote:
|
K. They should make it into v1.1.0. |
Yes and thank you. That would be quite convenient :) |
Hi there!
It might be nice to have an option to clear all caches without calling each one by name.
I think I can wrap cache factory to keep track of all the created caches but maybe there is such an option already?
The text was updated successfully, but these errors were encountered: