Caching an Effect During Request Lifetime in Effect Library

I'm migrating parts of my codebase to Effect and now I'm confused with how I'd cache an effect specifically during the lifetime of a request:

// the result for this customer id should be cached
yield* customerService.findById(customerId)

I'm seeing the Cache but it's not clear how to satisfy specifically that I'd like during the lifetime of the request.

I'm also asking this because I have to call AppRuntime.runPromise(someEffect) in several different places as I'm migrating the app to effect
Was this page helpful?