Sitelet https://github.com/phpredis/phpredis/pull/1650
Skip to content

Issue #1646 - #1650

Merged
michael-grunder merged 4 commits into
developfrom
issue-1646
Feb 6, 2020
Merged

michael-grunder merged 4 commits into
developfrom
issue-1646

Conversation

@yatsukhnenko

Copy link
Copy Markdown
Member

Add TYPE param to SCAN command.
Arginfo wasn't updated so this change isn't breaking change :)

@yatsukhnenko yatsukhnenko changed the title Issue #1647 Issue #1646 Oct 9, 2019
Add TYPE param to SCAN command.
Arginfo wasn't updated so this change isn't breaking change :)
NOTE:  [This
comment](https://github.com/antirez/redis/pull/6116#issuecomment-509331565)
indicates the feature may be backported to Redis 5, so we'll want to
change our unit test if that happens.
@michael-grunder

michael-grunder commented Oct 10, 2019 •

Copy link
Copy Markdown
Member

This change seems fine to me and I think you're right that it's not a breaking change.

Really the only question is whether we should take a free-form string for TYPE or take our type constants. There are advantages to both. The free-form string is future proof, but also error prone.

I don't really have a strong opinion on the matter. I suppose using the constants could be useful if people ever wanted to use the result from $obj_r->type($str_some_key) as input to SCAN but I don't really know why that would be useful.

@michael-grunder
michael-grunder merged commit b1724b8 into develop Feb 6, 2020
@yatsukhnenko
yatsukhnenko deleted the issue-1646 branch February 18, 2020 07:15
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