【文件属性】:
文件名称:webdis:带JSON输出的Redis HTTP接口
文件大小:195KB
文件格式:ZIP
更新时间:2021-02-26 18:57:56
C
关于
一个非常简单的Web服务器,提供与Redis的HTTP接口。 它使用 , , 和 。
Webdis依赖于libevent-dev。 您可以在Ubuntu上键入sudo apt-get install libevent-dev来安装它,或者在macOS上键入brew install libevent来brew install libevent 。
从源代码构建和运行
$ 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: