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

Method withCommandOptions

packages/client/lib/client/pool.ts:349–362  ·  view source on GitHub ↗
(options: OPTIONS)

Source from the content-addressed store, hash-verified

347 _keyPrefix?: RedisArgument;
348
349 withCommandOptions<
350 OPTIONS extends CommandOptions<TYPE_MAPPING>,
351 TYPE_MAPPING extends TypeMapping
352 >(options: OPTIONS) {
353 const proxy = Object.create(this._self);
354 proxy._commandOptions = options;
355 return proxy as RedisClientPoolType<
356 M,
357 F,
358 S,
359 RESP,
360 TYPE_MAPPING extends TypeMapping ? TYPE_MAPPING : {}
361 >;
362 }
363
364 // Plain (not `#`) method so it can be invoked on prototype-derived proxies
365 // returned by `withCommandOptions(...)` — JS private (`#`) methods aren't

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected