MCPcopy Index your code
hub / github.com/coleifer/huey / peek_data

Method peek_data

huey/storage.py:653–658  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

651 self.conn.set(self.result_key(key), value)
652
653 def peek_data(self, key):
654 pipe = self.conn.pipeline()
655 pipe.exists(self.result_key(key))
656 pipe.get(self.result_key(key))
657 exists, val = pipe.execute()
658 return EmptyData if not exists else val
659
660 # Here we explicitly prevent result items from being removed by using the
661 # same implementation for "pop" (get and delete) as we do for "peek"

Callers

nothing calls this directly

Calls 3

result_keyMethod · 0.80
getMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected