MCPcopy Create free account
hub / github.com/anomalyco/opencode / removeItem

Method removeItem

packages/app/src/utils/persist.test.ts:40–45  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

38 }
39
40 removeItem(key: string) {
41 this.calls.remove += 1
42 this.events.push(`remove:${key}`)
43 if (key.startsWith("opencode.throw")) throw new Error("storage remove failed")
44 this.values.delete(key)
45 }
46}
47
48const storage = new MemoryStorage()

Callers 14

setStorageFunction · 0.80
evictFunction · 0.80
writeFunction · 0.80
readCurrentFunction · 0.80
migrateLegacyFunction · 0.80
readCurrentAsyncFunction · 0.80
removeAsyncFunction · 0.80
migrateLegacyAsyncFunction · 0.80
localStorageWithPrefixFunction · 0.80
localStorageDirectFunction · 0.80
removePersistedFunction · 0.80

Calls 2

pushMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected