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

Method create_pool

lib_acl_cpp/src/redis/redis_client_cluster.cpp:46–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46connect_pool* redis_client_cluster::create_pool(const char* addr,
47 size_t count, size_t idx)
48{
49 redis_client_pool* pool = NEW redis_client_pool(addr, count, idx);
50
51 if (ssl_conf_) {
52 pool->set_ssl_conf(ssl_conf_);
53 }
54
55 string key(addr);
56 key.lower();
57 std::map<string, string>::const_iterator cit;
58 if ((cit = passwds_.find(key)) != passwds_.end()
59 || (cit = passwds_.find("default")) != passwds_.end()) {
60
61 pool->set_password(cit->second.c_str());
62 }
63
64 return pool;
65}
66
67redis_client_pool* redis_client_cluster::peek_slot(int slot)
68{

Callers

nothing calls this directly

Calls 6

set_passwordMethod · 0.80
redis_client_poolClass · 0.50
set_ssl_confMethod · 0.45
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected