From 875a35b6a5550044a9de87ad4772ff66b86c25f5 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 6 Jun 2019 17:54:17 +0200 Subject: [PATCH] Add maxlength and approximate argument to xadd --- src/Redis.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Redis.php b/src/Redis.php index 47972c5..7db031f 100644 --- a/src/Redis.php +++ b/src/Redis.php @@ -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 *
      * $obj_redis->xAdd('mystream', "*", ['field' => 'value']);
+     * $obj_redis->xAdd('mystream', "*", ['field' => 'value'], 10);
+     * $obj_redis->xAdd('mystream', "*", ['field' => 'value'], 10, true);
      * 
*/ - 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.