MCPcopy
hub / github.com/apache/tvm / addToCache

Method addToCache

web/src/artifact_cache.ts:73–73  ·  view source on GitHub ↗

* Fetch data from url and add into cache. If already exists in cache, should return instantly. * * @param url The url to the data to be cached. * @param storetype Only applies to `ArtifactIndexedDBCache`. Since `indexedDB` stores the actual * @param signal An optional AbortSignal to a

(url: string, storetype?: string, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

71 * Note: This is an async function.
72 */
73 addToCache(url: string, storetype?: string, signal?: AbortSignal): Promise<void>;
74
75 /**
76 * check if cache has all keys in Cache

Callers 1

downloadCacheMethod · 0.65

Implementers 4

ArtifactCacheweb/src/artifact_cache.ts
ArtifactIndexedDBCacheweb/src/artifact_cache.ts
ArtifactOPFSCacheweb/src/artifact_cache.ts
ArtifactCrossOriginStorageCacheweb/src/artifact_cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected