/redisHttpApi

HTTP Restful API for Redis, easy to use and can be integrated into your applications easily.

Primary LanguageLua

redisHttpApi

Requirements:

  1. OpenResty has been installed under /usr/local/openresty, please refer to http://www.openresty.org/ for details.

  2. Redis has been installed.

Usage:

  1. Modify the Redis settings in lua/appConfig.lua, the defaults are localhost and 6379, and doesn't require pass.

  2. Start the app by running the shell file ./startup.sh, please modify the execution permission if it can't start. Please refer to OpenResty's documentation for how to start the service if you're using Windows to run OpenResty.

  3. There are two modes:

  1. In your applications, you can use above URLs to set and get values with Redis, and recommend HTTP POST to use the APIs.