@@ -6,5 +6,8 @@ |
||
6 | 6 | |
7 | 7 | interface DriverInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return string |
|
11 | + */ |
|
9 | 12 | public function commands(Request $request); |
10 | 13 | } |
11 | 14 | \ No newline at end of file |
@@ -5,4 +5,5 @@ |
||
5 | 5 | use Clue\Redis\Protocol\Model\ModelInterface as ClueModelInterface; |
6 | 6 | |
7 | 7 | interface RequestInterface extends ClueModelInterface |
8 | -{} |
|
8 | +{ |
|
9 | +} |
@@ -162,7 +162,7 @@ |
||
162 | 162 | |
163 | 163 | $this->reqs = []; |
164 | 164 | |
165 | - // TODO patch missing pub/sub, pipeline, auth |
|
165 | + // TODO patch missing pub/sub, pipeline, auth |
|
166 | 166 | $this->handleStop(); |
167 | 167 | $this->emit('stop', [ $this ]); |
168 | 168 |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | // TODO patch missing pub/sub, pipeline, auth |
135 | 135 | $this->handleStart(); |
136 | - $this->emit('start', [ $this ]); |
|
136 | + $this->emit('start', [$this]); |
|
137 | 137 | |
138 | 138 | return true; |
139 | 139 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | // TODO patch missing pub/sub, pipeline, auth |
166 | 166 | $this->handleStop(); |
167 | - $this->emit('stop', [ $this ]); |
|
167 | + $this->emit('stop', [$this]); |
|
168 | 168 | |
169 | 169 | return true; |
170 | 170 | } |
@@ -216,8 +216,8 @@ discard block |
||
216 | 216 | { |
217 | 217 | if ($this->stream !== null) |
218 | 218 | { |
219 | - $this->stream->on('data', [ $this, 'handleData' ]); |
|
220 | - $this->stream->on('close', [ $this, 'stop' ]); |
|
219 | + $this->stream->on('data', [$this, 'handleData']); |
|
220 | + $this->stream->on('close', [$this, 'stop']); |
|
221 | 221 | } |
222 | 222 | } |
223 | 223 | |
@@ -228,8 +228,8 @@ discard block |
||
228 | 228 | { |
229 | 229 | if ($this->stream !== null) |
230 | 230 | { |
231 | - $this->stream->removeListener('data', [ $this, 'handleData' ]); |
|
232 | - $this->stream->removeListener('close', [ $this, 'stop' ]); |
|
231 | + $this->stream->removeListener('data', [$this, 'handleData']); |
|
232 | + $this->stream->removeListener('close', [$this, 'stop']); |
|
233 | 233 | } |
234 | 234 | } |
235 | 235 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | } |
247 | 247 | catch (ParserException $error) |
248 | 248 | { |
249 | - $this->emit('error', [ $this, $error ]); |
|
249 | + $this->emit('error', [$this, $error]); |
|
250 | 250 | $this->stop(); |
251 | 251 | return; |
252 | 252 | } |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | } |
260 | 260 | catch (UnderflowException $error) |
261 | 261 | { |
262 | - $this->emit('error', [ $this, $error ]); |
|
262 | + $this->emit('error', [$this, $error]); |
|
263 | 263 | $this->stop(); |
264 | 264 | return; |
265 | 265 | } |
@@ -413,9 +413,9 @@ discard block |
||
413 | 413 | $keys[] = $timeout; |
414 | 414 | $args = $keys; |
415 | 415 | $promise = $this->dispatch(Builder::build($command, $args)); |
416 | - $promise = $promise->then(function ($value) { |
|
416 | + $promise = $promise->then(function($value) { |
|
417 | 417 | if (is_array($value)) { |
418 | - list($k,$v) = $value; |
|
418 | + list($k, $v) = $value; |
|
419 | 419 | |
420 | 420 | return [ |
421 | 421 | 'key'=>$k, |
@@ -436,9 +436,9 @@ discard block |
||
436 | 436 | $keys[] = $timeout; |
437 | 437 | $args = $keys; |
438 | 438 | $promise = $this->dispatch(Builder::build($command, $args)); |
439 | - $promise = $promise->then(function ($value) { |
|
439 | + $promise = $promise->then(function($value) { |
|
440 | 440 | if (is_array($value)) { |
441 | - list($k,$v) = $value; |
|
441 | + list($k, $v) = $value; |
|
442 | 442 | |
443 | 443 | return [ |
444 | 444 | 'key'=>$k, |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | return $this->dispatch(Builder::build($command, $args)); |
480 | 480 | } |
481 | 481 | |
482 | - public function del($key,...$keys) |
|
482 | + public function del($key, ...$keys) |
|
483 | 483 | { |
484 | 484 | $command = Enum::DEL; |
485 | 485 | $keys[] = $key; |
@@ -850,13 +850,13 @@ discard block |
||
850 | 850 | $command = Enum::HGETALL; |
851 | 851 | $args = [$key]; |
852 | 852 | |
853 | - return $this->dispatch(Builder::build($command, $args))->then(function ($value) { |
|
853 | + return $this->dispatch(Builder::build($command, $args))->then(function($value) { |
|
854 | 854 | if (!empty($value)) { |
855 | 855 | $tmp = []; |
856 | 856 | $size = count($value); |
857 | - for ($i=0; $i<$size; $i+=2) { |
|
857 | + for ($i = 0; $i < $size; $i += 2) { |
|
858 | 858 | $field = $value[$i]; |
859 | - $val = $value[$i+1]; |
|
859 | + $val = $value[$i + 1]; |
|
860 | 860 | $tmp[$field] = $val; |
861 | 861 | } |
862 | 862 | $value = $tmp; |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | { |
986 | 986 | // TODO: Implement geoDist() method. |
987 | 987 | $command = Enum::GEODIST; |
988 | - $args = [$key, $memberA, $memberB ,$unit]; |
|
988 | + $args = [$key, $memberA, $memberB, $unit]; |
|
989 | 989 | |
990 | 990 | return $this->dispatch(Builder::build($command, $args)); |
991 | 991 | } |
@@ -1088,7 +1088,7 @@ discard block |
||
1088 | 1088 | return $this->dispatch(Builder::build($command, $args)); |
1089 | 1089 | } |
1090 | 1090 | |
1091 | - public function lPush($key,...$values) |
|
1091 | + public function lPush($key, ...$values) |
|
1092 | 1092 | { |
1093 | 1093 | $command = Enum::LPUSH; |
1094 | 1094 | array_unshift($values, $key); |
@@ -1405,14 +1405,14 @@ discard block |
||
1405 | 1405 | { |
1406 | 1406 | $command = Enum::INFO; |
1407 | 1407 | |
1408 | - return $this->dispatch(Builder::build($command, $section))->then(function ($value) { |
|
1408 | + return $this->dispatch(Builder::build($command, $section))->then(function($value) { |
|
1409 | 1409 | if ($value) { |
1410 | 1410 | $ret = explode(PHP_EOL, $value); |
1411 | 1411 | $handled = []; |
1412 | 1412 | $lastKey = ''; |
1413 | 1413 | foreach ($ret as $_ => $v) { |
1414 | 1414 | if (($pos = strpos($v, '#')) !== false) { |
1415 | - $lastKey = strtolower(substr($v,$pos+2)); |
|
1415 | + $lastKey = strtolower(substr($v, $pos + 2)); |
|
1416 | 1416 | $handled[$lastKey] = []; |
1417 | 1417 | continue; |
1418 | 1418 | } |
@@ -1489,7 +1489,7 @@ discard block |
||
1489 | 1489 | { |
1490 | 1490 | // TODO: Implement zRange() method. |
1491 | 1491 | $command = Enum::ZRANGE; |
1492 | - $args = [$key, $star,$stop]; |
|
1492 | + $args = [$key, $star, $stop]; |
|
1493 | 1493 | $args = array_merge($args, $options); |
1494 | 1494 | |
1495 | 1495 | return $this->dispatch(Builder::build($command, $args)); |
@@ -1500,7 +1500,7 @@ discard block |
||
1500 | 1500 | // TODO: Implement zRangeByLex() method. |
1501 | 1501 | $command = Enum::ZRANGEBYLEX; |
1502 | 1502 | $args = [$key, $min, $max]; |
1503 | - $args = array_merge($args,$options); |
|
1503 | + $args = array_merge($args, $options); |
|
1504 | 1504 | |
1505 | 1505 | return $this->dispatch(Builder::build($command, $args)); |
1506 | 1506 | } |
@@ -1509,8 +1509,8 @@ discard block |
||
1509 | 1509 | { |
1510 | 1510 | // TODO: Implement zRevRangeByLex() method. |
1511 | 1511 | $command = Enum::ZREVRANGEBYLEX; |
1512 | - $args = [$key, $max,$min]; |
|
1513 | - $args = array_merge($args,$options); |
|
1512 | + $args = [$key, $max, $min]; |
|
1513 | + $args = array_merge($args, $options); |
|
1514 | 1514 | |
1515 | 1515 | return $this->dispatch(Builder::build($command, $args)); |
1516 | 1516 | } |
@@ -1519,7 +1519,7 @@ discard block |
||
1519 | 1519 | { |
1520 | 1520 | // TODO: Implement zRangeByScore() method. |
1521 | 1521 | $command = Enum::ZRANGEBYSCORE; |
1522 | - $args = [$key, $min,$max]; |
|
1522 | + $args = [$key, $min, $max]; |
|
1523 | 1523 | $args = array_merge($args, $options); |
1524 | 1524 | |
1525 | 1525 | return $this->dispatch(Builder::build($command, $args)); |
@@ -1529,7 +1529,7 @@ discard block |
||
1529 | 1529 | { |
1530 | 1530 | // TODO: Implement zRank() method. |
1531 | 1531 | $command = Enum::ZRANK; |
1532 | - $args = [$key,$member]; |
|
1532 | + $args = [$key, $member]; |
|
1533 | 1533 | |
1534 | 1534 | return $this->dispatch(Builder::build($command, $args)); |
1535 | 1535 | } |
@@ -1557,7 +1557,7 @@ discard block |
||
1557 | 1557 | { |
1558 | 1558 | // TODO: Implement zRemRangeByRank() method. |
1559 | 1559 | $command = Enum::ZREMRANGEBYRANK; |
1560 | - $args = [$key, $start,$stop]; |
|
1560 | + $args = [$key, $start, $stop]; |
|
1561 | 1561 | |
1562 | 1562 | return $this->dispatch(Builder::build($command, $args)); |
1563 | 1563 | } |
@@ -1585,7 +1585,7 @@ discard block |
||
1585 | 1585 | { |
1586 | 1586 | // TODO: Implement zRevRangeByScore() method. |
1587 | 1587 | $command = Enum::ZREVRANGEBYSCORE; |
1588 | - $args = [$key,$max,$min]; |
|
1588 | + $args = [$key, $max, $min]; |
|
1589 | 1589 | $args = array_merge($args, $options); |
1590 | 1590 | |
1591 | 1591 | return $this->dispatch(Builder::build($command, $args)); |
@@ -1595,7 +1595,7 @@ discard block |
||
1595 | 1595 | { |
1596 | 1596 | // TODO: Implement zRevRank() method. |
1597 | 1597 | $command = Enum::ZREVRANK; |
1598 | - $args = [$key,$member]; |
|
1598 | + $args = [$key, $member]; |
|
1599 | 1599 | |
1600 | 1600 | return $this->dispatch(Builder::build($command, $args)); |
1601 | 1601 | } |
@@ -1604,7 +1604,7 @@ discard block |
||
1604 | 1604 | { |
1605 | 1605 | // TODO: Implement zScore() method. |
1606 | 1606 | $command = Enum::ZSCORE; |
1607 | - $args = [$key,$member]; |
|
1607 | + $args = [$key, $member]; |
|
1608 | 1608 | |
1609 | 1609 | return $this->dispatch(Builder::build($command, $args)); |
1610 | 1610 | } |
@@ -1642,7 +1642,7 @@ discard block |
||
1642 | 1642 | { |
1643 | 1643 | // TODO: Implement zScan() method. |
1644 | 1644 | $command = Enum::ZSCAN; |
1645 | - $args = [$key , $cursor]; |
|
1645 | + $args = [$key, $cursor]; |
|
1646 | 1646 | $args = array_merge($args, $options); |
1647 | 1647 | |
1648 | 1648 | return $this->dispatch(Builder::build($command, $args)); |
@@ -1671,7 +1671,7 @@ discard block |
||
1671 | 1671 | { |
1672 | 1672 | // TODO: Implement sIsMember() method. |
1673 | 1673 | $command = Enum::SISMEMBER; |
1674 | - $args = [$key ,$member]; |
|
1674 | + $args = [$key, $member]; |
|
1675 | 1675 | |
1676 | 1676 | return $this->dispatch(Builder::build($command, $args)); |
1677 | 1677 | } |
@@ -1689,7 +1689,7 @@ discard block |
||
1689 | 1689 | { |
1690 | 1690 | // TODO: Implement sLowLog() method. |
1691 | 1691 | $command = Enum::SLOWLOG; |
1692 | - $args = array_merge([$command],$args); |
|
1692 | + $args = array_merge([$command], $args); |
|
1693 | 1693 | |
1694 | 1694 | return $this->dispatch(Builder::build($command, $args)); |
1695 | 1695 | } |
@@ -1708,7 +1708,7 @@ discard block |
||
1708 | 1708 | // TODO: Implement sMove() method. |
1709 | 1709 | $command = Enum::SMOVE; |
1710 | 1710 | $args = [$src, $dst]; |
1711 | - $args = array_merge( $args, $members); |
|
1711 | + $args = array_merge($args, $members); |
|
1712 | 1712 | |
1713 | 1713 | return $this->dispatch(Builder::build($command, $args)); |
1714 | 1714 | } |
@@ -118,9 +118,11 @@ discard block |
||
118 | 118 | $stream = $this->createClient($this->endpoint); |
119 | 119 | } |
120 | 120 | catch (Error $ex) |
121 | - {} |
|
121 | + { |
|
122 | +} |
|
122 | 123 | catch (Exception $ex) |
123 | - {} |
|
124 | + { |
|
125 | +} |
|
124 | 126 | |
125 | 127 | if ($ex !== null) |
126 | 128 | { |
@@ -310,9 +312,11 @@ discard block |
||
310 | 312 | return new Socket($endpoint, $this->loop); |
311 | 313 | } |
312 | 314 | catch (Error $ex) |
313 | - {} |
|
315 | + { |
|
316 | +} |
|
314 | 317 | catch (Exception $ex) |
315 | - {} |
|
318 | + { |
|
319 | +} |
|
316 | 320 | |
317 | 321 | throw new ExecutionException('Redis connection socket could not be created!', 0, $ex); |
318 | 322 | } |
@@ -358,7 +362,8 @@ discard block |
||
358 | 362 | public function bitField($key, $subCommand = null, ...$param) |
359 | 363 | { |
360 | 364 | $command = Enum::BITFIELD; |
361 | - switch ($subCommand = strtoupper($subCommand)) { |
|
365 | + switch ($subCommand = strtoupper($subCommand)) |
|
366 | + { |
|
362 | 367 | case 'GET' : { |
363 | 368 | list ($type, $offset) = $param; |
364 | 369 | $args = [$subCommand, $type, $offset]; |
@@ -414,7 +419,8 @@ discard block |
||
414 | 419 | $args = $keys; |
415 | 420 | $promise = $this->dispatch(Builder::build($command, $args)); |
416 | 421 | $promise = $promise->then(function ($value) { |
417 | - if (is_array($value)) { |
|
422 | + if (is_array($value)) |
|
423 | + { |
|
418 | 424 | list($k,$v) = $value; |
419 | 425 | |
420 | 426 | return [ |
@@ -437,7 +443,8 @@ discard block |
||
437 | 443 | $args = $keys; |
438 | 444 | $promise = $this->dispatch(Builder::build($command, $args)); |
439 | 445 | $promise = $promise->then(function ($value) { |
440 | - if (is_array($value)) { |
|
446 | + if (is_array($value)) |
|
447 | + { |
|
441 | 448 | list($k,$v) = $value; |
442 | 449 | |
443 | 450 | return [ |
@@ -851,10 +858,12 @@ discard block |
||
851 | 858 | $args = [$key]; |
852 | 859 | |
853 | 860 | return $this->dispatch(Builder::build($command, $args))->then(function ($value) { |
854 | - if (!empty($value)) { |
|
861 | + if (!empty($value)) |
|
862 | + { |
|
855 | 863 | $tmp = []; |
856 | 864 | $size = count($value); |
857 | - for ($i=0; $i<$size; $i+=2) { |
|
865 | + for ($i=0; $i<$size; $i+=2) |
|
866 | + { |
|
858 | 867 | $field = $value[$i]; |
859 | 868 | $val = $value[$i+1]; |
860 | 869 | $tmp[$field] = $val; |
@@ -911,8 +920,10 @@ discard block |
||
911 | 920 | { |
912 | 921 | $command = Enum::HMSET; |
913 | 922 | $args = [$key]; |
914 | - if (!empty($fvMap)) { |
|
915 | - foreach ($fvMap as $field => $value) { |
|
923 | + if (!empty($fvMap)) |
|
924 | + { |
|
925 | + foreach ($fvMap as $field => $value) |
|
926 | + { |
|
916 | 927 | $tmp[] = $field; |
917 | 928 | $tmp[] = $value; |
918 | 929 | } |
@@ -1406,18 +1417,22 @@ discard block |
||
1406 | 1417 | $command = Enum::INFO; |
1407 | 1418 | |
1408 | 1419 | return $this->dispatch(Builder::build($command, $section))->then(function ($value) { |
1409 | - if ($value) { |
|
1420 | + if ($value) |
|
1421 | + { |
|
1410 | 1422 | $ret = explode(PHP_EOL, $value); |
1411 | 1423 | $handled = []; |
1412 | 1424 | $lastKey = ''; |
1413 | - foreach ($ret as $_ => $v) { |
|
1414 | - if (($pos = strpos($v, '#')) !== false) { |
|
1425 | + foreach ($ret as $_ => $v) |
|
1426 | + { |
|
1427 | + if (($pos = strpos($v, '#')) !== false) |
|
1428 | + { |
|
1415 | 1429 | $lastKey = strtolower(substr($v,$pos+2)); |
1416 | 1430 | $handled[$lastKey] = []; |
1417 | 1431 | continue; |
1418 | 1432 | } |
1419 | 1433 | $statMap = explode(':', $v); |
1420 | - if ($statMap[0]) { |
|
1434 | + if ($statMap[0]) |
|
1435 | + { |
|
1421 | 1436 | list($name, $stat) = explode(':', $v); |
1422 | 1437 | $handled[$lastKey][$name] = $stat; |
1423 | 1438 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param int $end |
43 | 43 | * @return mixed |
44 | 44 | */ |
45 | - public function bitCount($key, $start=0, $end=0); |
|
45 | + public function bitCount($key, $start = 0, $end = 0); |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @doc https://redis.io/commands/bitfield |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param ...$keys |
63 | 63 | * @return mixed |
64 | 64 | */ |
65 | - public function bitOp($operation,$dstKey,$srcKey, ...$keys); |
|
65 | + public function bitOp($operation, $dstKey, $srcKey, ...$keys); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @doc https://redis.io/commands/bitpos |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @param int $end |
74 | 74 | * @return mixed |
75 | 75 | */ |
76 | - public function bitPos($key,$bit,$start=0,$end=0); |
|
76 | + public function bitPos($key, $bit, $start = 0, $end = 0); |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @doc https://redis.io/commands/blpop |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param $timeout |
92 | 92 | * @return mixed |
93 | 93 | */ |
94 | - public function brPop(array $keys,$timeout); |
|
94 | + public function brPop(array $keys, $timeout); |
|
95 | 95 | |
96 | 96 | /** |
97 | 97 | * @doc https://redis.io/commands/brpoplpush |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param $timeout |
102 | 102 | * @return mixed |
103 | 103 | */ |
104 | - public function brPopLPush($src,$dst,$timeout); |
|
104 | + public function brPopLPush($src, $dst, $timeout); |
|
105 | 105 | |
106 | 106 | /** |
107 | 107 | * @doc https://redis.io/commands/decr |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @param $decrement |
119 | 119 | * @return mixed |
120 | 120 | */ |
121 | - public function decrBy($key,$decrement); |
|
121 | + public function decrBy($key, $decrement); |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * @doc https://redis.io/commands/del |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @param ...$keys |
128 | 128 | * @return mixed |
129 | 129 | */ |
130 | - public function del($key,...$keys); |
|
130 | + public function del($key, ...$keys); |
|
131 | 131 | |
132 | 132 | /** |
133 | 133 | * @doc https://redis.io/commands/discard |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * @param $seconds |
161 | 161 | * @return mixed |
162 | 162 | */ |
163 | - public function expire($key,$seconds); |
|
163 | + public function expire($key, $seconds); |
|
164 | 164 | |
165 | 165 | /** |
166 | 166 | * @doc https://redis.io/commands/expireat |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * @param $timestamp |
170 | 170 | * @return mixed |
171 | 171 | */ |
172 | - public function expireAt($key,$timestamp); |
|
172 | + public function expireAt($key, $timestamp); |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @doc https://redis.io/commands/get |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @param $offset |
187 | 187 | * @return mixed |
188 | 188 | */ |
189 | - public function getBit($key,$offset); |
|
189 | + public function getBit($key, $offset); |
|
190 | 190 | |
191 | 191 | /** |
192 | 192 | * @doc https://redis.io/commands/getrange |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * @param $end |
197 | 197 | * @return mixed |
198 | 198 | */ |
199 | - public function getRange($key,$start,$end); |
|
199 | + public function getRange($key, $start, $end); |
|
200 | 200 | |
201 | 201 | /** |
202 | 202 | * @doc https://redis.io/commands/getset |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * @param $value |
206 | 206 | * @return mixed |
207 | 207 | */ |
208 | - public function getSet($key,$value); |
|
208 | + public function getSet($key, $value); |
|
209 | 209 | |
210 | 210 | /** |
211 | 211 | * @doc https://redis.io/commands/hdel |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * @param ...$fields |
215 | 215 | * @return mixed |
216 | 216 | */ |
217 | - public function hDel($key,...$fields); |
|
217 | + public function hDel($key, ...$fields); |
|
218 | 218 | |
219 | 219 | /** |
220 | 220 | * @doc https://redis.io/commands/hexists |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * @param $field |
224 | 224 | * @return mixed |
225 | 225 | */ |
226 | - public function hExists($key,$field); |
|
226 | + public function hExists($key, $field); |
|
227 | 227 | |
228 | 228 | /** |
229 | 229 | * @doc https://redis.io/commands/hget |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * @param $field |
233 | 233 | * @return mixed |
234 | 234 | */ |
235 | - public function hGet($key,$field); |
|
235 | + public function hGet($key, $field); |
|
236 | 236 | |
237 | 237 | /** |
238 | 238 | * @doc https://redis.io/commands/hgetall |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | * @param $incrment |
251 | 251 | * @return mixed |
252 | 252 | */ |
253 | - public function hIncrBy($key,$field,$incrment); |
|
253 | + public function hIncrBy($key, $field, $incrment); |
|
254 | 254 | |
255 | 255 | /** |
256 | 256 | * @doc https://redis.io/commands/hincrbyfloat |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * @param $increment |
261 | 261 | * @return mixed |
262 | 262 | */ |
263 | - public function hIncrByFloat($key,$field,$increment); |
|
263 | + public function hIncrByFloat($key, $field, $increment); |
|
264 | 264 | |
265 | 265 | /** |
266 | 266 | * @doc https://redis.io/commands/hkeys |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * @param ...$fields |
286 | 286 | * @return mixed |
287 | 287 | */ |
288 | - public function hMGet($key,...$fields); |
|
288 | + public function hMGet($key, ...$fields); |
|
289 | 289 | |
290 | 290 | /** |
291 | 291 | * @doc https://redis.io/commands/hmset |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | * @param array $fvMap |
295 | 295 | * @return mixed |
296 | 296 | */ |
297 | - public function hMSet($key,array $fvMap); |
|
297 | + public function hMSet($key, array $fvMap); |
|
298 | 298 | |
299 | 299 | /** |
300 | 300 | * @doc https://redis.io/commands/hset |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | * @param $value |
305 | 305 | * @return mixed |
306 | 306 | */ |
307 | - public function hSet($key,$field,$value); |
|
307 | + public function hSet($key, $field, $value); |
|
308 | 308 | |
309 | 309 | /** |
310 | 310 | * @doc https://redis.io/commands/hsetnx |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * @param $value |
315 | 315 | * @return mixed |
316 | 316 | */ |
317 | - public function hSetNx($key,$filed,$value); |
|
317 | + public function hSetNx($key, $filed, $value); |
|
318 | 318 | |
319 | 319 | /** |
320 | 320 | * @doc https://redis.io/commands/hstrlen |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * @param $field |
324 | 324 | * @return mixed |
325 | 325 | */ |
326 | - public function hStrLen($key,$field); |
|
326 | + public function hStrLen($key, $field); |
|
327 | 327 | |
328 | 328 | /** |
329 | 329 | * @doc https://redis.io/commands/hvals |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | * @param $increment |
349 | 349 | * @return mixed |
350 | 350 | */ |
351 | - public function incrBy($key,$increment); |
|
351 | + public function incrBy($key, $increment); |
|
352 | 352 | |
353 | 353 | /** |
354 | 354 | * @doc https://redis.io/commands/incrbyfloat |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | * @param $increment |
358 | 358 | * @return mixed |
359 | 359 | */ |
360 | - public function incrByFloat($key,$increment); |
|
360 | + public function incrByFloat($key, $increment); |
|
361 | 361 | |
362 | 362 | /** |
363 | 363 | * @doc https://redis.io/commands/multi |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * @param $milliseconds |
382 | 382 | * @return mixed |
383 | 383 | */ |
384 | - public function pExpire($key,$milliseconds); |
|
384 | + public function pExpire($key, $milliseconds); |
|
385 | 385 | |
386 | 386 | /** |
387 | 387 | * @doc https://redis.io/commands/pexpireat |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | * @param $milliseconds |
391 | 391 | * @return mixed |
392 | 392 | */ |
393 | - public function pExpireAt($key,$milliseconds); |
|
393 | + public function pExpireAt($key, $milliseconds); |
|
394 | 394 | |
395 | 395 | /** |
396 | 396 | * @doc https://redis.io/commands/sync |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | * @param $timeout |
455 | 455 | * @return mixed |
456 | 456 | */ |
457 | - public function wait($numSlaves,$timeout); |
|
457 | + public function wait($numSlaves, $timeout); |
|
458 | 458 | |
459 | 459 | /** |
460 | 460 | * @doc https://redis.io/commands/watch |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | * @param array $options |
482 | 482 | * @return mixed |
483 | 483 | */ |
484 | - public function set($key,$value,array $options); |
|
484 | + public function set($key, $value, array $options); |
|
485 | 485 | |
486 | 486 | /** |
487 | 487 | * @doc https://redis.io/commands/setbit |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * @param $value |
492 | 492 | * @return mixed |
493 | 493 | */ |
494 | - public function setBit($key,$offset,$value); |
|
494 | + public function setBit($key, $offset, $value); |
|
495 | 495 | |
496 | 496 | /** |
497 | 497 | * @doc https://redis.io/commands/setex |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * @param $value |
502 | 502 | * @return mixed |
503 | 503 | */ |
504 | - public function setEx($key,$seconds,$value); |
|
504 | + public function setEx($key, $seconds, $value); |
|
505 | 505 | |
506 | 506 | /** |
507 | 507 | * @doc https://redis.io/commands/setnx |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | * @param $value |
511 | 511 | * @return mixed |
512 | 512 | */ |
513 | - public function setNx($key,$value); |
|
513 | + public function setNx($key, $value); |
|
514 | 514 | |
515 | 515 | /** |
516 | 516 | * @doc https://redis.io/commands/randomkey |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | * @param $newKey |
541 | 541 | * @return mixed |
542 | 542 | */ |
543 | - public function rename($key,$newKey); |
|
543 | + public function rename($key, $newKey); |
|
544 | 544 | |
545 | 545 | /** |
546 | 546 | * @doc https://redis.io/commands/renamenx |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | * @param $newKey |
550 | 550 | * @return mixed |
551 | 551 | */ |
552 | - public function renameNx($key,$newKey); |
|
552 | + public function renameNx($key, $newKey); |
|
553 | 553 | |
554 | 554 | /** |
555 | 555 | * @doc https://redis.io/commands/restore |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | * @param $value |
560 | 560 | * @return mixed |
561 | 561 | */ |
562 | - public function restore($key,$ttl,$value); |
|
562 | + public function restore($key, $ttl, $value); |
|
563 | 563 | |
564 | 564 | /** |
565 | 565 | * @doc https://redis.io/commands/ping |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | * @param string $message |
568 | 568 | * @return mixed |
569 | 569 | */ |
570 | - public function ping($message='pong'); |
|
570 | + public function ping($message = 'pong'); |
|
571 | 571 | |
572 | 572 | /** |
573 | 573 | * @doc https://redis.io/commands/quit |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | * @param $value |
585 | 585 | * @return mixed |
586 | 586 | */ |
587 | - public function setRange($key,$offset,$value); |
|
587 | + public function setRange($key, $offset, $value); |
|
588 | 588 | |
589 | 589 | /** |
590 | 590 | * @doc https://redis.io/commands/geoadd |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | * @param array $coordinates |
594 | 594 | * @return mixed |
595 | 595 | */ |
596 | - public function geoAdd($key,array $coordinates); |
|
596 | + public function geoAdd($key, array $coordinates); |
|
597 | 597 | |
598 | 598 | /** |
599 | 599 | * @doc https://redis.io/commands/geohash |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | * @param ...$members |
603 | 603 | * @return mixed |
604 | 604 | */ |
605 | - public function geoHash($key,...$members); |
|
605 | + public function geoHash($key, ...$members); |
|
606 | 606 | |
607 | 607 | /** |
608 | 608 | * @doc https://redis.io/commands/geopos |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | * @param ...$members |
612 | 612 | * @return mixed |
613 | 613 | */ |
614 | - public function geoPos($key,...$members); |
|
614 | + public function geoPos($key, ...$members); |
|
615 | 615 | |
616 | 616 | /** |
617 | 617 | * @doc https://redis.io/commands/geodist |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | * @param $unit |
623 | 623 | * @return mixed |
624 | 624 | */ |
625 | - public function geoDist($key,$memberA,$memberB,$unit); |
|
625 | + public function geoDist($key, $memberA, $memberB, $unit); |
|
626 | 626 | |
627 | 627 | /** |
628 | 628 | * @doc https://redis.io/commands/georadius |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | * @param $sort |
637 | 637 | * @return mixed |
638 | 638 | */ |
639 | - public function geoRadius($key,$longitude,$latitude,$unit,$command,$count,$sort); |
|
639 | + public function geoRadius($key, $longitude, $latitude, $unit, $command, $count, $sort); |
|
640 | 640 | |
641 | 641 | /** |
642 | 642 | * @doc https://redis.io/commands/georadiusbymember |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | * @param $storeDist |
652 | 652 | * @return mixed |
653 | 653 | */ |
654 | - public function geoRadiusByMember($key,$member,$unit,$command,$count,$sort,$store,$storeDist); |
|
654 | + public function geoRadiusByMember($key, $member, $unit, $command, $count, $sort, $store, $storeDist); |
|
655 | 655 | |
656 | 656 | /** |
657 | 657 | * @doc https://redis.io/commands/pttl |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | * @param $value |
670 | 670 | * @return mixed |
671 | 671 | */ |
672 | - public function pSetEx($key,$milliseconds,$value); |
|
672 | + public function pSetEx($key, $milliseconds, $value); |
|
673 | 673 | |
674 | 674 | /** |
675 | 675 | * @doc https://redis.io/commands/psubscribe |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | * @param array $args |
687 | 687 | * @return mixed |
688 | 688 | */ |
689 | - public function pubSub($command,array $args = []); |
|
689 | + public function pubSub($command, array $args = []); |
|
690 | 690 | |
691 | 691 | /** |
692 | 692 | * @doc https://redis.io/commands/publish |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | * @param $message |
696 | 696 | * @return mixed |
697 | 697 | */ |
698 | - public function publish($channel,$message); |
|
698 | + public function publish($channel, $message); |
|
699 | 699 | |
700 | 700 | /** |
701 | 701 | * @doc https://redis.io/commands/punsubscribe |
@@ -720,7 +720,7 @@ discard block |
||
720 | 720 | * @param $index |
721 | 721 | * @return mixed |
722 | 722 | */ |
723 | - public function lIndex($key,$index); |
|
723 | + public function lIndex($key, $index); |
|
724 | 724 | |
725 | 725 | /** |
726 | 726 | * @doc https://redis.io/commands/linsert |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | * @param $value |
732 | 732 | * @return mixed |
733 | 733 | */ |
734 | - public function lInsert($key,$action,$pivot,$value); |
|
734 | + public function lInsert($key, $action, $pivot, $value); |
|
735 | 735 | |
736 | 736 | /** |
737 | 737 | * @doc https://redis.io/commands/llen |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | * @param ...$values |
757 | 757 | * @return mixed |
758 | 758 | */ |
759 | - public function lPush($key,...$values); |
|
759 | + public function lPush($key, ...$values); |
|
760 | 760 | |
761 | 761 | /** |
762 | 762 | * @doc https://redis.io/commands/lpushx |
@@ -765,7 +765,7 @@ discard block |
||
765 | 765 | * @param $value |
766 | 766 | * @return mixed |
767 | 767 | */ |
768 | - public function lPushX($key,$value); |
|
768 | + public function lPushX($key, $value); |
|
769 | 769 | |
770 | 770 | /** |
771 | 771 | * @doc https://redis.io/commands/lrange |
@@ -775,7 +775,7 @@ discard block |
||
775 | 775 | * @param $stop |
776 | 776 | * @return mixed |
777 | 777 | */ |
778 | - public function lRange($key,$start,$stop); |
|
778 | + public function lRange($key, $start, $stop); |
|
779 | 779 | |
780 | 780 | /** |
781 | 781 | * @doc https://redis.io/commands/lrem |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | * @param $value |
786 | 786 | * @return mixed |
787 | 787 | */ |
788 | - public function lRem($key,$count,$value); |
|
788 | + public function lRem($key, $count, $value); |
|
789 | 789 | |
790 | 790 | /** |
791 | 791 | * @doc https://redis.io/commands/lset |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | * @param $value |
796 | 796 | * @return mixed |
797 | 797 | */ |
798 | - public function lSet($key,$index,$value); |
|
798 | + public function lSet($key, $index, $value); |
|
799 | 799 | |
800 | 800 | /** |
801 | 801 | * @doc https://redis.io/commands/ltrim |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * @param $stop |
806 | 806 | * @return mixed |
807 | 807 | */ |
808 | - public function lTrim($key,$start,$stop); |
|
808 | + public function lTrim($key, $start, $stop); |
|
809 | 809 | |
810 | 810 | /** |
811 | 811 | * @doc https://redis.io/commands/mget |
@@ -814,7 +814,7 @@ discard block |
||
814 | 814 | * @param ...$values |
815 | 815 | * @return mixed |
816 | 816 | */ |
817 | - public function mGet($key,...$values); |
|
817 | + public function mGet($key, ...$values); |
|
818 | 818 | |
819 | 819 | /** |
820 | 820 | * @doc https://redis.io/commands/mset |
@@ -838,7 +838,7 @@ discard block |
||
838 | 838 | * @param $db |
839 | 839 | * @return mixed |
840 | 840 | */ |
841 | - public function move($key,$db); |
|
841 | + public function move($key, $db); |
|
842 | 842 | |
843 | 843 | /** |
844 | 844 | * @doc https://redis.io/commands/msetnx |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | * @param $dst |
864 | 864 | * @return mixed |
865 | 865 | */ |
866 | - public function rPopLPush($src,$dst); |
|
866 | + public function rPopLPush($src, $dst); |
|
867 | 867 | |
868 | 868 | /** |
869 | 869 | * @doc https://redis.io/commands/rpush |
@@ -872,7 +872,7 @@ discard block |
||
872 | 872 | * @param ...$values |
873 | 873 | * @return mixed |
874 | 874 | */ |
875 | - public function rPush($key,...$values); |
|
875 | + public function rPush($key, ...$values); |
|
876 | 876 | |
877 | 877 | /** |
878 | 878 | * @doc https://redis.io/commands/rpushx |
@@ -881,7 +881,7 @@ discard block |
||
881 | 881 | * @param $value |
882 | 882 | * @return mixed |
883 | 883 | */ |
884 | - public function rPushX($key,$value); |
|
884 | + public function rPushX($key, $value); |
|
885 | 885 | |
886 | 886 | /** |
887 | 887 | * @doc https://redis.io/commands/pfadd |
@@ -890,7 +890,7 @@ discard block |
||
890 | 890 | * @param ...$elements |
891 | 891 | * @return mixed |
892 | 892 | */ |
893 | - public function pFAdd($key,...$elements); |
|
893 | + public function pFAdd($key, ...$elements); |
|
894 | 894 | |
895 | 895 | /** |
896 | 896 | * @doc https://redis.io/commands/pfcount |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | * @param $count |
970 | 970 | * @return mixed |
971 | 971 | */ |
972 | - public function clusterGetKeyInSlot($slot,$count); |
|
972 | + public function clusterGetKeyInSlot($slot, $count); |
|
973 | 973 | |
974 | 974 | /** |
975 | 975 | * @doc https://redis.io/commands/cluster-info |
@@ -993,7 +993,7 @@ discard block |
||
993 | 993 | * @param $port |
994 | 994 | * @return mixed |
995 | 995 | */ |
996 | - public function clusterMeet($ip,$port); |
|
996 | + public function clusterMeet($ip, $port); |
|
997 | 997 | |
998 | 998 | /** |
999 | 999 | * @doc https://redis.io/commands/cluster-nodes |
@@ -1040,7 +1040,7 @@ discard block |
||
1040 | 1040 | * @param $nodeId |
1041 | 1041 | * @return mixed |
1042 | 1042 | */ |
1043 | - public function clusterSetSlot($command,$nodeId); |
|
1043 | + public function clusterSetSlot($command, $nodeId); |
|
1044 | 1044 | |
1045 | 1045 | /** |
1046 | 1046 | * @doc https://redis.io/commands/cluster-slaves |
@@ -1086,7 +1086,7 @@ discard block |
||
1086 | 1086 | * @param array $options |
1087 | 1087 | * @return mixed |
1088 | 1088 | */ |
1089 | - public function zAdd($key,array $options = []); |
|
1089 | + public function zAdd($key, array $options = []); |
|
1090 | 1090 | |
1091 | 1091 | /** |
1092 | 1092 | * @doc https://redis.io/commands/zcard |
@@ -1104,7 +1104,7 @@ discard block |
||
1104 | 1104 | * @param $max |
1105 | 1105 | * @return mixed |
1106 | 1106 | */ |
1107 | - public function zCount($key,$min,$max); |
|
1107 | + public function zCount($key, $min, $max); |
|
1108 | 1108 | |
1109 | 1109 | /** |
1110 | 1110 | * @doc https://redis.io/commands/zincrby |
@@ -1114,7 +1114,7 @@ discard block |
||
1114 | 1114 | * @param $member |
1115 | 1115 | * @return mixed |
1116 | 1116 | */ |
1117 | - public function zIncrBy($key,$increment,$member); |
|
1117 | + public function zIncrBy($key, $increment, $member); |
|
1118 | 1118 | |
1119 | 1119 | /** |
1120 | 1120 | * @doc https://redis.io/commands/zinterstore |
@@ -1123,7 +1123,7 @@ discard block |
||
1123 | 1123 | * @param $numKeys |
1124 | 1124 | * @return mixed |
1125 | 1125 | */ |
1126 | - public function zInterStore($dst,$numKeys); |
|
1126 | + public function zInterStore($dst, $numKeys); |
|
1127 | 1127 | |
1128 | 1128 | /** |
1129 | 1129 | * @doc https://redis.io/commands/zlexcount |
@@ -1133,7 +1133,7 @@ discard block |
||
1133 | 1133 | * @param $max |
1134 | 1134 | * @return mixed |
1135 | 1135 | */ |
1136 | - public function zLexCount($key,$min,$max); |
|
1136 | + public function zLexCount($key, $min, $max); |
|
1137 | 1137 | |
1138 | 1138 | /** |
1139 | 1139 | * @doc https://redis.io/commands/zrange |
@@ -1144,7 +1144,7 @@ discard block |
||
1144 | 1144 | * @param array $options |
1145 | 1145 | * @return mixed |
1146 | 1146 | */ |
1147 | - public function zRange($key,$star,$stop,array $options = []); |
|
1147 | + public function zRange($key, $star, $stop, array $options = []); |
|
1148 | 1148 | |
1149 | 1149 | /** |
1150 | 1150 | * @doc https://redis.io/commands/zrangebylex |
@@ -1155,7 +1155,7 @@ discard block |
||
1155 | 1155 | * @param array $options |
1156 | 1156 | * @return mixed |
1157 | 1157 | */ |
1158 | - public function zRangeByLex($key,$min,$max,array $options = []); |
|
1158 | + public function zRangeByLex($key, $min, $max, array $options = []); |
|
1159 | 1159 | |
1160 | 1160 | /** |
1161 | 1161 | * @doc https://redis.io/commands/zrevrangebylex |
@@ -1166,7 +1166,7 @@ discard block |
||
1166 | 1166 | * @param array $options |
1167 | 1167 | * @return mixed |
1168 | 1168 | */ |
1169 | - public function zRevRangeByLex($key,$max,$min,array $options = []); |
|
1169 | + public function zRevRangeByLex($key, $max, $min, array $options = []); |
|
1170 | 1170 | |
1171 | 1171 | /** |
1172 | 1172 | * @doc https://redis.io/commands/zrevrangebyscore |
@@ -1177,7 +1177,7 @@ discard block |
||
1177 | 1177 | * @param array $options |
1178 | 1178 | * @return mixed |
1179 | 1179 | */ |
1180 | - public function zRangeByScore($key,$min,$max,array $options = []); |
|
1180 | + public function zRangeByScore($key, $min, $max, array $options = []); |
|
1181 | 1181 | |
1182 | 1182 | /** |
1183 | 1183 | * @doc https://redis.io/commands/zrank |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | * @param $member |
1187 | 1187 | * @return mixed |
1188 | 1188 | */ |
1189 | - public function zRank($key,$member); |
|
1189 | + public function zRank($key, $member); |
|
1190 | 1190 | |
1191 | 1191 | /** |
1192 | 1192 | * @doc https://redis.io/commands/zrem |
@@ -1195,7 +1195,7 @@ discard block |
||
1195 | 1195 | * @param ...$members |
1196 | 1196 | * @return mixed |
1197 | 1197 | */ |
1198 | - public function zRem($key,...$members); |
|
1198 | + public function zRem($key, ...$members); |
|
1199 | 1199 | |
1200 | 1200 | /** |
1201 | 1201 | * @doc https://redis.io/commands/zremrangebylex |
@@ -1205,7 +1205,7 @@ discard block |
||
1205 | 1205 | * @param $max |
1206 | 1206 | * @return mixed |
1207 | 1207 | */ |
1208 | - public function zRemRangeByLex($key,$min,$max); |
|
1208 | + public function zRemRangeByLex($key, $min, $max); |
|
1209 | 1209 | |
1210 | 1210 | /** |
1211 | 1211 | * @doc https://redis.io/commands/zremrangebyrank |
@@ -1236,7 +1236,7 @@ discard block |
||
1236 | 1236 | * @param array $options |
1237 | 1237 | * @return mixed |
1238 | 1238 | */ |
1239 | - public function zRevRange($key,$start,$stop,array $options = []); |
|
1239 | + public function zRevRange($key, $start, $stop, array $options = []); |
|
1240 | 1240 | |
1241 | 1241 | /** |
1242 | 1242 | * @doc https://redis.io/commands/zrevrangebyscore |
@@ -1247,7 +1247,7 @@ discard block |
||
1247 | 1247 | * @param array $options |
1248 | 1248 | * @return mixed |
1249 | 1249 | */ |
1250 | - public function zRevRangeByScore($key,$max,$min,array $options = []); |
|
1250 | + public function zRevRangeByScore($key, $max, $min, array $options = []); |
|
1251 | 1251 | |
1252 | 1252 | /** |
1253 | 1253 | * @doc https://redis.io/commands/zrevrank |
@@ -1256,7 +1256,7 @@ discard block |
||
1256 | 1256 | * @param $member |
1257 | 1257 | * @return mixed |
1258 | 1258 | */ |
1259 | - public function zRevRank($key,$member); |
|
1259 | + public function zRevRank($key, $member); |
|
1260 | 1260 | |
1261 | 1261 | /** |
1262 | 1262 | * @doc https://redis.io/commands/zscore |
@@ -1265,7 +1265,7 @@ discard block |
||
1265 | 1265 | * @param $member |
1266 | 1266 | * @return mixed |
1267 | 1267 | */ |
1268 | - public function zScore($key,$member); |
|
1268 | + public function zScore($key, $member); |
|
1269 | 1269 | |
1270 | 1270 | /** |
1271 | 1271 | * @doc https://redis.io/commands/zunionstore |
@@ -1274,7 +1274,7 @@ discard block |
||
1274 | 1274 | * @param $numKeys |
1275 | 1275 | * @return mixed |
1276 | 1276 | */ |
1277 | - public function zUnionScore($dst,$numKeys); |
|
1277 | + public function zUnionScore($dst, $numKeys); |
|
1278 | 1278 | |
1279 | 1279 | /** |
1280 | 1280 | * @doc https://redis.io/commands/scan |
@@ -1283,7 +1283,7 @@ discard block |
||
1283 | 1283 | * @param array $options |
1284 | 1284 | * @return mixed |
1285 | 1285 | */ |
1286 | - public function scan($cursor,array $options = []); |
|
1286 | + public function scan($cursor, array $options = []); |
|
1287 | 1287 | |
1288 | 1288 | /** |
1289 | 1289 | * @doc https://redis.io/commands/sscan |
@@ -1293,7 +1293,7 @@ discard block |
||
1293 | 1293 | * @param array $options |
1294 | 1294 | * @return mixed |
1295 | 1295 | */ |
1296 | - public function sScan($key,$cursor,array $options = []); |
|
1296 | + public function sScan($key, $cursor, array $options = []); |
|
1297 | 1297 | |
1298 | 1298 | /** |
1299 | 1299 | * @doc https://redis.io/commands/hscan |
@@ -1303,7 +1303,7 @@ discard block |
||
1303 | 1303 | * @param array $options |
1304 | 1304 | * @return mixed |
1305 | 1305 | */ |
1306 | - public function hScan($key,$cursor,array $options = []); |
|
1306 | + public function hScan($key, $cursor, array $options = []); |
|
1307 | 1307 | |
1308 | 1308 | /** |
1309 | 1309 | * @doc https://redis.io/commands/zscan |
@@ -1313,7 +1313,7 @@ discard block |
||
1313 | 1313 | * @param array $options |
1314 | 1314 | * @return mixed |
1315 | 1315 | */ |
1316 | - public function zScan($key,$cursor,array $options = []); |
|
1316 | + public function zScan($key, $cursor, array $options = []); |
|
1317 | 1317 | |
1318 | 1318 | /** |
1319 | 1319 | * @doc https://redis.io/commands/sinter |
@@ -1330,7 +1330,7 @@ discard block |
||
1330 | 1330 | * @param ...$keys |
1331 | 1331 | * @return mixed |
1332 | 1332 | */ |
1333 | - public function sInterStore($dst,...$keys); |
|
1333 | + public function sInterStore($dst, ...$keys); |
|
1334 | 1334 | |
1335 | 1335 | /** |
1336 | 1336 | * @doc https://redis.io/commands/sismember |
@@ -1339,7 +1339,7 @@ discard block |
||
1339 | 1339 | * @param $member |
1340 | 1340 | * @return mixed |
1341 | 1341 | */ |
1342 | - public function sIsMember($key,$member); |
|
1342 | + public function sIsMember($key, $member); |
|
1343 | 1343 | |
1344 | 1344 | /** |
1345 | 1345 | * @doc https://redis.io/commands/slaveof |
@@ -1348,7 +1348,7 @@ discard block |
||
1348 | 1348 | * @param $port |
1349 | 1349 | * @return mixed |
1350 | 1350 | */ |
1351 | - public function slaveOf($host,$port); |
|
1351 | + public function slaveOf($host, $port); |
|
1352 | 1352 | |
1353 | 1353 | /** |
1354 | 1354 | * @doc https://redis.io/commands/slowlog |
@@ -1357,7 +1357,7 @@ discard block |
||
1357 | 1357 | * @param array $args |
1358 | 1358 | * @return mixed |
1359 | 1359 | */ |
1360 | - public function sLowLog($command,array $args=[]); |
|
1360 | + public function sLowLog($command, array $args = []); |
|
1361 | 1361 | |
1362 | 1362 | /** |
1363 | 1363 | * @doc https://redis.io/commands/smembers |
@@ -1375,7 +1375,7 @@ discard block |
||
1375 | 1375 | * @param $members |
1376 | 1376 | * @return mixed |
1377 | 1377 | */ |
1378 | - public function sMove($src,$dst,$members); |
|
1378 | + public function sMove($src, $dst, $members); |
|
1379 | 1379 | |
1380 | 1380 | /** |
1381 | 1381 | * @doc https://redis.io/commands/sort |
@@ -1384,7 +1384,7 @@ discard block |
||
1384 | 1384 | * @param array $options |
1385 | 1385 | * @return mixed |
1386 | 1386 | */ |
1387 | - public function sort($key,array $options = []); |
|
1387 | + public function sort($key, array $options = []); |
|
1388 | 1388 | |
1389 | 1389 | /** |
1390 | 1390 | * @doc https://redis.io/commands/spop |
@@ -1393,7 +1393,7 @@ discard block |
||
1393 | 1393 | * @param $count |
1394 | 1394 | * @return mixed |
1395 | 1395 | */ |
1396 | - public function sPop($key,$count); |
|
1396 | + public function sPop($key, $count); |
|
1397 | 1397 | |
1398 | 1398 | /** |
1399 | 1399 | * @doc https://redis.io/commands/srandmember |
@@ -1402,7 +1402,7 @@ discard block |
||
1402 | 1402 | * @param $count |
1403 | 1403 | * @return mixed |
1404 | 1404 | */ |
1405 | - public function sRandMember($key,$count); |
|
1405 | + public function sRandMember($key, $count); |
|
1406 | 1406 | |
1407 | 1407 | /** |
1408 | 1408 | * @doc https://redis.io/commands/srem |
@@ -1411,7 +1411,7 @@ discard block |
||
1411 | 1411 | * @param ...$members |
1412 | 1412 | * @return mixed |
1413 | 1413 | */ |
1414 | - public function sRem($key,...$members); |
|
1414 | + public function sRem($key, ...$members); |
|
1415 | 1415 | |
1416 | 1416 | /** |
1417 | 1417 | * @doc https://redis.io/commands/strlen |
@@ -1444,7 +1444,7 @@ discard block |
||
1444 | 1444 | * @param ...$keys |
1445 | 1445 | * @return mixed |
1446 | 1446 | */ |
1447 | - public function sUnionStore($dst,...$keys); |
|
1447 | + public function sUnionStore($dst, ...$keys); |
|
1448 | 1448 | |
1449 | 1449 | /** |
1450 | 1450 | * @doc https://redis.io/commands/swapdb |
@@ -1454,7 +1454,7 @@ discard block |
||
1454 | 1454 | * @param ...$keys |
1455 | 1455 | * @return mixed |
1456 | 1456 | */ |
1457 | - public function sWapBb($opt,$dst,...$keys); |
|
1457 | + public function sWapBb($opt, $dst, ...$keys); |
|
1458 | 1458 | |
1459 | 1459 | /** |
1460 | 1460 | * @doc https://redis.io/commands/sadd |
@@ -1463,7 +1463,7 @@ discard block |
||
1463 | 1463 | * @param ...$members |
1464 | 1464 | * @return mixed |
1465 | 1465 | */ |
1466 | - public function sAdd($key,...$members); |
|
1466 | + public function sAdd($key, ...$members); |
|
1467 | 1467 | |
1468 | 1468 | /** |
1469 | 1469 | * @doc https://redis.io/commands/save |
@@ -1495,5 +1495,5 @@ discard block |
||
1495 | 1495 | * @param ...$keys |
1496 | 1496 | * @return mixed |
1497 | 1497 | */ |
1498 | - public function sDiffStore($dst,...$keys); |
|
1498 | + public function sDiffStore($dst, ...$keys); |
|
1499 | 1499 | } |
1500 | 1500 | \ No newline at end of file |