python cache code example
Example 1: clear all python cache
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
Example 2: lru cache python
from functools import lru_cache
@lru_cache(maxsize = 100)
def myfunc(args):
// do something