diff --git a/src/Command/Processor/KeyPrefixProcessor.php b/src/Command/Processor/KeyPrefixProcessor.php index 8de9a847..233ffa80 100644 --- a/src/Command/Processor/KeyPrefixProcessor.php +++ b/src/Command/Processor/KeyPrefixProcessor.php @@ -186,6 +186,9 @@ class KeyPrefixProcessor implements ProcessorInterface 'XLEN' => $prefixFirst, 'XACK' => $prefixFirst, 'XTRIM' => $prefixFirst, + + /* ---------------- Redis 6.2 ---------------- */ + 'GETDEL' => $prefixFirst, ]; } diff --git a/tests/Predis/Command/Processor/KeyPrefixProcessorTest.php b/tests/Predis/Command/Processor/KeyPrefixProcessorTest.php index 205f2af5..b8acc4e1 100644 --- a/tests/Predis/Command/Processor/KeyPrefixProcessorTest.php +++ b/tests/Predis/Command/Processor/KeyPrefixProcessorTest.php @@ -973,6 +973,11 @@ class KeyPrefixProcessorTest extends PredisTestCase ['key', 'MAXLEN', 100], ['prefix:key', 'MAXLEN', 100], ], + /* ---------------- Redis 6.2 ---------------- */ + ['GETDEL', + ['key'], + ['prefix:key'], + ], ]; } } diff --git a/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php b/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php index 58254af5..dfca91d5 100644 --- a/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php +++ b/tests/Predis/Command/Redis/Search/FTSEARCH_Test.php @@ -113,6 +113,9 @@ class FTSEARCH_Test extends PredisCommandTestCase $ftCreateResponse = $redis->ftcreate('idx_hash', $schema, $ftCreateArguments); $this->assertEquals('OK', $ftCreateResponse); + // Timeout to make sure that index created before search performed. + usleep(2000); + $ftSearchArguments = new SearchArguments(); $ftSearchArguments->addReturn(1, 'should_return');