New function to know is a file is in the cache or not.