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

Method clearMap

storage.js:316–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314 }));
315 }
316 clearMap() {
317 this.removeItem('map').then(() => {
318 this._m = this._initMap();
319 });
320 }
321 clearMapForKey(key) {
322 return this._mapPromise.then(() => {
323 let tasks = (this._m.__keys__[key] || []).map(id => this.remove({ key, id }));

Callers

nothing calls this directly

Calls 2

removeItemMethod · 0.95
_initMapMethod · 0.95

Tested by

no test coverage detected