MCPcopy
hub / github.com/sunnylqm/react-native-storage / clearMapForKey

Method clearMapForKey

storage.js:321–326  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

319 });
320 }
321 clearMapForKey(key) {
322 return this._mapPromise.then(() => {
323 let tasks = (this._m.__keys__[key] || []).map(id => this.remove({ key, id }));
324 return Promise.all(tasks);
325 });
326 }
327 getIdsForKey(key) {
328 return this._mapPromise.then(() => {
329 return this._m.__keys__[key] || [];

Callers 1

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected