Code example for LruCache

Methods: get, put

0
  } 
   
  public void addBitmapToMemoryCache(String key, Bitmap bitmap)
  { 
    if (getBitmapFromMemoryCache(key) == null )
	  mMemoryCache.put(key, bitmap);
  } 
   
  public Bitmap getBitmapFromMemoryCache(String key)
  { 
	return mMemoryCache.get(key);
  } 
}