Esempio n. 1
0
        private static void MemcachedTest()
        {
            ICacheMgr mgr = new MemcachedMgr();

            Console.WriteLine(mgr.RemoveAll());
            Console.WriteLine(mgr.Add <string>(key, value1));
            Console.WriteLine(mgr.Set <string>(key, value1));
            Console.WriteLine(mgr.Exist(key));
            Console.WriteLine(mgr.Get <string>(key));
            Console.WriteLine(mgr.Remove(key));
        }