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

Method select

lib_acl_cpp/src/redis/redis_connection.cpp:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56bool redis_connection::select(int dbnum)
57{
58 const char* argv[2];
59 size_t lens[2];
60
61 argv[0] = "SELECT";
62 lens[0] = strlen(argv[0]);
63
64 char* buf = (char*) dbuf_->dbuf_alloc(21);
65 safe_snprintf(buf, 21, "%d", dbnum);
66 argv[1] = buf;
67 lens[1] = strlen(argv[1]);
68
69 build_request(2, argv, lens);
70 return check_status();
71}
72
73bool redis_connection::ping()
74{

Callers 3

test_selectFunction · 0.80
openMethod · 0.80
highcharts.jsFile · 0.80

Calls 3

safe_snprintfFunction · 0.85
dbuf_allocMethod · 0.80
build_requestFunction · 0.50

Tested by 1

test_selectFunction · 0.64