Skip to content

Refactor SORT and add SORT_RO command - #2200

Merged
michael-grunder merged 1 commit into
developfrom
issue.2068-sort_ro
Oct 23, 2022
Merged

Refactor SORT and add SORT_RO command#2200
michael-grunder merged 1 commit into
developfrom
issue.2068-sort_ro

Conversation

@michael-grunder

Copy link
Copy Markdown
Member

See #2068

@michael-grunder michael-grunder mentioned this pull request Oct 22, 2022
37 tasks
Comment thread redis_commands.c Outdated

/* Not storing */
*using_store = 0;
*ctx = NULL;

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.

*ctx already is NULL so you can remove three lines here

Comment thread tests/RedisTest.php Outdated
if (version_compare($this->version, "2.5.0") < 0) {
$this->assertEquals(array_reverse($list), $this->redis->sort('list', ['sort' => 'desc']));
} else {
// TODO rewrite, from 2.6.0 release notes:

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.

Could you also add tests here or remove this block?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I just removed the block. 2.5.0 is absolutely ancient.

@michael-grunder
michael-grunder merged commit 8c7c5a3 into develop Oct 23, 2022
@michael-grunder
michael-grunder deleted the issue.2068-sort_ro branch October 23, 2022 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants