Q:

Clear stale entries from Cache in Volley-Android

I am trying to clear all the stale entries from Cache.  I found this link.  In this link all the cache is cleared.  I want to delete only the expired one.  
I am using following Cache key: URL + post params
Is there anyway we can enumerate over all the cached entries, check validity and delete them? 

A:

I ended up extending Cache interface to provide me list of keys.  I have posted the full solution here.