| 79 | } |
| 80 | |
| 81 | bool redis_session::del(const char* name) |
| 82 | { |
| 83 | const char* sid = get_sid(); |
| 84 | if (sid == NULL || *sid == 0) { |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | command_->clear(); |
| 89 | return command_->hdel(sid, name) >= 0 ? true : false; |
| 90 | } |
| 91 | |
| 92 | bool redis_session::set_attrs(const std::map<string, session_string>& attrs) |
| 93 | { |