We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf7ed5 commit fe519c5Copy full SHA for fe519c5
src/Redis/Initializer.php
@@ -139,7 +139,14 @@ public static function registerCommandsRediska(): void
139
140
public static function getRediSearchVersion(Client $client): ?string
141
{
142
- $modules = $client->executeRaw('module', 'list') ?? [];
+ try {
143
+ $modules = $client->executeRaw('module', 'list') ?? [];
144
+ } catch (\Throwable $exception) {
145
+ if (strpos($exception->getMessage(), 'unknown command') === false) {
146
+ throw $exception;
147
+ }
148
+ $modules = [];
149
150
151
foreach ($modules as $module) {
152
$data = array_column(
0 commit comments