Beispiel #1
0
redisAsyncContext *redisAsyncConnect(const char *ip, int port) {
	redisContext *c = redisConnectNonBlock(ip, port);
	redisAsyncContext *ac = redisAsyncInitialize(c);
	__redisAsyncCopyError(ac);
	return ac;
}
Beispiel #2
0
redisAsyncContext *redisAsyncConnectUnix(const char *path) {
    redisContext *c = redisConnectUnixNonBlock(path);
    redisAsyncContext *ac = redisAsyncInitialize(c);
    __redisAsyncCopyError(ac);
    return ac;
}