mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 01:32:44 +08:00
12 lines
455 B
TypeScript
12 lines
455 B
TypeScript
import type { LocalArtifactRetentionCursor } from '../domain/localArtifactRetention';
|
|
import type { LocalArtifactRetentionCheckpoint } from '../domain/localArtifactRetentionCheckpoint';
|
|
|
|
export interface LocalArtifactRetentionCheckpointStore {
|
|
load(): Promise<Readonly<LocalArtifactRetentionCheckpoint>>;
|
|
compareAndSet(value: {
|
|
expectedVersion: number;
|
|
cursor?: LocalArtifactRetentionCursor;
|
|
updatedAtMs: number;
|
|
}): Promise<boolean>;
|
|
}
|