The not sofisticated cache decorators.
Functions
basic_cache(func)
basic_cache
Cache for hashable args.
Details
>>> from cutcutcodec.core.opti.cache.basic import basic_cache >>> i = 0 >>> @basic_cache ... def f(x): ... global i ... i += x ... return i ... >>> f(1) 1 >>> f(1) 1 >>>