/** * @param cacheDir Directory for file caching. <b>Important:</b> Specify separate folder for * cached files. It's needed for right cache limit work. * @param maxCacheSize Maximum cache directory size (in bytes). If cache size exceeds this limit * then file with the most oldest last usage date will be deleted. */ public TotalSizeLimitedDiscCache(File cacheDir, int maxCacheSize) { this(cacheDir, FileNameGenerator.createDefault(), maxCacheSize); }
private String getKey(String imageUri) { return fileNameGenerator.generate(imageUri); }