Put() public méthode

항목을 캐시에 저장
public Put ( object key, object value ) : void
key object
value object
Résultat void
        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);
        }
Exemple #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);
        }