(parser: CommandParser, keys: RedisVariadicArgument, options?: SInterCardOptions | number)
| 14 | export default { |
| 15 | IS_READ_ONLY: true, |
| 16 | parseCommand(parser: CommandParser, keys: RedisVariadicArgument, options?: SInterCardOptions | number) { |
| 17 | parser.push('SINTERCARD'); |
| 18 | parser.pushKeysLength(keys); |
| 19 | |
| 20 | if (typeof options === 'number') { // backwards compatibility |
| 21 | parser.push('LIMIT', options.toString()); |
| 22 | } else if (options?.LIMIT !== undefined) { |
| 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