| 330 | } |
| 331 | |
| 332 | bool RedisClient::DelKey( const std::string& key ) |
| 333 | { |
| 334 | ScopedRedisReply reply(Command("DEL %s", key.c_str())); |
| 335 | if (reply.IsNull() || reply->type != REDIS_REPLY_INTEGER || reply->integer == 0) |
| 336 | { |
| 337 | return false; |
| 338 | } |
| 339 | return true; |
| 340 | } |
| 341 | |
| 342 | bool RedisClient::UpdateData( const std::string& key, |
| 343 | const std::string& oldValue, |