Cache for hashable args.
>>> 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 >>>