Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ await Promise.all([
]);
```

### Sentinel

Look at the [sentinel section](docs/sentinel.md) to figure out how to use this library with sentinels.

### Programmability

See the [Programmability overview](https://github.com/redis/node-redis/blob/master/docs/programmability.md).
Expand Down
13 changes: 13 additions & 0 deletions docs/sentinel.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,19 @@ createSentinel({
});
```

## Client Config

Many of the [Client Configs](docs/client-configuration.md) work with sentinel mode for example passwords

```javascript
createSentinel({
// ...
nodeClientOptions: {
password: password,
},
});
```

## Master client lease

Sometimes multiple commands needs to run on an exclusive client (for example, using `WATCH/MULTI/EXEC`).
Expand Down
Loading