Exemple #1
0
 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();
     }
 }
Exemple #2
0
 //Private constructor
 private MemcachedClient(string configValue)
 {
     hostServer = new HostServer(CacheType.MemCache, configValue);
 }
Exemple #3
0
 private RedisClient(string configValue)
 {
     hostServer              = new HostServer(CacheType.Redis, configValue);
     hostServer.OnAuthEvent += new HostServer.AuthDelegate(hostServer_OnAuthEvent);
 }