
com.nostra13.universalimageloader.cache.disc.DiscCacheAware Maven / Gradle / Ivy
package com.nostra13.universalimageloader.cache.disc;
import java.io.File;
/**
* Interface for disc cache
*
* @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
*/
public interface DiscCacheAware {
/**
* This method must not to save file on file system in fact. It is called after image was cached in cache directory
* and it was decoded to bitmap in memory. Such order is required to prevent possible deletion of file after it was
* cached on disc and before it was tried to decode to bitmap.
*/
void put(String key, File file);
/**
* Returns {@linkplain File file object} appropriate incoming key.
* NOTE: Must not to return a null. Method must return specific {@linkplain File file object} for
* incoming key whether file exists or not.
*/
File get(String key);
/** Clears cache directory */
void clear();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy