File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Parameters:
23
23
-a PASSWORD - Authentication password
24
24
-i INTERVAL - Interval between commands
25
25
```
26
-
26
+
27
27
Examples:
28
28
29
29
``` bash
62
62
``` bash
63
63
$ redis-pubsub-test < PARAMETERS> < CHANNEL>
64
64
```
65
-
65
+
66
66
Parameters:
67
67
68
68
``` bash
69
69
-h Host - Defaults localhost.
70
70
-p Port - Defaults 6379.
71
71
CHANNEL - Channel to subscribe
72
72
```
73
-
73
+
74
74
## Pubsub demo
75
75
In one shell run the command:
76
76
@@ -83,7 +83,7 @@ In another shell run the command:
83
83
``` bash
84
84
$ redis-bash-cli -h localhost -p 6379 PUBLISH test " Hello World."
85
85
```
86
-
86
+
87
87
# Using the Library in your code
88
88
The library have a single function to handle the redis communication.
89
89
@@ -125,7 +125,7 @@ exec 6>&- # close the connection
125
125
* Juliano Martinez - Idea to handle socket disconnections on the pubsub demo
126
126
127
127
# TESTED
128
- * Debian squeeze 6.0.X - GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)
128
+ * Debian squeeze 6.0.X - GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)
129
129
* Mac OS X Lion 10.7.X - GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)
130
130
131
131
# PERFORMANCE
@@ -146,3 +146,6 @@ real0m0.012s
146
146
user0m0.000s
147
147
sys0m0.008s
148
148
```
149
+
150
+ # LICENSE
151
+ MIT
You can’t perform that action at this time.
0 commit comments