(
parser: CommandParser,
keys: RedisVariadicArgument,
options?: ZInterCardOptions['LIMIT'] | ZInterCardOptions
)
| 9 | export default { |
| 10 | IS_READ_ONLY: true, |
| 11 | parseCommand( |
| 12 | parser: CommandParser, |
| 13 | keys: RedisVariadicArgument, |
| 14 | options?: ZInterCardOptions['LIMIT'] | ZInterCardOptions |
| 15 | ) { |
| 16 | parser.push('ZINTERCARD'); |
| 17 | parser.pushKeysLength(keys); |
| 18 | |
| 19 | // backwards compatibility |
| 20 | if (typeof options === 'number') { |
| 21 | parser.push('LIMIT', options.toString()); |
| 22 | } else if (options?.LIMIT) { |
| 23 | parser.push('LIMIT', options.LIMIT.toString()); |
| 24 | } |
| 25 | }, |
| 26 | transformReply: undefined as unknown as () => NumberReply |
| 27 | } as const satisfies Command; |
nothing calls this directly
no test coverage detected