web & redis api

http://thechangelog.com/post/2910383164/webdis-a-redis-http-interface-with-json-output

A Redis HTTP interface with JSON output — Read more
http://webd.is/
http://github.com/nicolasff/webdis

http://thechangelog.com/post/2910383164/webdis-a-redis-http-interface-with-json-output

—————————————————————————————

=_= 소개를 했으니 설치도 해보고 실행도 해보고…

일단 설치, 의존성이 있으니 libevent…
소스를 받아 바로 make clean  all
의존성 문제만 해결 되면 별 문제 없이 빌드 완료
(libevent를 위한 include/library 디렉토리 설정 문제로 각각 -I 옵션과 -L 옵션을 Makefile에 수정하였습)
이렇게 해서 나온 빌드를 redis가 localhost에 있다면 바로 실행가능…
그게 아니라면 webdis.json파일을 열어 적절하게 수정 필요
실행하면 7379포트를 통해 접근 가능…

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”}

기본 설정엔 인증이 필요하므로 curl -v -u user:password http:~~~ 등으로 실행할 필요가 있음

=_= 써 놓고 보니… readme 파일에 자세하게 이 모든게 설명되어 있네요..;;

꽤 직관적이라 쓰기 편합니다 =_=
더불어 binary도 보낼 수 있다고 하네요…
그리고 WebSockets도 지원합니다…

 

 

Leave a Reply