Hello Guys ,我碰巧有一个项目,其中我使用了Volley库。然后我发现凌空得到了来自网址的响应我倾向于缓存它。所以我现在想要的是清除特定网址的缓存。
我试过了:
AppController.getInstance().getRequestQueue().getCache().remove(url);
还有这个:
AppController.getInstance().getRequestQueue().getCache().invalidate(url, true);
我得到了这个答案here
感谢您的期待。