Skip to content

Commit

Permalink
Link to redis:// scheme IANA registration
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Oct 8, 2015
1 parent 5983cef commit 7204c47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ You can specify which Redis to connect to by:
new Redis() // Connect to 127.0.0.1:6379
new Redis(6380) // 127.0.0.1:6380
new Redis(6379, '192.168.1.1') // 192.168.1.1:6379
new Redis('redis://:authpassword@127.0.0.1:6380/4') // 127.0.0.1:6380, db 4
new Redis('/tmp/redis.sock')
new Redis({
port: 6379, // Redis port
Expand All @@ -87,6 +86,12 @@ new Redis({
})
```

You can also specify connection options as a [`redis://` URL](http://www.iana.org/assignments/uri-schemes/prov/redis).

```javascript
new Redis('redis://:authpassword@127.0.0.1:6380/4') // 127.0.0.1:6380, db 4
```

See [API Documentation](API.md#new_Redis) for all available options.

## Pub/Sub
Expand Down

0 comments on commit 7204c47

Please sign in to comment.