如何在Android中清除网址的凌空缓存

时间:2015-12-02 15:48:50

标签: java android android-volley lru

Hello Guys ,我碰巧有一个项目,其中我使用了Volley库。然后我发现凌空得到了来自网址的响应我倾向于缓存它。所以我现在想要的是清除特定网址的缓存。

我试过了:

    AppController.getInstance().getRequestQueue().getCache().remove(url);

还有这个:

    AppController.getInstance().getRequestQueue().getCache().invalidate(url, true);

我得到了这个答案here

感谢您的期待。

0 个答案:

没有答案