prometheus_client_php icon indicating copy to clipboard operation
prometheus_client_php copied to clipboard

Added support of Predis library as storage adapter

Open tworzenieweb opened this issue 2 years ago • 2 comments

Since predis library is a well-known alternative to phpredis, I've decided to add an extension to Redis storage adapter.

Some properties and methods were changed to protected in order to handle slight differences between these 2 libs.

Mostly additional params are passed as an array in phpredis and as single arguments in predis.

tworzenieweb avatar Sep 12 '23 15:09 tworzenieweb

I'm currently looking into adding RedisCluster support (see #153). Probably we could join forces by rewriting the Redis adapter and include the if/else for handling Predis transparently and hiding the complexity to any user (DX++). WDYT?

mvhirsch avatar Apr 23 '24 19:04 mvhirsch

Is there any update on this? I'd love to get support for Predis in here so that I can use some additional stuff in production.

gms8994 avatar Jan 13 '25 14:01 gms8994