I'm aware that @cache decorator is used as quick way to implement memoization

Is is possible to use it on other contexts, like for deterministic functions (that return the same result provided the same arguments)? Should I avoid it if the function is non-deterministic?

This is what the doc says

Returns the same as lru_cache(maxsize=None), creating a thin wrapper around a dictionary lookup for the function arguments

I wonder what happens when the function takes no arguments

🔴 No definitive solution yet