rberga06.utils.cache#

Useful caching utilities.

Functions

clear(obj, /, *[, cls])

func([f, cls])

Classes

Cache([_])

A cache.

FCache([_])

Function cache.

FCacheArgOnly([_])

A function cache that ignores **kwargs.

FCacheKwOnly([_])

A function cache that ignores *args.

FCacheNoParams([_])

A function cache that ignores *args and **kwargs.

FCacheOneArg([_])

A function cache that only checks the first positional argument.

WithCache(*args, **kwargs)