Exemple #1
0
		private static void MemcachedClient_Get_Test()
		{
			MemcachedClient client = new MemcachedClient();
			var foo = client.Get("foo");
			Console.WriteLine("---------foo-----------");
			Console.WriteLine(foo);
			Console.WriteLine("---------foo-----------");
			
			Person p = client.Get("foo1") as Person;
			if (p == null)
				Console.WriteLine("---------foo1 null-----------");
			else
			{
				Console.WriteLine("---------foo1-----------");
				Console.WriteLine(p.ToString());
				Console.WriteLine("---------foo1-----------");
			}
		}
Exemple #2
0
		private static void MemcachedClient_Delete_Test()
		{
			MemcachedClient client = new MemcachedClient();
			client.Delete("foo1");
		}
Exemple #3
0
		private static void MemcachedClient_Set_Test()
		{
			MemcachedClient client = new MemcachedClient();
			client.Set("foo1", new Person { Name="zhanghui",Age=27 });

		}