How to use MemcachedClient

Apr 19, 2010 at 3:03 PM

Hi,

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[] { "127.0.0.1" });
client.Set(txtKey.Text, txtValue.Text);

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

 

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

Thanks in Advance.

Coordinator
Apr 21, 2010 at 4: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 6:09 AM

Thanks for your reply.

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