tinywebdis - a lean webdis replacement using turbo.lua
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

curldemo.sh 810B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. ### !! this could inundate your redis db
  3. # curl demo
  4. # set and get
  5. curl -w '\n' http://127.0.0.1:8888/get/noexisting
  6. curl -w '\n' http://127.0.0.1:8888/set/noexisting/42
  7. curl -w '\n' http://127.0.0.1:8888/get/noexisting
  8. curl -w '\n' http://127.0.0.1:8888/set/a:a/42
  9. curl -w '\n' http://127.0.0.1:8888/set/a:b/gnupower!
  10. curl -w '\n' http://127.0.0.1:8888/get/a:b
  11. # scan
  12. curl -w '\n' http://127.0.0.1:8888/scan/0/match/a:*
  13. # rpush, llen and lrange
  14. curl -w '\n' http://127.0.0.1:8888/rpush/tinywebdis/lua
  15. curl -w '\n' http://127.0.0.1:8888/rpush/tinywebdis/dyad
  16. curl -w '\n' http://127.0.0.1:8888/rpush/tinywebdis/redis
  17. curl -w '\n' http://127.0.0.1:8888/llen/tinywebdis
  18. curl -w '\n' http://127.0.0.1:8888/lrange/tinywebdis/0/-1
  19. # jsonp
  20. curl -w '\n' http://127.0.0.1:8888/get/a:b?callback=myfunc