MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / dels

Method dels

src/app/cache.ts:84–95  ·  view source on GitHub ↗
(keys: string[])

Source from the content-addressed store, hash-verified

82 }
83
84 dels(keys: string[]): Promise<void> {
85 return new Promise((resolve) => {
86 chrome.storage.session.remove(keys, () => {
87 const lastError = chrome.runtime.lastError;
88 if (lastError) {
89 console.error("chrome.runtime.lastError in chrome.storage.session.remove:", lastError);
90 // 无视storage API错误,继续执行
91 }
92 resolve();
93 });
94 });
95 }
96
97 clear(): Promise<void> {
98 return new Promise((resolve) => {

Callers 1

cache.test.tsFile · 0.80

Calls 2

errorMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected