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

Method set_timeout

lib_acl_cpp/src/session/redis_session.cpp:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159bool redis_session::set_timeout(time_t ttl)
160{
161 const char* sid = get_sid();
162 if (sid == NULL || *sid == 0) {
163 return false;
164 }
165
166 command_->clear();
167 return command_->expire(sid, (int) ttl) > 0 ? true : false;
168}
169
170} // namespace acl
171

Callers 4

mainFunction · 0.45
create_poolMethod · 0.45
peekMethod · 0.45
runMethod · 0.45

Calls 3

expireMethod · 0.80
get_sidFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected