MCPcopy Create free account
hub / github.com/SpecterOps/Nemesis / get

Method get

projects/frontend/src/utils/fileCache.js:38–63  ·  view source on GitHub ↗

* Get item from cache

(url)

Source from the content-addressed store, hash-verified

36 * Get item from cache
37 */
38 async get(url) {
39 const key = this.getCacheKey(url);
40 const entry = this.cache.get(key);
41
42 if (!entry) {
43 return null;
44 }
45
46 if (!this.isValid(entry)) {
47 log('[FileCache] Cache expired:', key);
48 this.cache.delete(key);
49 return null;
50 }
51
52 // Move to end (LRU)
53 this.cache.delete(key);
54 this.cache.set(key, entry);
55
56 // Create a new Response from the stored blob to avoid body stream issues
57 const blob = entry.blob;
58 return new Response(blob, {
59 status: entry.status,
60 statusText: entry.statusText,
61 headers: entry.headers
62 });
63 }
64
65 /**
66 * Add item to cache

Callers 15

FileBrowserFunction · 0.45
LinkedFilesSectionFunction · 0.45
ContainersFunction · 0.45
FileListFunction · 0.45
fetchTitusResultsFunction · 0.45
ChromiumLoginsFunction · 0.45
ChromiumStateKeysFunction · 0.45
ChromiumHistoryFunction · 0.45
ChromiumCookiesFunction · 0.45
ChromiumDownloadsFunction · 0.45
handleDownloadPDFFunction · 0.45
handleDownloadPDFFunction · 0.45

Calls 5

getCacheKeyMethod · 0.95
isValidMethod · 0.95
logFunction · 0.85
deleteMethod · 0.80
setMethod · 0.80

Tested by 1

_extract_titus_infoMethod · 0.36