Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pintsized committed May 13, 2015
1 parent ef92666 commit e44cc16
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ local redis_connector = require "resty.redis.connector"
local rc = redis_connector.new()

local redis, err = rc:connect{ url = "redis://[email protected]:6379/2" }

-- or...

local redis, err = rc:connect{
host = "127.0.0.1",
port = 6379,
db = 2,
password = "PASSWORD",
}

if not redis then
ngx.log(ngx.ERR, err)
end
Expand Down

0 comments on commit e44cc16

Please sign in to comment.