(
parser: CommandParser,
key: RedisArgument,
timestamp: number | Date,
mode?: 'NX' | 'XX' | 'GT' | 'LT'
)
| 4 | |
| 5 | export default { |
| 6 | parseCommand( |
| 7 | parser: CommandParser, |
| 8 | key: RedisArgument, |
| 9 | timestamp: number | Date, |
| 10 | mode?: 'NX' | 'XX' | 'GT' | 'LT' |
| 11 | ) { |
| 12 | parser.push('EXPIREAT'); |
| 13 | parser.pushKey(key); |
| 14 | parser.push(transformEXAT(timestamp)); |
| 15 | if (mode) { |
| 16 | parser.push(mode); |
| 17 | } |
| 18 | }, |
| 19 | transformReply: undefined as unknown as () => NumberReply |
| 20 | } as const satisfies Command; |
nothing calls this directly
no test coverage detected