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

Method set

apps/output/test_streaming_chunk_cache.py:36–43  ·  view source on GitHub ↗
(self, key, value, nx=False, ex=None)

Source from the content-addressed store, hash-verified

34 return self._strings.get(key)
35
36 def set(self, key, value, nx=False, ex=None):
37 self._purge_expired()
38 if nx and key in self._strings:
39 return None
40 self._strings[key] = value
41 if ex is not None:
42 self._expires_at[key] = time.monotonic() + ex
43 return True
44
45 def delete(self, *keys):
46 for key in keys:

Callers 5

_try_acquire_lockFunction · 0.45
_stream_buildFunction · 0.45
_log_epg_downloadFunction · 0.45
slow_sourceMethod · 0.45
generate_m3uFunction · 0.45

Calls 1

_purge_expiredMethod · 0.95

Tested by

no test coverage detected