MCPcopy Create free account
hub / github.com/acl-dev/acl / get_attrs

Method get_attrs

lib_acl_cpp/src/session/memcache_session.cpp:43–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bool 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
62bool memcache_session::set_attrs(const std::map<string, session_string>& attrs)
63{

Callers

nothing calls this directly

Calls 3

get_sidFunction · 0.50
deserializeFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected