technoweenie / guillotine

URL shortening hobby kit
http://techno-weenie.net/guillotine/
MIT License
486 stars 54 forks source link

way to overwrite/delete/list db keys? #20

Closed zbeekman closed 8 years ago

zbeekman commented 8 years ago

Is there anyway to overwrite, list, or delete keys via GET or POST? I'm guessing not since you don't support authentication but I thought I'd check anyway. (Disclaimer: I have no background in ruby or web stuff) It would be great not to have to fire up a redis cli and poke around that way.

technoweenie commented 8 years ago

Yes for deleting keys, but not for listing keys. There are adapters for a variety of systems, with their own behaviors and drawbacks when listing keys. If you're thinking about this, I'd highly recommend going with the activerecord or sequel adapters, and using postgres or mysql. git.io currently runs on Heroku with Postgres. It handles the volume of data just fine, and of course postgres has great query capabilities.

Also keep in mind that this library is not under active development, unfortunately. You're of course welcome to use/fork the library, but don't count on an active community to answer questions or fix bugs.

zbeekman commented 8 years ago

awesome thanks for your help!