dave08
10/13/2024, 8:32 AMCLOVIS
10/13/2024, 8:33 AMCLOVIS
10/13/2024, 8:33 AMdave08
10/13/2024, 8:34 AMdave08
10/13/2024, 8:35 AMdave08
10/13/2024, 8:35 AMdave08
10/13/2024, 8:36 AMCLOVIS
10/13/2024, 8:37 AMcaller → cache → some service
Since you always control both the caller and the implementation service, what you can do is use a Semaphore in the service. The cache will only call the service if it doesn't know the result already, so the semaphore will only be used for actual requests and won't slow down results-from-cache.CLOVIS
10/13/2024, 8:39 AMFlow.map
to replace it by whichever default value you wantdave08
10/13/2024, 8:44 AMCLOVIS
10/13/2024, 8:49 AMCache
interface? You can implement it and do whateverCLOVIS
10/13/2024, 8:50 AMCLOVIS
10/13/2024, 8:50 AM