I am integrating Volley into a project and came across the standard
[We have items in the Cache, but want to allow the User to refresh anyway] Scenario
Now Google Volley provides 2 ways to clear an item from the Cache:
getRequestQueue().getCache().remove(key);
and
getRequestQueue().getCache().invalidate(key, fullExpire);
I looked into the code and was a bit surprised, that invalidate
with fullExpire
set to true doesn't behave exactly like a call to remove(key)
.
Can somebody explain the benefits of using fullExpire
over remove()
?