Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabsop authored and ra1u committed Mar 19, 2022
1 parent 603abba commit 6d22c6a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,14 @@ Secure ssl/tls with `RedisConnection.connectSecure(host,port)`

```dart
final conn = RedisConnection();
conn.connectSecure('localhost',6379).then((Command command){
command.send_object(["SET","key","0"]).then((var response)
print(response);
)
}
conn.connectSecure('localhost', 6379).then((Command command) {
command
.send_object(["AUTH", "username", "password"]).then((var response) {
print(response);
command.send_object(["SET", "key", "0"]).then(
(var response) => print(response));
});
});
```

or by passing any other [`Socket`](https://api.dart.dev/stable/dart-io/Socket-class.html) to
Expand Down

0 comments on commit 6d22c6a

Please sign in to comment.