Skip to content

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 .

@drieschel drieschel force-pushed the redis_backward_compatiblity branch from 36b2655 to 9407858 Compare October 19, 2023 21:08
…with redis version < 5

Signed-off-by: Immanuel Klinkenberg <drieschel@yahoo.de>
Signed-off-by: Immanuel Klinkenberg <drieschel@yahoo.de>
@drieschel drieschel force-pushed the redis_backward_compatiblity branch from 9407858 to ab3ba7a Compare October 19, 2023 21:12
Signed-off-by: Immanuel Klinkenberg <drieschel@yahoo.de>
@drieschel drieschel force-pushed the redis_backward_compatiblity branch from 31eb85e to 7350e5f Compare October 26, 2023 19:18
@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
@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