| 52 | } |
| 53 | |
| 54 | connect_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 |
nothing calls this directly
no test coverage detected