Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -3349,14 +3349,18 @@ public function xAck($stream, $group, $arr_messages) {}
* @param string $str_key
* @param string $str_id
* @param array $arr_message
* @param int $i_maxlen
* @param bool $boo_approximate
* @return string The added message ID.
* @link https://redis.io/commands/xadd
* @example
* <pre>
* $obj_redis->xAdd('mystream', "*", ['field' => 'value']);
* $obj_redis->xAdd('mystream', "*", ['field' => 'value'], 10);
* $obj_redis->xAdd('mystream', "*", ['field' => 'value'], 10, true);
* </pre>
*/
public function xAdd($str_key, $str_id, $arr_message) {}
public function xAdd($str_key, $str_id, $arr_message, $i_maxlen = 0, $boo_approximate = false) {}

/**
* Claim ownership of one or more pending messages.
Expand Down