summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorAllen.Dou <allen.dou@hotmail.com>2013-04-30 00:11:57 +0800
committerAllen.Dou <allen.dou@hotmail.com>2013-04-30 00:11:57 +0800
commit9dff5105fc01f52437d862bc95d40415f03179f0 (patch)
treedde4f7f32e4ed911654696dc30fe518617a1608d /hiredis.h
parent8d5bc445e53ad4114aaac1dd4ff438b638aecede (diff)
Make KeepAlive optional
Make Connection KeepAlive being optional instead of default.
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hiredis.h b/hiredis.h
index a861761..42290a1 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -179,6 +179,7 @@ redisContext *redisConnectUnix(const char *path);
redisContext *redisConnectUnixWithTimeout(const char *path, struct timeval tv);
redisContext *redisConnectUnixNonBlock(const char *path);
int redisSetTimeout(redisContext *c, struct timeval tv);
+int redisEnableKeepAlive(redisContext *c);
void redisFree(redisContext *c);
int redisBufferRead(redisContext *c);
int redisBufferWrite(redisContext *c, int *done);