@@ 46-53 (lines=8) @@ | ||
43 | * @override |
|
44 | * @inheritDoc |
|
45 | */ |
|
46 | public function publish($channel, $message) |
|
47 | { |
|
48 | // TODO: Implement publish() method. |
|
49 | $command = Enum::PUBLISH; |
|
50 | $args = [$channel, $message]; |
|
51 | ||
52 | return $this->dispatch(Builder::build($command, $args)); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @override |
@@ 112-119 (lines=8) @@ | ||
109 | * @override |
|
110 | * @inheritDoc |
|
111 | */ |
|
112 | public function clusterKeySlot($key) |
|
113 | { |
|
114 | // TODO: Implement clusterKeySlot() method. |
|
115 | $command = Enum::CLUSTER_KEYSLOT; |
|
116 | $args = [$key]; |
|
117 | ||
118 | return $this->dispatch(Builder::build($command, $args)); |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * @override |
@@ 33-39 (lines=7) @@ | ||
30 | * @override |
|
31 | * @inheritDoc |
|
32 | */ |
|
33 | public function ping($message = 'PING') |
|
34 | { |
|
35 | $command = Enum::PING; |
|
36 | $args = [$message]; |
|
37 | ||
38 | return $this->dispatch(Builder::build($command, $args)); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @override |
|
@@ 68-74 (lines=7) @@ | ||
65 | * @override |
|
66 | * @inheritDoc |
|
67 | */ |
|
68 | public function swapBb($opt, $dst) |
|
69 | { |
|
70 | $command = Enum::SWAPDB; |
|
71 | $args = [$opt, $dst]; |
|
72 | ||
73 | return $this->dispatch(Builder::build($command, $args)); |
|
74 | } |
|
75 | } |
|
76 |
@@ 95-101 (lines=7) @@ | ||
92 | * @override |
|
93 | * @inheritDoc |
|
94 | */ |
|
95 | public function hKeys($key) |
|
96 | { |
|
97 | $command = Enum::HKEYS; |
|
98 | $args = [$key]; |
|
99 | ||
100 | return $this->dispatch(Builder::build($command, $args)); |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * @override |
|
@@ 107-114 (lines=8) @@ | ||
104 | * @override |
|
105 | * @inheritDoc |
|
106 | */ |
|
107 | public function hLen($key) |
|
108 | { |
|
109 | $command = Enum::HLEN; |
|
110 | $args = [$key]; |
|
111 | ||
112 | return $this->dispatch(Builder::build($command, $args)); |
|
113 | } |
|
114 | ||
115 | /** |
|
116 | * @override |
|
117 | * @inheritDoc |
|
@@ 189-196 (lines=8) @@ | ||
186 | * @override |
|
187 | * @inheritDoc |
|
188 | */ |
|
189 | public function hVals($key) |
|
190 | { |
|
191 | $command = Enum::HVALS; |
|
192 | $args = [$key]; |
|
193 | ||
194 | return $this->dispatch(Builder::build($command, $args)); |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * @override |
|
199 | * @inheritDoc |
@@ 21-27 (lines=7) @@ | ||
18 | * @override |
|
19 | * @inheritDoc |
|
20 | */ |
|
21 | public function append($key, $value) |
|
22 | { |
|
23 | $command = Enum::APPEND; |
|
24 | $args = [$key, $value]; |
|
25 | ||
26 | return $this->dispatch(Builder::build($command, $args)); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @override |
|
@@ 181-187 (lines=7) @@ | ||
178 | * @override |
|
179 | * @inheritDoc |
|
180 | */ |
|
181 | public function incr($key) |
|
182 | { |
|
183 | $command = Enum::INCR; |
|
184 | $args = [$key]; |
|
185 | ||
186 | return $this->dispatch(Builder::build($command, $args)); |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * @override |
|
@@ 475-481 (lines=7) @@ | ||
472 | * @override |
|
473 | * @inheritDoc |
|
474 | */ |
|
475 | public function type($key) |
|
476 | { |
|
477 | $command = Enum::TYPE; |
|
478 | $args = [$key]; |
|
479 | ||
480 | return $this->dispatch(Builder::build($command, $args)); |
|
481 | } |
|
482 | ||
483 | /** |
|
484 | * @override |
|
@@ 33-39 (lines=7) @@ | ||
30 | * @override |
|
31 | * @inheritDoc |
|
32 | */ |
|
33 | public function bitCount($key, $start = 0, $end = -1) |
|
34 | { |
|
35 | $command = Enum::BITCOUNT; |
|
36 | $args = [$key, $start, $end]; |
|
37 | ||
38 | return $this->dispatch(Builder::build($command, $args)); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @override |
|
@@ 559-565 (lines=7) @@ | ||
556 | * @override |
|
557 | * @inheritDoc |
|
558 | */ |
|
559 | public function pTtl($key) |
|
560 | { |
|
561 | $command = Enum::PTTL; |
|
562 | $args = [$key]; |
|
563 | ||
564 | return $this->dispatch(Builder::build($command, $args)); |
|
565 | } |
|
566 | ||
567 | /** |
|
568 | * @override |
|
@@ 97-103 (lines=7) @@ | ||
94 | * @override |
|
95 | * @inheritDoc |
|
96 | */ |
|
97 | public function bitPos($key, $bit, $start = 0, $end = -1) |
|
98 | { |
|
99 | $command = Enum::BITPOS; |
|
100 | $args = [$key, $bit, $start, $end]; |
|
101 | ||
102 | return $this->dispatch(Builder::build($command, $args)); |
|
103 | } |
|
104 | ||
105 | /** |
|
106 | * @override |
|
@@ 109-116 (lines=8) @@ | ||
106 | * @override |
|
107 | * @inheritDoc |
|
108 | */ |
|
109 | public function decr($key) |
|
110 | { |
|
111 | $command = Enum::DECR; |
|
112 | $args = [$key]; |
|
113 | ||
114 | return $this->dispatch(Builder::build($command, $args)); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * @override |
|
119 | * @inheritDoc |
|
@@ 133-139 (lines=7) @@ | ||
130 | * @override |
|
131 | * @inheritDoc |
|
132 | */ |
|
133 | public function get($key) |
|
134 | { |
|
135 | $command = Enum::GET; |
|
136 | $args = [$key]; |
|
137 | ||
138 | return $this->dispatch(Builder::build($command, $args)); |
|
139 | } |
|
140 | ||
141 | /** |
|
142 | * @override |
|
@@ 414-420 (lines=7) @@ | ||
411 | * @override |
|
412 | * @inheritDoc |
|
413 | */ |
|
414 | public function persist($key) |
|
415 | { |
|
416 | $command = Enum::PERSIST; |
|
417 | $args = [$key]; |
|
418 | ||
419 | return $this->dispatch(Builder::build($command, $args)); |
|
420 | } |
|
421 | ||
422 | /** |
|
423 | * @override |
|
@@ 438-444 (lines=7) @@ | ||
435 | * @override |
|
436 | * @inheritDoc |
|
437 | */ |
|
438 | public function pExpireAt($key, $milTimestamp) |
|
439 | { |
|
440 | $command = Enum::PEXPIREAT; |
|
441 | $args = [$key, $milTimestamp]; |
|
442 | ||
443 | return $this->dispatch(Builder::build($command, $args)); |
|
444 | } |
|
445 | ||
446 | /** |
|
447 | * @override |
|
@@ 463-469 (lines=7) @@ | ||
460 | * @override |
|
461 | * @inheritDoc |
|
462 | */ |
|
463 | public function ttl($key) |
|
464 | { |
|
465 | $command = Enum::TTL; |
|
466 | $args = [$key]; |
|
467 | ||
468 | return $this->dispatch(Builder::build($command, $args)); |
|
469 | } |
|
470 | ||
471 | /** |
|
472 | * @override |
|
@@ 340-346 (lines=7) @@ | ||
337 | * @override |
|
338 | * @inheritDoc |
|
339 | */ |
|
340 | public function strLen($key) |
|
341 | { |
|
342 | $command = Enum::STRLEN; |
|
343 | $args = [$key]; |
|
344 | ||
345 | return $this->dispatch(Builder::build($command, $args)); |
|
346 | } |
|
347 | ||
348 | /** |
|
349 | * @override |
|
@@ 352-359 (lines=8) @@ | ||
349 | * @override |
|
350 | * @inheritDoc |
|
351 | */ |
|
352 | public function del($key,...$keys) |
|
353 | { |
|
354 | $command = Enum::DEL; |
|
355 | $keys[] = $key; |
|
356 | $args = $keys; |
|
357 | ||
358 | return $this->dispatch(Builder::build($command, $args)); |
|
359 | } |
|
360 | ||
361 | /** |
|
362 | * @override |
|
@@ 365-372 (lines=8) @@ | ||
362 | * @override |
|
363 | * @inheritDoc |
|
364 | */ |
|
365 | public function dump($key) |
|
366 | { |
|
367 | $command = Enum::DUMP; |
|
368 | $args = [$key]; |
|
369 | ||
370 | return $this->dispatch(Builder::build($command, $args)); |
|
371 | } |
|
372 | ||
373 | /** |
|
374 | * @override |
|
375 | * @inheritDoc |
|
@@ 254-260 (lines=7) @@ | ||
251 | * @override |
|
252 | * @inheritDoc |
|
253 | */ |
|
254 | public function setNx($key, $value) |
|
255 | { |
|
256 | $command = Enum::SETNX; |
|
257 | $args = [$key, $value]; |
|
258 | ||
259 | return $this->dispatch(Builder::build($command, $args)); |
|
260 | } |
|
261 | ||
262 | /** |
|
263 | * @override |
@@ 21-27 (lines=7) @@ | ||
18 | * @override |
|
19 | * @inheritDoc |
|
20 | */ |
|
21 | public function zAdd($key, array $options = [], ...$scoreMembers) |
|
22 | { |
|
23 | $command = Enum::ZADD; |
|
24 | $args = array_merge([$key], $options, $scoreMembers); |
|
25 | ||
26 | return $this->dispatch(Builder::build($command, $args)); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @override |
|
@@ 33-40 (lines=8) @@ | ||
30 | * @override |
|
31 | * @inheritDoc |
|
32 | */ |
|
33 | public function zCard($key) |
|
34 | { |
|
35 | $command = Enum::ZCARD; |
|
36 | $args = [$key]; |
|
37 | ||
38 | return $this->dispatch(Builder::build($command, $args)); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @override |
|
43 | * @inheritDoc |
|
@@ 45-52 (lines=8) @@ | ||
42 | * @override |
|
43 | * @inheritDoc |
|
44 | */ |
|
45 | public function zCount($key, $min, $max) |
|
46 | { |
|
47 | $command = Enum::ZCOUNT; |
|
48 | $args = [$key, $min, $max]; |
|
49 | ||
50 | return $this->dispatch(Builder::build($command, $args)); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * @override |
|
55 | * @inheritDoc |
|
@@ 81-88 (lines=8) @@ | ||
78 | * @override |
|
79 | * @inheritDoc |
|
80 | */ |
|
81 | public function zLexCount($key, $min, $max) |
|
82 | { |
|
83 | $command = Enum::ZLEXCOUNT; |
|
84 | $args = [$key, $min, $max]; |
|
85 | ||
86 | return $this->dispatch(Builder::build($command, $args)); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @override |
|
91 | * @inheritDoc |
@@ 71-78 (lines=8) @@ | ||
68 | * @override |
|
69 | * @inheritDoc |
|
70 | */ |
|
71 | public function sMembers($key) |
|
72 | { |
|
73 | $command = Enum::SMEMBERS; |
|
74 | $args = [$key]; |
|
75 | ||
76 | return $this->dispatch(Builder::build($command, $args)); |
|
77 | } |
|
78 | ||
79 | /** |
|
80 | * @override |
|
81 | * @inheritDoc |
|
@@ 83-89 (lines=7) @@ | ||
80 | * @override |
|
81 | * @inheritDoc |
|
82 | */ |
|
83 | public function sMove($src, $dst, $member) |
|
84 | { |
|
85 | $command = Enum::SMOVE; |
|
86 | $args = [$src, $dst, $member]; |
|
87 | ||
88 | return $this->dispatch(Builder::build($command, $args)); |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @override |
|
@@ 95-102 (lines=8) @@ | ||
92 | * @override |
|
93 | * @inheritDoc |
|
94 | */ |
|
95 | public function sPop($key, $count) |
|
96 | { |
|
97 | $command = Enum::SPOP; |
|
98 | $args = [$key, $count]; |
|
99 | ||
100 | return $this->dispatch(Builder::build($command, $args)); |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * @override |
|
105 | * @inheritDoc |
|
@@ 107-114 (lines=8) @@ | ||
104 | * @override |
|
105 | * @inheritDoc |
|
106 | */ |
|
107 | public function sRandMember($key, $count) |
|
108 | { |
|
109 | $command = Enum::SRANDMEMBER; |
|
110 | $args = [$key, $count]; |
|
111 | ||
112 | return $this->dispatch(Builder::build($command, $args)); |
|
113 | } |
|
114 | ||
115 | /** |
|
116 | * @override |
|
117 | * @inheritDoc |
|
@@ 171-178 (lines=8) @@ | ||
168 | * @override |
|
169 | * @inheritDoc |
|
170 | */ |
|
171 | public function sCard($key) |
|
172 | { |
|
173 | $command = Enum::SCARD; |
|
174 | $args = [$key]; |
|
175 | ||
176 | return $this->dispatch(Builder::build($command, $args)); |
|
177 | } |
|
178 | ||
179 | /** |
|
180 | * @override |
|
181 | * @inheritDoc |
@@ 46-52 (lines=7) @@ | ||
43 | * @override |
|
44 | * @inheritDoc |
|
45 | */ |
|
46 | public function pFMerge($dstKey, ...$srcKeys) |
|
47 | { |
|
48 | $command = Enum::PFMERGE; |
|
49 | $args = array_merge([$dstKey], $srcKeys); |
|
50 | ||
51 | return $this->dispatch(Builder::build($command, $args)); |
|
52 | } |
|
53 | } |
|
54 |
@@ 137-144 (lines=8) @@ | ||
134 | * @override |
|
135 | * @inheritDoc |
|
136 | */ |
|
137 | public function slaveOf($host, $port) |
|
138 | { |
|
139 | $command = Enum::SLAVEOF; |
|
140 | $args = [$host, $port]; |
|
141 | ||
142 | return $this->dispatch(Builder::build($command, $args)); |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * @override |
|
147 | * @inheritDoc |
@@ 109-115 (lines=7) @@ | ||
106 | * @override |
|
107 | * @inheritDoc |
|
108 | */ |
|
109 | public function lLen($key) |
|
110 | { |
|
111 | $command = Enum::LLEN; |
|
112 | $args = [$key]; |
|
113 | ||
114 | return $this->dispatch(Builder::build($command, $args)); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * @override |
|
@@ 121-128 (lines=8) @@ | ||
118 | * @override |
|
119 | * @inheritDoc |
|
120 | */ |
|
121 | public function lPop($key) |
|
122 | { |
|
123 | $command = Enum::LPOP; |
|
124 | $args = [$key]; |
|
125 | ||
126 | return $this->dispatch(Builder::build($command, $args)); |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * @override |
|
131 | * @inheritDoc |
|
@@ 141-147 (lines=7) @@ | ||
138 | return $this->dispatch(Builder::build($command, $values)); |
|
139 | } |
|
140 | ||
141 | public function lPushX($key, $value) |
|
142 | { |
|
143 | $command = Enum::LPUSHX; |
|
144 | $args = [$key, $value]; |
|
145 | ||
146 | return $this->dispatch(Builder::build($command, $args)); |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * @override |
|
@@ 153-159 (lines=7) @@ | ||
150 | * @override |
|
151 | * @inheritDoc |
|
152 | */ |
|
153 | public function lRange($key, $start = 0, $stop = -1) |
|
154 | { |
|
155 | $command = Enum::LRANGE; |
|
156 | $args = [$key, $start, $stop]; |
|
157 | ||
158 | return $this->dispatch(Builder::build($command, $args)); |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * @override |
|
@@ 201-208 (lines=8) @@ | ||
198 | * @override |
|
199 | * @inheritDoc |
|
200 | */ |
|
201 | public function rPop($key) |
|
202 | { |
|
203 | $command = Enum::RPOP; |
|
204 | $args = [$key]; |
|
205 | ||
206 | return $this->dispatch(Builder::build($command, $args)); |
|
207 | } |
|
208 | ||
209 | /** |
|
210 | * @override |
|
211 | * @inheritDoc |
|
@@ 213-220 (lines=8) @@ | ||
210 | * @override |
|
211 | * @inheritDoc |
|
212 | */ |
|
213 | public function rPopLPush($src, $dst) |
|
214 | { |
|
215 | $command = Enum::RPOPLPUSH; |
|
216 | $args = [$src, $dst]; |
|
217 | ||
218 | return $this->dispatch(Builder::build($command, $args)); |
|
219 | } |
|
220 | ||
221 | /** |
|
222 | * @override |
|
223 | * @inheritDoc |
|
@@ 238-244 (lines=7) @@ | ||
235 | * @override |
|
236 | * @inheritDoc |
|
237 | */ |
|
238 | public function rPushX($key, $value) |
|
239 | { |
|
240 | $command = Enum::RPUSHX; |
|
241 | $args = [$key, $value]; |
|
242 | ||
243 | return $this->dispatch(Builder::build($command, $args)); |
|
244 | } |
|
245 | } |
|
246 |