Connecting a Cache to RPC Calls in Effect Typescript
Is there a nice way to connect a cache to each RPC call?
I.e. doing getUser() multiple places to fulfill a request should only result in one db call
preferably something like const getUser = someEffect<A,E, CurrentUser>.pipe(Rpc.requestCache())
(and optionally be able to set cache duration to a timeout duration or/and the end of the request)
I.e. doing getUser() multiple places to fulfill a request should only result in one db call
preferably something like const getUser = someEffect<A,E, CurrentUser>.pipe(Rpc.requestCache())
(and optionally be able to set cache duration to a timeout duration or/and the end of the request)
