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

Method set_ttl

lib_acl_cpp/src/session/session.cpp:227–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227bool session::set_ttl(time_t ttl, bool delay)
228{
229 if (ttl == ttl_) {
230 return true;
231 }
232
233 // ������ӳ��޸ģ����������س�Ա���������ͳһ flush
234 else if (delay) {
235 ttl_ = ttl;
236 dirty_ = true;
237 return true;
238 }
239
240#if 0
241 // ����� sid ��û���ں�� cache �ϴ洢��������ڶ����б�������һ��
242 else if (!sid_saved_) {
243 ttl_ = ttl;
244 return true;
245 }
246#endif
247
248 // �޸ĺ�� cache ����Ը� sid �� ttl
249 else if (set_timeout(ttl)) {
250 ttl_ = ttl;
251 return true;
252 } else {
253 return false;
254 }
255}
256
257bool session::del_delay(const char* name)
258{

Callers 7

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
setMaxAgeMethod · 0.80
reply_dummyFunction · 0.80

Calls

no outgoing calls

Tested by 1