MCPcopy
hub / github.com/bigchaindb/bigchaindb / memoized_func

Function memoized_func

bigchaindb/common/memoize.py:19–27  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

17
18 @functools.wraps(func)
19 def memoized_func(*args, **kwargs):
20
21 if args[1].get('id', None):
22 args = list(args)
23 args[1] = HDict(args[1])
24 new_args = tuple(args)
25 return from_dict(func, *new_args, **kwargs)
26 else:
27 return func(*args, **kwargs)
28
29 return memoized_func
30

Callers

nothing calls this directly

Calls 5

HDictClass · 0.85
from_dictFunction · 0.85
to_dictFunction · 0.85
ToDictWrapperClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected