代码改变世界

Web访问Redis webdis

2012-12-05 11:17  爱车龟速兔  阅读(2309)  评论(0编辑  收藏  举报

webdis 是一个简单的 Web 服务器,提供了 HTTP 接口来访问 Redis 服务器,使用了 hiredisjanssonlibevent, and http-parser 等软件。

安装和使用:

make clean all

./webdis &

curl http://127.0.0.1:7379/SET/hello/world
→ {"SET":[true,"OK"]}

curl http://127.0.0.1:7379/GET/hello
→ {"GET":"world"}

curl -d "GET/hello" http://127.0.0.1:7379/
→ {"GET":"world"}

软件首页:
https://github.com/nicolasff/webdis