mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Predis\Commands\Keys has been adjusted to handle the change in its reply type in a backwards-compatible way (the KEYS command will return a multibulk reply starting from Redis 2.0).
This commit is contained in:
@@ -1257,6 +1257,9 @@ class Keys extends \Predis\InlineCommand {
|
||||
public function getCommandId() { return 'KEYS'; }
|
||||
public function parseResponse($data) {
|
||||
// TODO: is this behaviour correct?
|
||||
if (is_array($data)) {
|
||||
return $data;
|
||||
}
|
||||
return strlen($data) > 0 ? explode(' ', $data) : array();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user