* Removes all cached API responses from sessionStorage. * @returns {number} the number of entries cleared
()
| 325 | * @returns {number} the number of entries cleared |
| 326 | */ |
| 327 | function clearCache() { |
| 328 | const keys = _cacheKeys(); |
| 329 | for (const key of keys) { |
| 330 | _cacheDelete(key); |
| 331 | } |
| 332 | return keys.length; |
| 333 | } |
| 334 | |
| 335 | return { get, post, put, patch, delete: del, all, queue, request, clearCache, onBusy, onIdle }; |
| 336 | })(); |
nothing calls this directly
no test coverage detected