Skip to content

Commit

Permalink
Implement cacheScope by caching a Promise<CacheEntry> (#71286)
Browse files Browse the repository at this point in the history
The cacheScope needs to contain the full CacheEntry, not just the
stream, so that it can transfer tag/life to the parent scope when it's
used.

I needed to do some refactoring. The tricky bit is that we want to store
a Promise into both the cacheHandler and the cacheScope as early as
possible to ensure they can dedupe and future requests while it's still
pending.
  • Loading branch information
sebmarkbage authored Oct 15, 2024
1 parent 3cde42f commit 7a62bbf
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 189 deletions.
Loading

0 comments on commit 7a62bbf

Please sign in to comment.