package eu.dnetlib.enabling.aas.retrievers.cache;

/**
 * Profiles cache module.
 * 
 * @author mhorst
 *
 */
public interface IProfilesCache {

	/**
	 * Returns cached profile.
	 * @param id
	 * @return cached profile
	 */
	public String getProfile(String id);
	
	/**
	 * Sets profile to be cached.
	 * @param id
	 * @param content
	 */
	public void setProfile(String id, String content);
	
	/**
	 * Removes profile for given id. Returns removed profile 
	 * content or null if not found.
	 * @param id
	 * @return removed profile content or null if not found
	 */
	public String removeProfile(String id);
	
}
