So lets say I'm having a below example
Class A:
def __init__(self, param_1, param_2):
self.param_1 = param_1
self.param_2 = param_2
@region.cache_on_arguments()
def a(self, param):
return param*self.param_1*self.param_2
So if I call
A(1,2).a(2)
this will cache the function result for other objects too like
So lets say I'm having a below example
So if I call
A(1,2).a(2)this will cache the function result for other objects too like