28
Views
1
Comments
Cache on request level
Question
Application Type
Reactive

Hi,

Does anyone know how to cache or store data in memory for the request's lifetime?

I want to hold information while the request is made. I tried an extension, but this instance is kept alive while the server is online, not when a request is made.


I want to achieve only executing an aggregate once in a request lifetime when the inputs are the same.

2023-03-16 16-29-51
Paulo Rosário

Hello Damian,

I'm not sure that this would work but have you tried setting the cache in minutes value of your aggregate in the request?



Hope it helps! 

Paulo Rosário

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.