Decorators and objects for memoization.


Decorator for memoizing a function using either the filesystem or a database.

class pyphi.memory.DbMemoizedFunc(func, ignore)

A memoized function, with a databse backing the cache.

get_output_key(args, kwargs)

Return the key that the output should be cached with, given arguments, keyword arguments, and a list of arguments to ignore.

load_output(args, kwargs)

Return cached output.