Skip to content

Instantly share code, notes, and snippets.

@domgreen
Created April 16, 2011 16:34
Show Gist options
  • Save domgreen/923254 to your computer and use it in GitHub Desktop.
Save domgreen/923254 to your computer and use it in GitHub Desktop.
setting up memcached in Azure
_endpoints = new Dictionary();
foreach (var endpoint in RoleEnvironment.Roles[_memcachedRoleName].Instances)
{
foreach (var epi in endpoint.InstanceEndpoints)
{
if (epi.Key == "memcached")
{
_endpoints.Add(epi.Value.RoleInstance.Id.ToString(),epi.Value.IPEndpoint);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment