summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorAxel Etcheverry <euskadi31@gmail.com>2013-11-14 01:59:35 +0100
committerMatt Stancliff <matt@genges.com>2014-04-09 17:02:42 -0400
commit66192a0052ec3f9936099a4d2c5512b4b0d89bf0 (patch)
tree6b16c54137f6644fab9cb1b20d5168eaefda3156 /hiredis.h
parentf20f5ad10264a10d41aa2a47c029fba71820d62a (diff)
Add new redisAppendFormatedCommand with tests
Closes #202
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hiredis.h b/hiredis.h
index 37d5779..05bfc47 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -194,6 +194,10 @@ int redisBufferWrite(redisContext *c, int *done);
int redisGetReply(redisContext *c, void **reply);
int redisGetReplyFromReader(redisContext *c, void **reply);
+/* Write a formatted command to the output buffer. Use these functions in blocking mode
+ * to get a pipeline of commands. */
+int redisAppendFormattedCommand(redisContext *c, char *format, size_t len);
+
/* Write a command to the output buffer. Use these functions in blocking mode
* to get a pipeline of commands. */
int redisvAppendCommand(redisContext *c, const char *format, va_list ap);