MCPcopy
hub / github.com/redis/node-redis / withCommandOptions

Method withCommandOptions

packages/client/lib/client/index.ts:1062–1075  ·  view source on GitHub ↗
(options: OPTIONS)

Source from the content-addressed store, hash-verified

1060 }
1061
1062 withCommandOptions<
1063 OPTIONS extends CommandOptions<TYPE_MAPPING>,
1064 TYPE_MAPPING extends TypeMapping
1065 >(options: OPTIONS) {
1066 const proxy = Object.create(this._self);
1067 proxy._commandOptions = { ...this._commandOptions, ...options };
1068 return proxy as RedisClientType<
1069 M,
1070 F,
1071 S,
1072 RESP,
1073 TYPE_MAPPING extends TypeMapping ? TYPE_MAPPING : {}
1074 >;
1075 }
1076
1077 private _commandOptionsProxy<
1078 K extends keyof CommandOptions,

Callers 2

pool.spec.tsFile · 0.45
index.spec.tsFile · 0.45

Calls 1

createMethod · 0.45

Tested by

no test coverage detected