forked from skunight/nestjs-redis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change custom error handler to custom event handler
- Loading branch information
Oleg Polyakov
committed
Mar 12, 2020
1 parent
2ed76a9
commit a8d7ad2
Showing
3 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,9 @@ With custom error handler | |
```typescript | ||
export default { | ||
url: 'redis://:[email protected]:6380/4', | ||
errorHandler: (err, client) => {}, | ||
onClientReady: (client) => { | ||
client.on('error', (err) => {} | ||
)}, | ||
} | ||
``` | ||
With multi client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters