Ejemplo n.º 1
0
 public static void Setup(string name, DME_RedisNode node, int sendTimeout)
 {
     if (instances.ContainsKey(name))
     {
         throw new Exception("Trying to configure RedisClient instance \"" + name + "\" twice.");
     }
     instances[name] = new DME_RedisClient(node.Host, node.Port, node.PassWord, sendTimeout);
 }
Ejemplo n.º 2
0
 public static DME_RedisClient GetInstance()
 {
     return defaultInstance ?? (defaultInstance = GetInstance("Default"));
 }