public void Stop(eRedis db) { if (true == m_dicConns.ContainsKey(db)) { m_dicConns[db].Close(); m_dicConns.Remove(db); } }
public bool Start(eRedis db, string strConn = "localhost:6379") { if (true == m_dicConns.ContainsKey(db)) { if (true == m_dicConns[db].IsConnected) { Logger.Log("RedisMultiplexer Already Start"); return(true); } } return(GetConnection(db, strConn)); }
protected bool GetConnection(eRedis db, string strConn) { try { if (true == m_dicConns.ContainsKey(db)) { m_dicConns[db].Close(); m_dicConns.Remove(db); } ConnectionMultiplexer conn = ConnectionMultiplexer.Connect(strConn); m_dicConns.Add(db, conn); } catch (Exception ex) { Logger.Error(ex.ToString()); return(false); } Logger.Info("Start ==> RedisMultiplexer {0}", db); return(true); }
public urq_ClearMaze(eRedis db) { m_eDataBase = db; }
public urq_CompleteMission(eRedis db) { m_eDataBase = db; }
public urq_SetStat(eRedis db) { m_eDataBase = db; }
public urq_BuyGood(eRedis db) { m_eDataBase = db; }
public urq_SellItem(eRedis db) { m_eDataBase = db; }
public urq_IABPuchase(eRedis db) { m_eDataBase = db; }
public urq_CreateLord(eRedis db) { m_eDataBase = db; }
//public IDatabase GetDataBase(eDBRedis db) //{ // eRedis kind = (eRedis)Macro.HIWORD((int)db); // int type = (int)db - Macro.LOWORD((int)kind); // if (false == m_dicConns.ContainsKey(kind)) // return null; // return m_dicConns[kind].GetDatabase(type); //} public IDatabase GetDataBase(eRedis db) { return(m_dicConns[db].GetDatabase((int)db)); }
public urq_RefreshInDun(eRedis db) { m_eDataBase = db; }
public urq_GetGameServer(eRedis database) { m_eDataBase = database; }
public urq_GetToken(eRedis database) { m_eDataBase = database; }
public urq_EnchantItem(eRedis db) { m_eDataBase = db; }
public urq_SetRubyLog(eRedis db) { m_eDataBase = db; }
public urq_UpdateAuthToken(eRedis database) { m_eDataBase = database; }
public urq_SetItemInven(eRedis db) { m_eDataBase = db; }
public urq_ClearExplore(eRedis db) { m_eDataBase = db; }
public urq_GetAccIdWithName(eRedis db) { m_eDataBase = db; }
public urq_SetRank(eRedis db) { m_eDataBase = db; }
public urq_ResetItem(eRedis db) { m_eDataBase = db; }
public urq_ClearDragonTomb(eRedis db) { m_eDataBase = db; }
public urq_GetOtherLord(eRedis db) { m_eDataBase = db; }
public urq_SetLordBase(eRedis db) { m_eDataBase = db; }
public urq_GetMissions(eRedis db) { m_eDataBase = db; }
public urq_ClearInDun(eRedis db) { m_eDataBase = db; }
public urq_UseForge(eRedis db) { m_eDataBase = db; }
public urq_EquipItem(eRedis db) { m_eDataBase = db; }