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

Function _stream_ready

apps/output/streaming_chunk_cache.py:96–104  ·  view source on GitHub ↗
(redis, base_key)

Source from the content-addressed store, hash-verified

94
95
96def _stream_ready(redis, base_key):
97 offset = 0
98 chunks_key = _chunks_key(base_key)
99 while True:
100 chunk = redis.lindex(chunks_key, offset)
101 if chunk is None:
102 break
103 yield _decode_chunk(chunk)
104 offset += 1
105
106
107def _stream_build(redis, base_key, source, cache_ttl, lock_ttl):

Callers 1

stream_cached_responseFunction · 0.85

Calls 3

_chunks_keyFunction · 0.85
_decode_chunkFunction · 0.85
lindexMethod · 0.80

Tested by

no test coverage detected