Example #1
0
        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);
        }
Example #2
0
 public void AddOrUpdate(string key, Bitmap bmp, TimeSpan duration)
 {
     diskCache.AddOrUpdate(key, bmp, duration);
     memCache.Put(key, bmp);
 }