nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 305 forks source link

webdis supporting the selection of databases #48

Closed Andrewpk closed 12 years ago

Andrewpk commented 12 years ago

http://code.google.com/p/redis/issues/detail?id=662

It seems that Antirez has no plans to deprecate databases for the 'single mode' redis server, but most likely will for the 'redis cluster' mode.

Would you reconsider implementing database selection, or consider a pull request if I or others could throw something together regarding this feature?

Thank you!

nicolasff commented 12 years ago

Hello Andrew,

You're right, it doesn't look like it'll go away anytime soon and it would be nice to have it. If I remember previous conversations correctly, I think the main proposal was /DB/COMMANDS/ARGS, with DB defaulting to what is in webdis.json when absent. What do you think of it? That's a small change that I can implement quickly.

Nicolas

Andrewpk commented 12 years ago

That would be excellent. Thanks for making webdis!

nicolasff commented 12 years ago

I pushed some code implementing this feature, along with a unit test. Please let me know if that works for you!

Andrewpk commented 12 years ago

Looks like it works great. Thank you for adding that support, and developing such a great web service!