[sr-dev] git:master: ndb_redis: README file update for unix domain socket support.

Vicente Hernando vhernando at systemonenoc.com
Wed Jun 20 21:10:43 CEST 2012


Module: sip-router
Branch: master
Commit: a2f9844c01eb19d42d2a2864213c301c53f9b4ec
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a2f9844c01eb19d42d2a2864213c301c53f9b4ec

Author: Vicente Hernando <vhernando at systemonenoc.com>
Committer: Vicente Hernando <vhernando at systemonenoc.com>
Date:   Wed Jun 20 21:08:19 2012 +0200

ndb_redis: README file update for unix domain socket support.

---

 modules/ndb_redis/README |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/modules/ndb_redis/README b/modules/ndb_redis/README
index f66c4db..7d72d58 100644
--- a/modules/ndb_redis/README
+++ b/modules/ndb_redis/README
@@ -96,9 +96,12 @@ Chapter 1. Admin Guide
 
    Specify the details to connect to REDIS server. It takes a list of
    attribute=value separated by semicolon, the attributes can be name,
-   addr, port and db. Name is a generic identifier to be used with module
-   functions. addr and port are the IP address and the port to connect to
-   REDIS server. db is the DB number to use (defaults to 0 if not
+   unix, addr, port and db. Name is a generic identifier to be used with
+   module functions. unix is the path to the unix domain socket provided
+   by redis server. addr and port are the IP address and the port to
+   connect to REDIS server. unix and (addr, port) are mutually exclusive.
+   If both appear in same server settings unix domain socket is
+   configured. db is the DB number to use (defaults to 0 if not
    specified).
 
    You can set this parameter many times, in case you want to connect to
@@ -111,6 +114,9 @@ Chapter 1. Admin Guide
 ...
 modparam("ndb_redis", "server", "name=srvN;addr=127.0.0.1;port=6379;db=1")
 modparam("ndb_redis", "server", "name=srvX;addr=127.0.0.2;port=6379;db=4")
+
+# Unix domain socket
+modparam("ndb_redis", "server", "name=srvY;unix=/tmp/redis.sock;db=3")
 ...
 
 4. Functions




More information about the sr-dev mailing list