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

Method lindex

apps/output/test_streaming_chunk_cache.py:63–67  ·  view source on GitHub ↗
(self, key, offset)

Source from the content-addressed store, hash-verified

61 self._lists.setdefault(key, []).append(value)
62
63 def lindex(self, key, offset):
64 items = self._lists.get(key, [])
65 if offset < len(items):
66 return items[offset]
67 return None
68
69 def llen(self, key):
70 return len(self._lists.get(key, []))

Callers 2

_stream_readyFunction · 0.80
_stream_followFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected