import ring @ring.lru() def hello(a,b,c): print(a,b,c) return str(a)+str(b)+str(c) # %% hello(1,2,3)