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