MCPcopy Create free account
hub / github.com/BerriAI/litellm / cache_edge

Function cache_edge

tests/code_coverage_tests/test_provider_cache.py:189–193  ·  view source on GitHub ↗

A cache edge standing in for one pytest process. A fresh instance over the same store is the next build running the same test: the recordings survive, the per-test FIFO slot counters start over.

(store: ResponseStore)

Source from the content-addressed store, hash-verified

187
188
189def cache_edge(store: ResponseStore) -> CacheEdge:
190 """A cache edge standing in for one pytest process. A fresh instance over the
191 same store is the next build running the same test: the recordings survive,
192 the per-test FIFO slot counters start over."""
193 return CacheEdge(store, SECRET)
194
195
196def slot_key(

Calls 1

CacheEdgeClass · 0.90

Tested by

no test coverage detected