Skip to content

Add Predis support #186

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

mtk3d
Copy link

@mtk3d mtk3d commented Apr 30, 2025

Hi
I've introduced changes to support Predis as an alternative Redis connection adapter, while maintaining full backward compatibility and avoiding code duplication.
This was achieved by introducing a minimal RedisClient interface, designed according to the YAGNI principle. It only exposes the necessary methods required by the prometheus adapter.
AbstractRedis.php is basically all redis generic logic moved from Redis.php

I know there already is a PR with predis but it seems abandoned.
I see there is still need to have support for predis, also I need one for my project. So I decided to make this one, and I’m ready to help bring it across the finish line 😄

All tests are passing locally, and the code style checks are green, so I hope there will be no issues in pipeline.

@mtk3d mtk3d changed the title Add predis support for basic redis adapter Add predis support for Redis adapter Apr 30, 2025
@mtk3d mtk3d changed the title Add predis support for Redis adapter Add Predis support for Redis adapter Apr 30, 2025
@mtk3d mtk3d force-pushed the feature/add-predis-support branch 5 times, most recently from 74a8188 to bdbd3f9 Compare April 30, 2025 22:50
mtk3d added 11 commits May 1, 2025 00:55
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
Signed-off-by: Mateusz Cholewka <[email protected]>
@mtk3d mtk3d force-pushed the feature/add-predis-support branch from bdbd3f9 to a3c7a3e Compare April 30, 2025 22:55
@mtk3d mtk3d changed the title Add Predis support for Redis adapter Add Predis support Apr 30, 2025
@mtk3d
Copy link
Author

mtk3d commented May 1, 2025

Ok, it's ready now

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.

1 participant