You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

790 B

About

A very simple prototype providing an HTTP interface to Redis.

make clean all
./turnip &
curl http://127.0.0.1:7379/SET/hello/world
curl http://127.0.0.1:7379/GET/hello
→ “world”

curl -d "GET/hello" http://127.0.0.1:7379/
→ “world”

Ideas

  • Add meta-data info per key (MIME type in a second key, for instance)
  • Find a way to format multi-bulk data
  • Support PUT, DELETE, HEAD?
  • Add JSON output
  • Add JSONP callbacks
  • Add support for Redis UNIX socket
  • Enrich config file
    • Provide timeout
    • Restrict commands by IP range

HTTP error codes

  • Missing key: 404 Not Found
  • Timeout on the redis side: 503 Service Unavailable
  • Unknown verb: 405 Method Not Allowed

JSON output

/GET/x

{"GET": "value here"}

/INCR/y

{"INCR": 42}