mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-24 09:42:43 +00:00
ioredis: showFriendlyErrorStack option (#20459)
This commit is contained in:
parent
4ef648f6ea
commit
69737ccec9
4
types/ioredis/index.d.ts
vendored
4
types/ioredis/index.d.ts
vendored
@ -711,6 +711,10 @@ declare module IORedis {
|
||||
* If you are using the hiredis parser, it's highly recommended to enable this option. Create another instance with dropBufferSupport disabled for other commands that you want to return binary instead of string:
|
||||
*/
|
||||
dropBufferSupport?: boolean;
|
||||
/**
|
||||
* Whether to show a friendly error stack. Will decrease the performance significantly.
|
||||
*/
|
||||
showFriendlyErrorStack?: boolean;
|
||||
}
|
||||
|
||||
interface ScanStreamOption {
|
||||
|
||||
@ -30,7 +30,8 @@ new Redis({
|
||||
family: 4, // 4 (IPv4) or 6 (IPv6)
|
||||
password: 'auth',
|
||||
db: 0,
|
||||
retryStrategy: function() { return false; }
|
||||
retryStrategy: function() { return false; },
|
||||
showFriendlyErrorStack: true
|
||||
})
|
||||
|
||||
var pub = new Redis();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user