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.
- Loading branch information
Oleg Polyakov
committed
Mar 10, 2020
1 parent
7bb4020
commit 2ed76a9
Showing
3 changed files
with
28 additions
and
24 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 |
---|---|---|
|
@@ -61,6 +61,13 @@ export default { | |
url: 'redis://:[email protected]:6380/4', | ||
} | ||
``` | ||
With custom error handler | ||
```typescript | ||
export default { | ||
url: 'redis://:[email protected]:6380/4', | ||
errorHandler: (err, client) => {}, | ||
} | ||
``` | ||
With multi client | ||
```typescript | ||
export default [ | ||
|
@@ -197,4 +204,4 @@ interface RedisOptions { | |
showFriendlyErrorStack?: boolean; | ||
} | ||
``` | ||
That's it! | ||
That's it! |
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