We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa4495f commit a29d9c4Copy full SHA for a29d9c4
lib/Redis.ts
@@ -355,8 +355,8 @@ class Redis extends Commander {
355
* var anotherRedis = redis.duplicate();
356
* ```
357
*/
358
- duplicate(override: RedisOptions) {
359
- return new Redis(Object.assign({}, this.options, override || {}));
+ duplicate(override?: Partial<RedisOptions>) {
+ return new Redis({ ...this.options, ...override });
360
}
361
362
recoverFromFatalError(commandError, err: Error | null, options) {
0 commit comments