(key: string)
| 28 | } |
| 29 | |
| 30 | remove(key: string) { |
| 31 | const fullKey = `${this.keyPrefix}.${key}`; |
| 32 | try { |
| 33 | localStorage.removeItem(fullKey); |
| 34 | } catch { |
| 35 | // nothing |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | keys(): string[] { |
| 40 | const { length } = localStorage; |
no outgoing calls