MCPcopy
hub / github.com/gruns/ImmortalDB / remove

Method remove

src/index.js:170–184  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

168 }
169
170 async remove (key) {
171 await this.onReady
172
173 key = `${DEFAULT_KEY_PREFIX}${key}`
174
175 await Promise.all(
176 this.stores.map(async store => {
177 try {
178 await store.remove(key)
179 } catch (err) {
180 cl(err)
181 }
182 }),
183 )
184 }
185}
186
187const ImmortalDB = new ImmortalStorage()

Callers 1

getMethod · 0.95

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected