/** * Returns the file using the given format and parameters, and * updates the last modified date of the file (used for LRU strategy). */ private File getFileInCache(String format, Object... params) { File fileInCache = new File(cacheDir.getAbsoluteFile(), String.format(format, params)); if (fileInCache.exists()) { touchFile(fileInCache); } return fileInCache; }