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

Method expire

apps/output/test_streaming_chunk_cache.py:55–58  ·  view source on GitHub ↗
(self, key, ttl)

Source from the content-addressed store, hash-verified

53 return key in self._strings or key in self._lists
54
55 def expire(self, key, ttl):
56 if key in self._strings or key in self._lists:
57 self._expires_at[key] = time.monotonic() + ttl
58 return True
59
60 def rpush(self, key, value):
61 self._lists.setdefault(key, []).append(value)

Callers 15

_renew_loopMethod · 0.80
_gevent_ws_sendFunction · 0.80
_refresh_build_ttlFunction · 0.80
_stream_buildFunction · 0.80
create_connectionMethod · 0.80
try_acquire_ownershipMethod · 0.80
extend_ownershipMethod · 0.80
initialize_channelMethod · 0.80
stop_channelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected