ioredis: showFriendlyErrorStack option (#20459)

This commit is contained in:
Piotr Roszatycki 2017-10-14 00:11:17 +02:00 committed by Wesley Wigham
parent 4ef648f6ea
commit 69737ccec9
2 changed files with 6 additions and 1 deletions

View File

@ -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 {

View File

@ -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();