* Caches information about request to beware of unneeded addRequest() calls.
(cacheKey: string, queueOperationInfo: RequestQueueOperationInfo)
| 93 | * Caches information about request to beware of unneeded addRequest() calls. |
| 94 | */ |
| 95 | protected override _cacheRequest(cacheKey: string, queueOperationInfo: RequestQueueOperationInfo): void { |
| 96 | super._cacheRequest(cacheKey, queueOperationInfo); |
| 97 | |
| 98 | this.requestCache.remove(queueOperationInfo.requestId); |
| 99 | |
| 100 | this.requestCache.add(queueOperationInfo.requestId, { |
| 101 | id: queueOperationInfo.requestId, |
| 102 | isHandled: queueOperationInfo.wasAlreadyHandled, |
| 103 | uniqueKey: queueOperationInfo.uniqueKey, |
| 104 | forefront: queueOperationInfo.forefront, |
| 105 | hydrated: null, |
| 106 | lockExpiresAt: null, |
| 107 | }); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * @inheritDoc |
no test coverage detected