Subject: | Redis cpan module, "sort" implementation |
Date: | Tue, 31 Jan 2012 13:15:13 +0100 |
To: | bug-Redis [...] rt.cpan.org |
From: | Tom Van De Wiele <tow [...] nsense.net> |
Hello,
The "sort" command in the perl CPAN implementation does not return
anything. Redis returns the elements that were sorted when issuing a sort
command. The perl implementation does not seem to do that?
---
use strict;
use Redis;
my $r = Redis->new;
my @m = $r->sort("mykey BY nosort LIMIT 0 5");
my $num = @m;
print $num; => yields 0 where it should be 5
---
Is this a deliberate deviation from the way redis does things? A bug?
Best regards
Tom