forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WEB] Move ArtifactCache to Interface, Support Cache delete and Batch…
… Delete, Remove typo (apache#16525) Parallel Download, Move ArtifactCache to Interface to support future different cache types, fix README path typo, Support delete and batch delete Co-authored-by: DavidGOrtega <[email protected]>
- Loading branch information
1 parent
dd70941
commit 40ec469
Showing
5 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
Common Interface for the artifact cache | ||
*/ | ||
export interface ArtifactCacheTemplate { | ||
/** | ||
* fetch key url from cache | ||
*/ | ||
fetchWithCache(url: string); | ||
|
||
/** | ||
* check if cache has all keys in Cache | ||
*/ | ||
hasAllKeys(keys: string[]); | ||
|
||
/** | ||
* Delete url in cache if url exists | ||
*/ | ||
deleteInCache(url: string); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters