MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / set

Method set

core/tests.py:50–54  ·  view source on GitHub ↗
(self, key, value, nx=False, ex=None)

Source from the content-addressed store, hash-verified

48 self.keys = set()
49
50 def set(self, key, value, nx=False, ex=None):
51 if nx and key in self.keys:
52 return False
53 self.keys.add(key)
54 return True
55
56 def delete(self, key):
57 self.keys.discard(key)

Callers 5

acquire_task_lockFunction · 0.45
stopMethod · 0.45
scan_and_process_filesFunction · 0.45
_perform_ip_lookupFunction · 0.45
get_querysetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected