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

Method get_attrs

lib_acl_cpp/src/session/redis_session.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool redis_session::get_attrs(std::map<string, session_string>& attrs)
113{
114 attrs_clear(attrs);
115 const char* sid = get_sid();
116 if (sid == NULL || *sid == 0) {
117 return false;
118 }
119
120 command_->clear();
121 return command_->hgetall(sid, (std::map<string, string>&) attrs);
122}
123
124bool redis_session::get_attrs(const std::vector<string>& names,
125 std::vector<session_string>& values)

Callers

nothing calls this directly

Calls 7

hgetallMethod · 0.80
hmgetMethod · 0.80
beginMethod · 0.80
get_sidFunction · 0.50
clearMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected