(streamId: string)
| 229 | } |
| 230 | |
| 231 | export async function writeAbortMarker(streamId: string): Promise<void> { |
| 232 | const ttlSeconds = getStreamConfig().ttlSeconds |
| 233 | await withRedisRetry({ operation: 'write_abort_marker', streamId }, async (redis) => { |
| 234 | await redis.set(getAbortKey(streamId), '1', 'EX', ttlSeconds) |
| 235 | }) |
| 236 | } |
| 237 | |
| 238 | export async function hasAbortMarker(streamId: string): Promise<boolean> { |
| 239 | return withRedisRetry({ operation: 'read_abort_marker', streamId }, async (redis) => { |
no test coverage detected