9 Commits

Author SHA1 Message Date
michael-grunder
2acab399cb Fix the echo liveness check when in sentinel mode.
The current echo liveness check was doing one big complex conditional
trying to incorporate both sentinel's expected ERR no such command
response and non-sentinel's actual bulk reply to ECHO.

This commit refactors the logic to check the echo response into a little
helper with different logic depending on whether or not we're connected
to a sentinel.

Additionally, we add a test to verify that we are in fact reusing
persistent connections when the user requests a persistent connection
with `RedisSentinel`.

Fixes #2148
2025-07-18 08:43:22 -07:00
michael-grunder
b808cc60ed Update tests so they can run in php-cgi.
This probably isn't a very common scenerio since we've never had someone
ask it in a decade, but it was very simple to get them working.

Primarily we just needed to test for `STDTOUT`/`STDERR` and use
`__DIR__` instead of `$_SERVER['PHP_SELF']`.

Fixes #2507
2024-06-17 11:46:44 -07:00
Pavlo Yatsukhnenko
ebb2386e52 Synchronize Redis and RedisSentinel constructors 2023-02-12 22:33:45 +02:00
michael-grunder
0243dd9d2a SENTINEL RESET returns a long. 2022-11-17 22:35:18 -08:00
Pavlo Yatsukhnenko
e24b0843b3 Fix tests 2022-06-18 19:54:31 +03:00
Pavlo Yatsukhnenko
a5c41ceb0f Fix tests on Redis 7.0 2022-05-26 16:32:21 +03:00
Pavlo Yatsukhnenko
dcf4b83be3 TravisCI: sentinel tests 2021-03-06 12:30:21 +02:00
Pavlo Yatsukhnenko
5eb58a4c79 [WIP] Issue #1894
Add RedisSentinel::myid command
2021-02-20 23:10:29 +02:00
Pavlo Yatsukhnenko
c94e28f1eb Add RedisSentinel class and tests 2020-02-06 14:14:46 -08:00