MCPcopy Create free account
hub / github.com/alephdata/aleph / get_many_complex

Method get_many_complex

aleph/cache.py:49–55  ·  view source on GitHub ↗
(self, keys, default=None)

Source from the content-addressed store, hash-verified

47 return json.loads(value)
48
49 def get_many_complex(self, keys, default=None):
50 if not len(keys):
51 return
52 values = self.kv.mget(keys)
53 for key, v in zip(keys, values):
54 v = json.loads(v) if v is not None else default
55 yield key, v
56
57 def get_list(self, key):
58 return self.kv.lrange(key, 0, -1)

Callers 3

entities_by_idsFunction · 0.80
get_collection_statsFunction · 0.80
resolveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected