Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I cache RequestFactory data on client side?

Is there a part of RequestFactory classes I can override to provide automatic caching for some requests? I could cache outside RF, of course, but I'd like to do it via overriding to be totally invisible.

like image 614
Riley Lark Avatar asked Mar 21 '26 19:03

Riley Lark


1 Answers

The ServiceLayer.invoke() method could be patched via the ServiceLayerDecorator chain. It's called from SimpleRequestProcessor.processInvocationMessages() after all of the OperationMessages have been applied.

like image 191
BobV Avatar answered Mar 24 '26 14:03

BobV