Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing stream key prefixes #1230

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

jessarcher
Copy link
Contributor

#1051 fixed an issue where Predis was not applying key prefixes to stream commands, however, it missed a couple of commands that are otherwise supported by Predis.

This PR adds key prefix support for XREVRANGE and XTRIM. There are additional Redis stream commands such as XREAD that are missing from this list, but they don't have a corresponding class in src/Command/Redis/ so I assume they are unsupported in Predis at this time.

@jessarcher jessarcher changed the title Added missing stream key prefixes Add missing stream key prefixes Mar 28, 2023
@coveralls
Copy link

coveralls commented Mar 28, 2023

Coverage Status

Coverage: 87.512% (+0.006%) from 87.506% when pulling 18b9f8e on jessarcher:xtrim-xrevrange-key-prefix into 0e019cc on predis:v2.x.

@tillkruss tillkruss added the bug label Mar 29, 2023
@tillkruss tillkruss merged commit 98d4f80 into predis:v2.x Mar 29, 2023
@tillkruss
Copy link
Member

@jessarcher Do you need a release?

@jessarcher
Copy link
Contributor Author

@tillkruss Not urgently, but it would be appreciated when you have the time.

@tillkruss
Copy link
Member

@vladvildanov Can you add these commands to ClusterStrategy as well, like you did in #1235?

@vladvildanov
Copy link
Contributor

@tillkruss Did it within my PR 👌

@tillkruss
Copy link
Member

Thanks @vladvildanov ❤️‍🔥

@jessarcher jessarcher deleted the xtrim-xrevrange-key-prefix branch April 2, 2023 23:47
vladvildanov added a commit that referenced this pull request Apr 3, 2023
* Added support for new arguments for BITPOS, BITCOUNT commands (#1045)

* Added support for new arguments for EXPIRE, EXPIREAT commands (#1046)

* Extended core support by implementing SORT_RO command (#1044)

* Added support for SORT_RO command

* Codestyle fixes

* Added command description

---------

Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>

* fix deprecated call

* Added support for container commands (#1049)

* Added support for container commands FUNCTION LOAD, FUNCTION DELETE and FCALL

* Changed ContainerInterface and AbstractContainer

* Re-implement logic of abstract methods

---------

Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>

* Added stream commands to KeyPrefixProcessor (#1051)

Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>

* Fix return type of ReplicationInterface::getSlaves (#1111)

* Codestyle fixes

* Changed return annotation

* Add option for disabling reads to slaves in replication topologies (#1168)

* Add option for disabling reads to slaves in replication topologies

(cherry picked from commit e132c31)

* remove empty line

---------

Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>

* match `MasterSlaveReplication` (#1175)

* match `MasterSlaveReplication`

also the name of this method 😬

* Update SentinelReplication.php

* Added CODEOWNERS file (#1181)

* Added CODEOWNERS file

* Update CODEOWNERS

* Applied whole Redis commands path as @vladvildanov codeowner

* Set @predis/team as Redis commands codeowners

* Update CODEOWNERS

---------

Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>
Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>

* Deprecate webdis and phpiredis (#1179)

* Deprecate webdis and phpiredis

* remove space

* tag v2.1.2

* Extended core support by implementing FCALL_RO command (#1191)

* typo

* Extended core support by implementing ACL SETUSER, GETUSER, DRYRUN (#1193)

* Added support for ACL GETUSER, SETUSER, DRYRUN commands

* Change test to support Redis > 6.0.0

* Removed selectors check

* Add missing stream key prefixes (#1230)

* Added missing stream key prefixes

* Tested stream command key prefixing

* Codestyle fix

* Changed idx name for different index types

---------

Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>
Co-authored-by: Till Krüss <till@kruss.io>
Co-authored-by: Stephan <glaubinix@users.noreply.github.com>
Co-authored-by: David Bomba <turbo124@gmail.com>
Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
Co-authored-by: Jess Archer <jess@jessarcher.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants