有没有办法让所有的键出棱角分明,特别是模板缓存缓存的? [英] Is there a way to get all of the keys out of a cache in Angular, specifically the template cache?

查看:124
本文介绍了有没有办法让所有的键出棱角分明,特别是模板缓存缓存的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让所有的键出棱角分明,特别是模板缓存缓存的?

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

我不知道如何做到这一点的文档中的 $ cacheFactory什么或为 $ templateCache 。 (或从谷歌左右....)

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....)

推荐答案

我没那么到$ cacheFactory角材,因为我们使用的 https://github.com/jmdobry/angular-cache 。在那里,你可以实际上是通过按键做这种事情()或键设置()

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()

这篇关于有没有办法让所有的键出棱角分明,特别是模板缓存缓存的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆