Get() public method

Get the object from the Cache
public Get ( object key ) : object
key object
return object
        public void Retrive_By_Null_Key_Return_Null() {
            var cache = new MemcachedCacheClient();
            cache.Put("rcl", "value");

            Thread.Sleep(100);

            object item = cache.Get(null);
            Assert.IsNull(item);
        }
Esempio n. 2
0
        public void Retrive_By_Null_Key_Return_Null()
        {
            var cache = new MemcachedCacheClient();

            cache.Put("rcl", "value");

            Thread.Sleep(100);

            object item = cache.Get(null);

            Assert.IsNull(item);
        }