MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / redisAsyncConnectBindWithReuse

Function redisAsyncConnectBindWithReuse

deps/hiredis/async.c:208–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208redisAsyncContext *redisAsyncConnectBindWithReuse(const char *ip, int port,
209 const char *source_addr) {
210 redisOptions options = {0};
211 REDIS_OPTIONS_SET_TCP(&options, ip, port);
212 options.options |= REDIS_OPT_REUSEADDR;
213 options.endpoint.tcp.source_addr = source_addr;
214 return redisAsyncConnectWithOptions(&options);
215}
216
217redisAsyncContext *redisAsyncConnectUnix(const char *path) {
218 redisOptions options = {0};

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected