public SelfDisposingBitmapDrawable AddOrUpdate(string key, Bitmap bmp, TimeSpan duration) { diskCache.AddOrUpdate(key, bmp, duration); var drawable = CreateCacheableDrawable(bmp); memCache.Add(new Uri(key), drawable); return(drawable); }
public void AddOrUpdate(string key, Bitmap bmp, TimeSpan duration) { diskCache.AddOrUpdate(key, bmp, duration); memCache.Put(key, bmp); }