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

Method create_connect

lib_acl_cpp/src/redis/redis_client_pool.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54connect_client* redis_client_pool::create_connect()
55{
56 redis_client* conn = NEW redis_client(addr_, conn_timeout_,
57 rw_timeout_);
58 if (ssl_conf_) {
59 conn->set_ssl_conf(ssl_conf_);
60 }
61 if (pass_) {
62 conn->set_password(pass_);
63 }
64 if (dbnum_ > 0) {
65 conn->set_db(dbnum_);
66 }
67 return conn;
68}
69
70} // namespace acl
71

Callers

nothing calls this directly

Calls 4

set_passwordMethod · 0.80
set_dbMethod · 0.80
redis_clientClass · 0.50
set_ssl_confMethod · 0.45

Tested by

no test coverage detected