From 5c35c02f3d41d1ca4736335b256a2c21e725f566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Mon, 4 Apr 2011 11:12:43 +0800 Subject: [PATCH] more documentation added to README. --- README | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README b/README index cce4258..0ad38e0 100644 --- a/README +++ b/README @@ -84,6 +84,10 @@ Description Directives redis2_query arg1 arg2 ... + Specify a redis command by specifying its individual arguments + (including the redis command name itself) in a + similar way to the redis-cli utility. + Multiple instances of this directive are allowd in a single location and these queries will be pipelined. @@ -107,6 +111,11 @@ Directives Specify raw redis queries and nginx variables are recognized in the CMD argument. + Only one redis command is allowed in the CMD argument, or + you'll receive an error. If you want to specify multiple + pipelined commands in a single query, use the redis2_raw_queries + directive instead. + redis2_raw_queries N CMDS Specify N commands in the CMDS argument. Both the N and CMDS arguments can take nginx variables. @@ -136,6 +145,8 @@ Directives that is to say, you're free to use the dollar sign characters ($) in your CMD argument. + Only one redis command is allowed in the CMD argument. + redis2_pass redis2_connect_timeout