/// <summary> /// http://marcgravell.blogspot.com/2010/01/distributed-caching-with-protobuf-net.html /// http://code.google.com/p/protobuf-net/ /// </summary> /// <param name="memcachedRoleName"></param> /// <param name="memcachedEndpointName"></param> /// <returns></returns> public static MemcachedClient CreateProtobufferClient(string memcachedRoleName, string memcachedEndpointName) { //-- Here we inject our custom Proto-buffer "transcoder" var transcoder = new NetTranscoder(); return(new MemcachedClient(new WindowsAzureServerPool(memcachedRoleName, memcachedEndpointName), new DefaultKeyTransformer(), transcoder)); }
/// <summary> /// http://marcgravell.blogspot.com/2010/01/distributed-caching-with-protobuf-net.html /// http://code.google.com/p/protobuf-net/ /// </summary> /// <param name="memcachedRoleName"></param> /// <param name="memcachedEndpointName"></param> /// <returns></returns> public static MemcachedClient CreateProtobufferClient(string memcachedRoleName, string memcachedEndpointName) { //-- Here we inject our custom Proto-buffer "transcoder" var transcoder = new NetTranscoder(); return new MemcachedClient(new WindowsAzureServerPool(memcachedRoleName, memcachedEndpointName), new DefaultKeyTransformer(), transcoder); }