MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / cache

Function cache

tools/python-3.11.9-amd64/Lib/functools.py:651–653  ·  view source on GitHub ↗

Simple lightweight unbounded cache. Sometimes called "memoize".

(user_function, /)

Source from the content-addressed store, hash-verified

649################################################################################
650
651def cache(user_function, /):
652 'Simple lightweight unbounded cache. Sometimes called "memoize".'
653 return lru_cache(maxsize=None)(user_function)
654
655
656################################################################################

Callers 2

proxyFunction · 0.85
proxyFunction · 0.85

Calls 1

lru_cacheFunction · 0.85

Tested by

no test coverage detected