Skip to content

Implement options for ZRANGE, ZRANGEBYSCORE, ZREVRANGE, ZREVRANGEBYSCORE#78

Closed
brstgt wants to merge 2 commits into
amphp:masterfrom
Jaumo:zset
Closed

Implement options for ZRANGE, ZRANGEBYSCORE, ZREVRANGE, ZREVRANGEBYSCORE#78
brstgt wants to merge 2 commits into
amphp:masterfrom
Jaumo:zset

Conversation

@brstgt

@brstgt brstgt commented Oct 7, 2022

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/RedisSortedSet.php Outdated
* @return Promise
*/
public function getRange(int $start, int $end): Promise
public function getRange(int $start, int $end, RangeOptions $options = null): Promise

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function getRange(int $start, int $end, RangeOptions $options = null): Promise
public function getRange(int $start, int $end, ?RangeOptions $options = null): Promise

Comment thread src/RedisSortedSet.php Outdated
return $this->withScores;
}

public function withOffset(int $offset, int $count): self

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be called withLimit instead?

Comment thread src/RedisSortedSet.php
* @return Promise
*/
public function getRangeByScore(float $min, float $max): Promise
public function getRangeByScore(float $min, float $max, RangeByScoreOptions $options = null): Promise

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function getRangeByScore(float $min, float $max, RangeByScoreOptions $options = null): Promise
public function getRangeByScore(float $min, float $max, ?RangeByScoreOptions $options = null): Promise

Comment thread src/RedisSortedSet.php
* @return Promise
*/
public function getReverseRangeByScore(float $min, float $max): Promise
public function getReverseRangeByScore(float $min, float $max, RangeByScoreOptions $options = null): Promise

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function getReverseRangeByScore(float $min, float $max, RangeByScoreOptions $options = null): Promise
public function getReverseRangeByScore(float $min, float $max, ?RangeByScoreOptions $options = null): Promise

@trowski trowski mentioned this pull request Dec 31, 2022
@trowski

trowski commented Feb 18, 2023

Copy link
Copy Markdown
Member

Merged in b720d08.

@trowski trowski closed this Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants