110,572
社区成员
发帖
与我相关
我的任务
分享
public static bool KeyExists(string key, int db = -1)
{
try
{
using (var client = ConnectionMultiplexer.Connect(_conn))
{
return Manager.GetDatabase(db).KeyExists(key);
}
}
catch (Exception)
{
return false;
}
}