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

Method set_attrs

lib_acl_cpp/src/session/memcache_session.cpp:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool memcache_session::set_attrs(const std::map<string, session_string>& attrs)
63{
64 const char* sid = get_sid();
65 if (sid == NULL || *sid == 0) {
66 return false;
67 }
68
69 string buf;
70 serialize(attrs, buf); // �������
71 time_t ttl = get_ttl();
72 return cache_->set(sid, buf.c_str(), buf.length(), ttl);
73}
74
75bool memcache_session::remove(void)
76{

Callers

nothing calls this directly

Calls 6

get_sidFunction · 0.50
serializeFunction · 0.50
get_ttlFunction · 0.50
setMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected