Closed marcboeker closed 12 years ago
If sounds like a bug. I'm not going to have time to look into this for a while, but the following code in client.rb should mean that the database is selected. Maybe you can debug a little?
@connection.on(:connected) do
@connected = true
select(@db) if @db
Cheers, Martyn
Using this URI to connect to Hiredis, the database is not selected automatically. It always defaults to DB 0. Inspecting the Client object after creation, the instance variable @db has the correct value.
But when I'm doing a manual select of the DB, it works like a charm.
Thanks Marc