@@ -161,7 +161,7 @@ public function bgrewriteaof(): Redis|bool;
161161 /**
162162 * Count the number of set bits in a Redis string.
163163 *
164- * @see https://https:// redis.io/commands/bitcount/
164+ * @see https://redis.io/commands/bitcount/
165165 *
166166 * @param string $key The key in question (must be a string key)
167167 * @param int $start The index where Redis should start counting. If ommitted it
@@ -182,7 +182,7 @@ public function bitop(string $operation, string $deskey, string $srckey, string
182182 /**
183183 * Return the position of the first bit set to 0 or 1 in a string.
184184 *
185- * @see https://https:// redis.io/commands/bitpos/
185+ * @see https://redis.io/commands/bitpos/
186186 *
187187 * @param string $key The key to check (must be a string)
188188 * @param bool $bit Whether to look for an unset (0) or set (1) bit.
@@ -195,11 +195,54 @@ public function bitop(string $operation, string $deskey, string $srckey, string
195195 **/
196196 public function bitpos (string $ key , bool $ bit , int $ start = 0 , int $ end = -1 , bool $ bybit = false ): Redis |int |false ;
197197
198- public function blPop (string |array $ key , string |float |int $ timeout_or_key , mixed ...$ extra_args ): Redis |array |null |false ;
198+ /**
199+ * Pop an element off the beginning of a Redis list or lists, potentially blocking up to a specified
200+ * timeout. This method may be called in two distinct ways, of which examples are provided below.
201+ *
202+ * @see https://redis.io/commands/blpop/
203+ *
204+ * @param string|array $key_or_keys This can either be a string key or an array of one or more
205+ * keys.
206+ * @param string|float|int $timeout_or_key If the previous argument was a string key, this can either
207+ * be an additional key, or the timeout you wish to send to
208+ * the command.
209+ *
210+ * <code>
211+ * <?php>
212+ * // One way to call this method is in a variadic way, with the final argument being
213+ * // the intended timeout.
214+ * $redis->blPop('list1', 'list2', 'list3', 1.5);
215+ *
216+ * // Alternatively, you can send an array of keys
217+ * $relay->blPop(['list1', 'list2', 'list3'], 1.5);
218+ * ?>
219+ * </code>
220+ */
221+ public function blPop (string |array $ key_or_keys , string |float |int $ timeout_or_key , mixed ...$ extra_args ): Redis |array |null |false ;
199222
200- public function brPop (string |array $ key , string |float |int $ timeout_or_key , mixed ...$ extra_args ): Redis |array |null |false ;
223+ /**
224+ * Pop an element off of the end of a Redis list or lists, potentially blocking up to a specified timeout.
225+ * The calling convention is identical to Redis::blPop() so see that documentation for more details.
226+ *
227+ * @see https://redis.io/commands/brpop/
228+ * @see Redis::blPop()
229+ *
230+ */
231+ public function brPop (string |array $ key_or_keys , string |float |int $ timeout_or_key , mixed ...$ extra_args ): Redis |array |null |false ;
201232
202- public function brpoplpush (string $ src , string $ dst , int $ timeout ): Redis |string |false ;
233+ /**
234+ * Pop an element from the end of a Redis list, pushing it to the beginning of another Redis list,
235+ * optionally blocking up to a specified timeout.
236+ *
237+ * @see https://redis.io/commands/brpoplpush/
238+ *
239+ * @param string $src The source list
240+ * @param string $dst The destination list
241+ * @param int|float $timeout The number of seconds to wait. Note that you must be connected
242+ * to Redis >= 6.0.0 to send a floating point timeout.
243+ *
244+ */
245+ public function brpoplpush (string $ src , string $ dst , int |float $ timeout ): Redis |string |false ;
203246
204247 public function bzPopMax (string |array $ key , string |int $ timeout_or_key , mixed ...$ extra_args ): Redis |array |false ;
205248
@@ -755,7 +798,7 @@ public function slowlog(string $operation, int $length = 0): mixed;
755798 /**
756799 * Sort the contents of a Redis key in various ways.
757800 *
758- * @see https://https:// redis.io/commands/sort/
801+ * @see https://redis.io/commands/sort/
759802 *
760803 * @param string $key The key you wish to sort
761804 * @param array $options Various options controlling how you would like the
@@ -933,7 +976,7 @@ public function zPopMin(string $key, int $value = null): Redis|array|false;
933976 * How the command works in particular is greatly affected by the options that
934977 * are passed in.
935978 *
936- * @see https://https:// redis.io/commands/zrange/
979+ * @see https://redis.io/commands/zrange/
937980 * @category zset
938981 *
939982 * @param string $key The sorted set in question.
@@ -973,7 +1016,7 @@ public function zRangeByScore(string $key, string $start, string $end, array $op
9731016 * This command is similar to ZRANGE except that instead of returning the values directly
9741017 * it will store them in a destination key provided by the user
9751018 *
976- * @see https://https:// redis.io/commands/zrange/
1019+ * @see https://redis.io/commands/zrange/
9771020 * @see Redis::zRange
9781021 * @category zset
9791022 *
0 commit comments