bool NFCPVPMatchRedisModule::DeletePlayerRoomID(const NFGUID& self, const NFGUID& xRoomID) { NF_SHARE_PTR<NFINoSqlDriver> pNoSqlDriver = m_pNoSqlModule->GetDriverBySuitConsistent(); if (pNoSqlDriver) { std::string strKey = MakePlayerRoomKey(); return pNoSqlDriver->HDel(strKey, self.ToString()); } return false; }
bool NFCPVPMatchRedisModule::DeleteRoomInfo(const NFGUID& xRoomID) { NF_SHARE_PTR<NFINoSqlDriver> pNoSqlDriver = m_pNoSqlModule->GetDriverBySuitConsistent(); if (pNoSqlDriver) { std::string strKey = MakePvpRoomRedisKey(); std::string strData; if (pNoSqlDriver->HDel(strKey, xRoomID.ToString())) { return true; } } return false; }
bool NFCPVPMatchRedisModule::DeleteStatusRoomID(const int nPVPMode, const int nGrade, const int nStatus, const NFGUID& xRoomID) { NF_SHARE_PTR<NFINoSqlDriver> pNoSqlDriver = m_pNoSqlModule->GetDriverBySuitConsistent(); if (pNoSqlDriver) { std::string strKey = MakeStatusRoomIDRedisKey(nPVPMode, nGrade, nStatus); std::string strData; std::vector<std::string> valueVec; if (pNoSqlDriver->HDel(strKey, xRoomID.ToString())) { return true; } } return false; }
bool NFCPVPMatchRedisModule::DeletetStatusRoomID(const int nPVPMode, const int nGrade, const int nStatus, const std::vector<NFGUID>& xRoomIDList) { NF_SHARE_PTR<NFINoSqlDriver> pNoSqlDriver = m_pNoSqlModule->GetDriverBySuitConsistent(); if (pNoSqlDriver) { std::string strKey = MakeStatusRoomIDRedisKey(nPVPMode, nGrade, nStatus); std::string strData; for (int i = 0; i < xRoomIDList.size(); ++i) { pNoSqlDriver->HDel(strKey, xRoomIDList[i].ToString()); } return true; } return false; }
bool NFCPVPMatchRedisModule::DeleteRoomInfoList(const std::vector<NFGUID>& xRoomIDList) { NF_SHARE_PTR<NFINoSqlDriver> pNoSqlDriver = m_pNoSqlModule->GetDriverBySuitConsistent(); if (pNoSqlDriver) { std::string strKey = MakePvpRoomRedisKey(); std::vector<std::string> vFields; for (int i = 0; i < xRoomIDList.size(); ++i) { pNoSqlDriver->HDel(strKey, xRoomIDList[i].ToString()); } return true; } return false; }