| 248 | } |
| 249 | |
| 250 | long long RedisClient::DbSize() |
| 251 | { |
| 252 | long long dbsize = 0; |
| 253 | ScopedRedisReply reply(Command("DBSIZE")); |
| 254 | if (!reply.IsNull() && reply->type == REDIS_REPLY_INTEGER) |
| 255 | { |
| 256 | dbsize = reply->integer; |
| 257 | } |
| 258 | return dbsize; |
| 259 | } |
| 260 | |
| 261 | bool RedisClient::GetConfig(TDicConfig& dicConfig) |
| 262 | { |