예제 #1
0
 /**
  * @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);
 }
예제 #2
0
 private String getKey(String imageUri) {
   return fileNameGenerator.generate(imageUri);
 }