title: Cache duplicate Universal ImageLoader and Picasso
body: <p>Use two biblotecas in my application, Universal Image Loader and another that uses the library picasso,</p>
  
  <p>the picasso library, records the image in the cache /cache/picasso-cache/ and the names are generated with the MD5 URL.</p>
  
  <p>To separate the cache Universal Image Loader, I write to /cache/LazyLoad/ and names generated with the item ID.</p>
  
  <p>My code of configuration Universal Image Loader </p>
  
  <pre><code>DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder()
                  .resetViewBeforeLoading(true)
                  .cacheOnDisk(true)
                  .cacheInMemory(true)
                  .imageScaleType(ImageScaleType.EXACTLY)
                  .displayer(new FadeInBitmapDisplayer(300))
                  .build();
  
  ImageLoaderConfiguration.Builder config = new  ImageLoaderConfiguration.Builder(getApplicationContext());
          config.defaultDisplayImageOptions(defaultOptions);
          config.memoryCache(new WeakMemoryCache());
          config.threadPriority(Thread.NORM_PRIORITY - 2);
          config.denyCacheImageMultipleSizesInMemory();
  
          config.tasksProcessingOrder(QueueProcessingType.LIFO);
          config.writeDebugLogs(); // for debug
  
  FileNameGenerator fileNameGenerator = new FileNameGenerator() {
              @Override
              public String generate(String imageUri) {
                  String fileName = imageUri.substring(imageUri.lastIndexOf('/')+1, imageUri.length());
                  String fileNameWithoutExtension = fileName.substring(0, fileName.lastIndexOf('.'));
                  return fileNameWithoutExtension;
              }
          };
  
          String pathCache = Globais.getCacheDirImageLazyLoad(mContext); //returns StorageUtils.getCacheDirectory(context, false).getAbsolutePath() + "/lazyload";
          File f  = new File(pathCache);
          if (!f.exists())
              f.mkdirs();
  
          DiskCache diskCache = new UnlimitedDiskCache(f, null, fileNameGenerator);
          config.diskCache(diskCache);
  
          config.diskCacheFileNameGenerator(fileNameGenerator);
  
          ImageLoader.getInstance().init(config.build());
  </code></pre>
  
  <p>Problem that after I started using the component that uses the picasso, began to double the cache, ALL images that use the Universal Image Loader, also appear in Picasso's cache.</p>
  
  <p>How can I fix this ???</p>
  
  <p>Anyone have any idea?</p>