How to use MemcachedClient

Apr 19, 2010 at 4:03 PM


Thanks for the project as i had lot of issues with solution accelarator. Could you please provide some documentation on how to use AzureCache.

I have tried using it using 
 MemcachedClient client = new MemcachedClient(new string[] { "" });
client.Set(txtKey.Text, txtValue.Text);

But when I try retriving value like below it fails.
MemcachedClient  client = new MemcachedClient(new string[] { "" }); 
txtValue.Text = (client.Get(txtKey.Text)).ToString() ;


Please provide some basic documentation on how to use it in the Azure Code.

Thanks in Advance.

Apr 21, 2010 at 5:07 PM
Hey ssachin, glad to help you. In short you must deploy the solution to your local AppFabric store. Once you accomplish this you can add a service reference to the exposed WCF endpoint. This is typically localhost:81/services/cache.svc. Use Visual Studio to "right click add service reference to http://localhost:81/services/cache.svc" and the WCF contracts will be generated. From there you can simply call the WCF service for caching. Would you think a video might help more than documentation? If so please let me know and I'll throw something together and put it into the docs.
Apr 29, 2010 at 7:09 AM

Thanks for your reply.

But for everybody's benefit a short video would definitely be very helpful.