Skip to content

Commit 977573c

Browse files
Add missing mkstream to xgroup function
1 parent 1c7a47b commit 977573c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Redis.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,15 +3407,17 @@ public function xDel($str_key, $arr_ids) {}
34073407
* @param string $str_key
34083408
* @param string $str_group
34093409
* @param string $str_msg_id
3410+
* @param bool $boo_mkstream
34103411
* @return mixed This command returns different types depending on the specific XGROUP command executed.
34113412
* @link https://redis.io/commands/xgroup
34123413
* @example
34133414
* <pre>
3414-
* $obj_redis->xGroup('CREATE', 'mystream', 'mygroup');
3415-
* $obj_redis->xGroup('DELGROUP', 'mystream', 'mygroup');
3415+
* $obj_redis->xGroup('CREATE', 'mystream', 'mygroup', 0);
3416+
* $obj_redis->xGroup('CREATE', 'mystream', 'mygroup', 0, true); // create stream
3417+
* $obj_redis->xGroup('DESTROY', 'mystream', 'mygroup');
34163418
* </pre>
34173419
*/
3418-
public function xGroup($operation, $str_key, $str_group, $str_msg_id) {}
3420+
public function xGroup($operation, $str_key, $str_group, $str_msg_id = '', $boo_mkstream = false) {}
34193421

34203422
/**
34213423
* Get information about a stream or consumer groups.

0 commit comments

Comments
 (0)