我正在将 Volley 集成到一个项目中并遇到了标准
[我们在缓存中有项目,但无论如何都希望允许用户刷新] 场景
现在 Google Volley 提供了两种从缓存中清除项目的方法:
getRequestQueue().getCache().remove(key);
和
getRequestQueue().getCache().invalidate(key, fullExpire);
我查看了代码,有点惊讶,invalidate设置fullExpire为 true 的行为与调用remove(key).
有人可以解释使用fullExpireover的好处remove()吗?