(key)
| 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] || []; |
no test coverage detected