Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get all of the keys out of a cache in Angular, specifically the template cache?

Is there a way to get all of the keys out of a cache in Angular, specifically the template cache?

I don't see anything about how to do this in the documentation for the $cacheFactory or for the $templateCache. (Or from Google or SO....)

like image 815
Jesus is Lord Avatar asked Aug 26 '13 15:08

Jesus is Lord


1 Answers

I'm not that into the angular build in $cacheFactory, because we use the $angularCacheFactory from https://github.com/jmdobry/angular-cache. There you can actually do such things via keys() or keySet()

like image 181
xam.esurk Avatar answered Nov 18 '22 12:11

xam.esurk