antirez/hiredis — pull request #70 by mrb (2011-12-02 13:47:39+00:00)
Title: Increase read depth by one, would allow ruby redis client to read from slowlog

Increasing this depth by 1 would allow ruby to do this:

```
class Redis
def slowlog(subcommand, length=nil)
synchronize do
args = [:slowlog, subcommand]
args << length if length
@client.call args
end
end
end
```

and produce results like this:

```
>> Resque.redis.slowlog "get", 1
=> [[2073, 1322833007, 9, ["LPOP", "resque:render_queue"]]]
>> Resque.redis.slowlog "get", 2
=> [[2078, 1322833012, 8, ["LPOP", "resque:render_queue"]], [2077, 1322833011, 11, ["LPOP", "resque:render_queue"]]]
```

Are there any disadvantages to this? If you don't want to patch hiredis this way, could it be possible to vendor a special version in the hiredis-rb package for this purpose?

Thanks!