| 41 | } |
| 42 | |
| 43 | bool memcache_session::get_attrs(std::map<string, session_string>& attrs) |
| 44 | { |
| 45 | // ���ԭ������ |
| 46 | attrs_clear(attrs); |
| 47 | const char* sid = get_sid(); |
| 48 | if (sid == NULL || *sid == 0) { |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | string buf; |
| 53 | if (!cache_->get(sid, buf)) { |
| 54 | return false; |
| 55 | } |
| 56 | |
| 57 | // �����л� |
| 58 | deserialize(buf, attrs); |
| 59 | return true; |
| 60 | } |
| 61 | |
| 62 | bool memcache_session::set_attrs(const std::map<string, session_string>& attrs) |
| 63 | { |
nothing calls this directly
no test coverage detected