Memcached를 캐시 저장소로 사용하는 NHibernate 2nd Cache의 Client 클래스입니다.
상속: NHibernate.Cache.ICache
        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);
        }
예제 #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);
        }
예제 #3
0
        public void Build_Without_Properties()
        {
            var cache = new MemcachedCacheClient("rcl");

            Assert.IsNotNull(cache);
        }
예제 #4
0
        public void Can_DefaultConstructor()
        {
            var cache = new MemcachedCacheClient();

            Assert.IsNotNull(cache);
        }
예제 #5
0
        public void Remove_Null_Key()
        {
            var cache = new MemcachedCacheClient();

            cache.Remove(null);
        }
 public void Remove_Null_Key() {
     var cache = new MemcachedCacheClient();
     cache.Remove(null);
 }
 public void Build_Without_Properties() {
     var cache = new MemcachedCacheClient("rcl");
     Assert.IsNotNull(cache);
 }
 public void Can_DefaultConstructor() {
     var cache = new MemcachedCacheClient();
     Assert.IsNotNull(cache);
 }