Code example for LinkedHashMap

Methods: clear, isEmpty

0
	/** 
	 * This API completely clears the internal image cache. Should be used only in emergency. 
	 */ 
	public void decache() { 
 
		if(!imageCache.isEmpty()) {
			imageCache.clear();
			imageCacheSize = 0;
		} 
	} 
 
	/** 
	 * This API is exposed to user to do manual tag based purging. So once they have passed tags along with 
	 * image requests and they choose to purge all those images associated with specific tag name can be purged. 
	 *  
	 * @param tag tag string to purge with. 
	 */ 
	public void decacheByTag(String tag) {
		if(tag != null) {
			if(tagMap.containsKey(tag)) {
				ArrayList<String> list = tagMap.remove(tag);