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); }
public static DME_RedisClient GetInstance() { return defaultInstance ?? (defaultInstance = GetInstance("Default")); }