AWS ElastiCache c# error

admin

Administrator
Staff member
I haven't been able to find many decent examples of how to use AWS Elasticache from c#.

<a href="http://jacace.wordpress.com/2013/02/24/using-the-amazon-elasticache-in-c/" rel="nofollow">http://jacace.wordpress.com/2013/02/24/using-the-amazon-elasticache-in-c/</a> suggested the BeIT library, which I am trying.

Here's my code so far:

Code:
        string memCachedUrl = "mycache.xxxxxx.cfg.use1.cache.amazonaws.com:11211";
        MemcachedClient.Setup("mycache", new string[] { memCachedUrl });
        MemcachedClient cache = MemcachedClient.GetInstance("mycache");

        aData n = new aData();
        cache.Set("aData",1234);

and the error I get is:

Code:
29/05/2013 9:52:19 AM ERROR BeIT.MemCached.SocketPool - Error connecting to: 54. 
243.16.75 
The operation completed successfully
at BeIT.MemCached.PooledSocket..ctor(SocketPool socketPool, IPEndPoint endPoint, Int32 endReceiveTimeout, Int32 connectTimeout) in l:\Projects\BeITMemcached
\ClientLibrary\PooledSocket.cs:line 63 
at BeIT.MemCached.SocketPool.Acquire() in l:\Projects\BeITMemcached\ClientLibrary\SocketPool.cs:line 151

what am I doing wrong?
Is there any good sample c# code anywhere?

<strong>UPDATE</strong>

I was trying to call this from outside AWS - apparently this is not possible