Fix __read_response() call in keys(): used wrong command
authorPedro Melo <melo@simplicidade.org>
Sat, 7 Aug 2010 11:55:55 +0000 (12:55 +0100)
committerPedro Melo <melo@simplicidade.org>
Sat, 7 Aug 2010 12:26:48 +0000 (13:26 +0100)
Signed-off-by: Pedro Melo <melo@simplicidade.org>
lib/Redis.pm

index 4159bad..11ba2cb 100644 (file)
@@ -116,7 +116,8 @@ sub keys {
 
   $self->__send_command('KEYS', @_);
 
-  my @keys = $self->__read_response('INFO', \my $type);
+  my @keys = $self->__read_response('KEYS', \my $type);
+  ## Support redis > 1.26
   return @keys if $type eq '*';
 
   ## Support redis <= 1.2.6