File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ Creates a Redis client
63
63
64
64
##### * Example*
65
65
66
+ <pre >
66
67
$redis = new Redis();
68
+ </pre >
67
69
68
70
## connect, open
69
71
##### * Description*
@@ -82,10 +84,12 @@ Connects to a Redis instance.
82
84
83
85
##### * Example*
84
86
87
+ <pre >
85
88
$redis->connect('127.0.0.1', 6379);
86
89
$redis->connect('127.0.0.1'); // port 6379 by default
87
90
$redis->connect('127.0.0.1', 6379, 2.5); // 2.5 sec timeout.
88
91
$redis->connect('/tmp/redis.sock'); // unix domain socket.
92
+ </pre >
89
93
90
94
## pconnect, popen
91
95
##### * Description*
@@ -114,10 +118,12 @@ persistent equivalents.
114
118
115
119
##### * Example*
116
120
121
+ <pre >
117
122
$redis->pconnect('127.0.0.1', 6379);
118
123
$redis->pconnect('127.0.0.1'); // port 6379 by default - same connection like before.
119
124
$redis->pconnect('127.0.0.1', 6379, 2.5); // 2.5 sec timeout and would be another connection then the two before.
120
125
$redis->pconnect('/tmp/redis.sock'); // unix domain socket - would be another connection then the three before.
126
+ </pre >
121
127
122
128
## ping
123
129
##### * Description*
@@ -148,7 +154,9 @@ Get the value related to the specified key
148
154
149
155
##### * Examples*
150
156
157
+ <pre >
151
158
$redis->get('key');
159
+ </pre >
152
160
153
161
## set
154
162
##### Description
You can’t perform that action at this time.
0 commit comments