internal HostNode(HostServer hostServer, string host) { this.hostServer = hostServer; string[] items = host.Split('-'); Host = items[0].Trim(); if (items.Length > 1) { Password = items[1].Trim(); } }
//Private constructor private MemcachedClient(string configValue) { hostServer = new HostServer(CacheType.MemCache, configValue); }
private RedisClient(string configValue) { hostServer = new HostServer(CacheType.Redis, configValue); hostServer.OnAuthEvent += new HostServer.AuthDelegate(hostServer_OnAuthEvent); }