I want to setup a in memory cache for my report data .
62 obj={'Mon May 23 00:00:00 CAT 2022':[68.0, 49.0, 24.0, 33.0, 39.0, 46.0],
63 'Mon May 30 00:00:00 CAT 2022': [54.0, 64.0, 18.0, 25.0, 51.0, 27.0],
64 'Mon Jun 06 00:00:00 CAT 2022': [54.0, 64.0, 18.0, 26.0, 50.0, 28.0],
65 'Mon Jun 13 00:00:00 CAT 2022': [59.0, 47.0, 20.0, 28.0, 38.0, 40.0]}
66 system.util.globals()['reportCache']={'weeklyTotals':obj}
I am trying to use system.util.globals()
function but when I run it ,I get the following error.
Traceback (most recent call last):
File "<input>", line 66, in <module>
TypeError: 'stringmap' object is not callable