Created
April 16, 2011 16:34
-
-
Save domgreen/923254 to your computer and use it in GitHub Desktop.
setting up memcached in Azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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