webdisWeb访问Redis

联合创作 · 2023-10-01 01:06

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"}
浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报