Using a custom runtime with `toWebHandler` and sharing a cache across requests can be a bit trick...
How can I use a custom Runtime when using
Here is my code (my attempt)
In MainLive, I have a cache that I want to share between request. Before the new rpc, I was using
With the new version, I tried to pass ServerRuntime.memoMap as to achieve the same goal, but it looks like the cache is recreated every request
toWebHandler, and is memoMap can help me here ?Here is my code (my attempt)
In MainLive, I have a cache that I want to share between request. Before the new rpc, I was using
ServerRuntime.runPromise (server runtime is just a managed runtime) and the cache was shared. With the new version, I tried to pass ServerRuntime.memoMap as to achieve the same goal, but it looks like the cache is recreated every request
