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

Backward compatiblity with older redis versions #133

Merged
merged 4 commits into from
Nov 6, 2023

Conversation

drieschel
Copy link
Contributor

Hi there!

This PR adds backward compatiblity with redis versions lower 5. Wiping the redis storage did not work without the added command redis.replicate_commands().

According to the redis documentation this command is deprecated in redis 7 but it still exists for backward compatiblity with older redis versions (see here).

We are using a redis 4 cluster and cannot upgrade it easily. So this MR helps us to get this component running without changing it externally.

Also others seem to have the same problem, ie #130 .

…with redis version < 5

Signed-off-by: Immanuel Klinkenberg <[email protected]>
Signed-off-by: Immanuel Klinkenberg <[email protected]>
Signed-off-by: Immanuel Klinkenberg <[email protected]>
@drieschel
Copy link
Contributor Author

Will it work when another redis version to the redis-version matrix in .github/workflows/tests.yml is added?

@drieschel
Copy link
Contributor Author

@LKaemmerling Do you miss something here? Would be great if we can have an open conversation about this MR. Would love to see it merged soon. Our metrics are growing and it is actually not possible to reset the counters on application level for us.

@LKaemmerling
Copy link
Member

Sorry for the late reply, i'm actually quite busy and the only one who tries to look over this.

Will it work when another redis version to the redis-version matrix in .github/workflows/tests.yml is added?

@drieschel yes this should work. You can try it.

@LKaemmerling
Copy link
Member

Thank you!

@LKaemmerling LKaemmerling merged commit 6f306e9 into PromPHP:main Nov 6, 2023
31 checks passed
@drieschel
Copy link
Contributor Author

Thanks to you @LKaemmerling.

@drieschel drieschel deleted the redis_backward_compatiblity branch November 6, 2023 15:43
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