MCPcopy Index your code
hub / github.com/apache/tvm / fetchWithCache

Method fetchWithCache

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

* Retrieve data object that corresponds to `url` from cache. If data object does not exist in * cache, fetch the data and then add to cache. * * @param url The url to the data to be cached. * @param storetype This field is required so that `ArtifactIndexedDBCache` can store the * ac

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

Source from the content-addressed store, hash-verified

57 * Note: This is an async function.
58 */
59 fetchWithCache(url: string, storetype?: string, signal?: AbortSignal): Promise<any>;
60
61 /**
62 * Fetch data from url and add into cache. If already exists in cache, should return instantly.

Callers 4

hasTensorInCacheFunction · 0.65
deleteTensorCacheFunction · 0.65
fetchTensorCacheMethod · 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