Skip to content

Commit 88f70f2

Browse files
committed
Extend storage provider to enable purging surrogate keys
1 parent e523158 commit 88f70f2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/cli/storage/kv-store-local-provider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,7 @@ export class KvStoreLocalProvider implements StorageProvider {
186186
// to save time by checking for an existing item. This is not applicable for local.
187187
return null;
188188
}
189+
190+
async purgeSurrogateKey(_surrogateKey: string): Promise<void> {
191+
}
189192
}

src/cli/storage/kv-store-provider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ export class KvStoreProvider implements StorageProvider {
267267
return kvStoreItemMetadata;
268268

269269
}
270+
271+
async purgeSurrogateKey(_surrogateKey: string): Promise<void> {
272+
}
270273
}
271274

272275
export function kvStoreEntryToStorageEntry(

src/cli/storage/s3-storage-provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,4 +326,6 @@ export class S3StorageProvider implements StorageProvider {
326326
return assetVariantMetadata;
327327
}
328328

329+
async purgeSurrogateKey(surrogateKey: string): Promise<void> {
330+
}
329331
}

src/cli/storage/storage-provider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface StorageProvider {
3636
calculateNumChunks(size: number): number;
3737

3838
getExistingAssetVariant(variantKey: string): Promise<AssetVariantMetadata | null>;
39+
40+
purgeSurrogateKey(surrogateKey: string): Promise<void>;
3941
}
4042

4143
export type StorageProviderBatchEntry = {

0 commit comments

Comments
 (0)