summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2013-05-01 09:23:17 -0700
committerPieter Noordhuis <pcnoordhuis@gmail.com>2013-05-01 09:23:17 -0700
commit91f47a1c198f78206ef02e791e0c5b5dfbeebe3a (patch)
tree0efcd2d651a075e0849cb45fdbcae4b613c297f5 /hiredis.h
parent63ce20dd15f83c6ff2bdab1bf3dcd1866e826c71 (diff)
parentbb3c4c17c45c89d980e2f4f59f59e55d13c77334 (diff)
Merge branch 'keepalive'
Also see pull request #161.
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hiredis.h b/hiredis.h
index aadcf35..42290a1 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -88,6 +88,8 @@
#define REDIS_READER_MAX_BUF (1024*16) /* Default max unused reader buffer. */
+#define REDIS_KEEPALIVE_INTERVAL 15 /* seconds */
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -177,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);