(data, value)
| 152 | } |
| 153 | |
| 154 | setCache(data, value) { |
| 155 | if(typeof(data) == 'string') { |
| 156 | this._cache[data] = value; |
| 157 | } else { |
| 158 | this._cache = { |
| 159 | ...this._cache, |
| 160 | ...data, |
| 161 | }; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | getCache(key) { |
| 166 | return key ? this._cache[key]: this._cache; |
no outgoing calls
no test coverage detected