MCPcopy Create free account
hub / github.com/coleifer/huey / put_if_empty

Method put_if_empty

huey/api.py:386–387  ·  view source on GitHub ↗
(self, key, data)

Source from the content-addressed store, hash-verified

384 is_result=True)
385
386 def put_if_empty(self, key, data):
387 return self.storage.put_if_empty(key, self.serializer.serialize(data))
388
389 def get_raw(self, key, peek=False):
390 if peek:

Callers 1

acquireMethod · 0.45

Calls 1

serializeMethod · 0.80

Tested by

no test coverage detected