Code example for LruCache

Methods: get, put

0
		return instance;
	} 
	 
	public void addBitmapToMemoryCache(String url, Bitmap bitmap) {
	    if (getBitmapFromMemCache(url) == null) {
	    	memoryCache.put(url, bitmap);
	    } 
	} 
	 
	public Bitmap getBitmapFromMemCache(String key) {
	    return memoryCache.get(key);
	} 
 
}