Skip to content

Commit e211afa

Browse files
committed
Add password option to README
1 parent d24da3e commit e211afa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ To connect to Redis listening on a Unix socket, try:
4747
redis = Redis.new(:path => "/tmp/redis.sock")
4848
```
4949

50+
To connect to a password protected Redis instance, use:
51+
52+
```ruby
53+
redis = Redis.new(:password => "mysecret")
54+
```
55+
5056
The Redis class exports methods that are named identical to the commands
5157
they execute. The arguments these methods accept are often identical to
5258
the arguments specified on the [Redis website][redis-commands]. For

0 commit comments

Comments
 (0)