Simple lightweight unbounded cache. Sometimes called "memoize".
(user_function, /)
| 745 | ################################################################################ |
| 746 | |
| 747 | def cache(user_function, /): |
| 748 | 'Simple lightweight unbounded cache. Sometimes called "memoize".' |
| 749 | return lru_cache(maxsize=None)(user_function) |
| 750 | |
| 751 | |
| 752 | ################################################################################ |
nothing calls this directly
no test coverage detected
searching dependent graphs…