Remove() 공개 메소드

public Remove ( string key ) : Object
key string
리턴 Object
예제 #1
0
        public void OkToRemoveNonExistingObject()
        {
            var cache      = new MockCache();
            var cache_span = new TimeSpan(0, 0, 2);
            var key        = blob_uri.ToString();

            cache.Remove(key);
            Assert.That(cache[key] == null);
        }
예제 #2
0
        public void RemovedObjectIsGone()
        {
            var cache      = new MockCache();
            var cache_span = new TimeSpan(0, 0, 2);
            var key        = blob_uri.ToString();

            cache.Insert(key, view_contents, null, Cache.NoAbsoluteExpiration, cache_span, CacheItemPriority.Normal, null);
            cache.Remove(key);
            Assert.That(cache[key] == null);
        }
예제 #3
0
 public void RemovedObjectIsGone()
 {
     var cache = new MockCache();
     var cache_span = new TimeSpan(0, 0, 2);
     var key = blob_uri.ToString();
     cache.Insert(key, view_contents, null, Cache.NoAbsoluteExpiration, cache_span, CacheItemPriority.Normal, null);
     cache.Remove(key);
     Assert.That(cache[key] == null);
 }
예제 #4
0
 public void OkToRemoveNonExistingObject()
 {
     var cache = new MockCache();
     var cache_span = new TimeSpan(0, 0, 2);
     var key = blob_uri.ToString();
     cache.Remove(key);
     Assert.That(cache[key] == null);
 }