本文整理汇总了C++中NF_SHARE_PTR::HDel方法的典型用法代码示例。如果您正苦于以下问题:C++ NF_SHARE_PTR::HDel方法的具体用法?C++ NF_SHARE_PTR::HDel怎么用?C++ NF_SHARE_PTR::HDel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NF_SHARE_PTR
的用法示例。
在下文中一共展示了NF_SHARE_PTR::HDel方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DeletePlayerRoomID
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;
}
示例2: DeleteRoomInfo
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;
}
示例3: DeleteStatusRoomID
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;
}
示例4: DeletetStatusRoomID
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;
}
示例5: DeleteRoomInfoList
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;
}