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

Method set_complex

aleph/cache.py:30–32  ·  view source on GitHub ↗
(self, key, value, expires=None)

Source from the content-addressed store, hash-verified

28 self.kv.set(key, value, ex=expires)
29
30 def set_complex(self, key, value, expires=None):
31 value = json.dumps(value, cls=JSONEncoder)
32 return self.set(key, value, expires=expires)
33
34 def set_list(self, key, values, expires=None):
35 self.kv.delete(key)

Callers 8

to_tokenMethod · 0.80
oauth_initFunction · 0.80
entities_by_idsFunction · 0.80
get_collectionFunction · 0.80
update_collection_statsFunction · 0.80
get_roleFunction · 0.80
get_profileFunction · 0.80
compute_collectionsFunction · 0.80

Calls 1

setMethod · 0.95

Tested by

no test coverage detected