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

Method SelectDB

RedisStudio/Redis/RedisClient.cpp:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237bool RedisClient::SelectDB( int dbindex )
238{
239 redisReply* reply = Command("SELECT %d", dbindex);
240 if (!reply) return false;
241 if (reply->type != REDIS_REPLY_STATUS)
242 {
243 freeReplyObject(reply);
244 return false;
245 }
246 freeReplyObject(reply);
247 return true;
248}
249
250long long RedisClient::DbSize()
251{

Callers

nothing calls this directly

Calls 1

freeReplyObjectFunction · 0.85

Tested by

no test coverage detected