Skip to content

Commit 875a35b

Browse files
Add maxlength and approximate argument to xadd
1 parent f6f666b commit 875a35b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Redis.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3349,14 +3349,18 @@ public function xAck($stream, $group, $arr_messages) {}
33493349
* @param string $str_key
33503350
* @param string $str_id
33513351
* @param array $arr_message
3352+
* @param int $i_maxlen
3353+
* @param bool $boo_approximate
33523354
* @return string The added message ID.
33533355
* @link https://redis.io/commands/xadd
33543356
* @example
33553357
* <pre>
33563358
* $obj_redis->xAdd('mystream', "*", ['field' => 'value']);
3359+
* $obj_redis->xAdd('mystream', "*", ['field' => 'value'], 10);
3360+
* $obj_redis->xAdd('mystream', "*", ['field' => 'value'], 10, true);
33573361
* </pre>
33583362
*/
3359-
public function xAdd($str_key, $str_id, $arr_message) {}
3363+
public function xAdd($str_key, $str_id, $arr_message, $i_maxlen = 0, $boo_approximate = false) {}
33603364

33613365
/**
33623366
* Claim ownership of one or more pending messages.

0 commit comments

Comments
 (0)