@utils.lru_cache(maxsize=300)
def get_stuff(key):
    return Stuff(key)

def iterate_stuff(keys):
    for key in keys:
        yield get_stuff(key)

def process(stuff_obj):
    stuff_obj.execute()

def main():
    pass
Как поделиться кешем?