MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Exists

Method Exists

RedisStudio/Redis/RedisClient.cpp:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool RedisClient::Exists(const std::string& key)
136{
137 ScopedRedisReply reply(Command("EXISTS %s", key.c_str()));
138 if (reply.IsNull() || reply->type!=REDIS_REPLY_INTEGER || reply->integer==0) return false;
139 return true;
140}
141
142bool RedisClient::Type(const std::string& key, string& type)
143{

Callers

nothing calls this directly

Calls 1

IsNullMethod · 0.45

Tested by

no test coverage detected