Skip to content

Commit ff762dd

Browse files
docs(cache): refine cache coordination comments
1 parent 2fb5e36 commit ff762dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export class DistributedCache<T> {
476476
return fallbackData;
477477
}
478478

479-
// Lock not acquired. Wait and poll L2 cache.
479+
// Wait briefly before checking whether another instance populated the cache.
480480
await new Promise((resolve) => setTimeout(resolve, pollInterval));
481481
const doubleCheck = await this.get(key);
482482

0 commit comments

Comments
 (0)