Skip to content

Commit 42c3451

Browse files
committed
docstr
1 parent 9eb0954 commit 42c3451

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/shared/utilities/resourceCache.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ export abstract class CachedResource<V> {
7979
}
8080
}
8181

82+
/**
83+
* Possible paths here
84+
* 1. cache doesn't exist.
85+
* 2. cache exists but expired.
86+
* 3. lock is held by other process and the waiting time is greater than the specified waiting time
87+
*/
8288
logger.info(`cache miss, invoking service API to pull the latest response`)
8389
try {
8490
// Make the real network call / FS read to pull the resource

0 commit comments

Comments
 (0)