AnsweredAssumed Answered

Caching responses in SOE

Question asked by LeQwasd on Oct 21, 2019

Hello, I have made a simple SOE, which returns only quite static information - some additional information about the layers and tables within the MapServer. 
I have noticed, that sometimes the response time gets hung up somewhere.
Now I am casting serverObjectHelper.ServerObject to IMapServer4, IMapServerInfo4 and all of the other data structures, and getting information about the layers on every request. I was wondering - is there a good way, to cache these response on the SOE? So when the next request comes, I don't need to do this for every request (since the information wont change, untill the service is updated).

What methods or tools/objects within SOE infrastructure should I use, to "cache" the responses?

Outcomes