mango.utils.decorator module


The memoize decorator will cache the result of a function and store it in a cache dictionary using its arguments and keywords arguments as a key. The cache can be cleared by calling the cache_clear function on the decorated function. If only a certain key needs to be removed the pop function can be used.