mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
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
3.7 KiB
3.7 KiB