MCPcopy Index your code
hub / github.com/RustPython/RustPython / cache

Function cache

Lib/functools.py:726–728  ·  view source on GitHub ↗

Simple lightweight unbounded cache. Sometimes called "memoize".

(user_function, /)

Source from the content-addressed store, hash-verified

724################################################################################
725
726def cache(user_function, /):
727 'Simple lightweight unbounded cache. Sometimes called "memoize".'
728 return lru_cache(maxsize=None)(user_function)
729
730
731################################################################################

Callers 1

_name_innerMethod · 0.85

Calls 1

lru_cacheFunction · 0.85

Tested by

no test coverage detected