Beispiel #1
0
 public void Insert(
     string key,
     Object value,
     CacheDependency dependency,
     DateTime absolute_expiration,
     TimeSpan sliding_expiration,
     CacheItemPriority priority,
     CacheItemRemovedCallback removed_callback
     )
 {
     this.cache[key] = (byte[])value;
     var remover = new CacheEntryRemover(Remover);
     var result  = remover.BeginInvoke(key, sliding_expiration, null, null);
 }
Beispiel #2
0
        public void Insert(
			 string key,
			 Object value,
			 CacheDependency dependency,
			 DateTime absolute_expiration,
			 TimeSpan sliding_expiration,
			 CacheItemPriority priority,
			 CacheItemRemovedCallback removed_callback
		   )
        {
            this.cache[key] = (byte[])value;
            var remover = new CacheEntryRemover(Remover);
            var result = remover.BeginInvoke(key, sliding_expiration, null, null);
        }