MCPcopy Index your code
hub / github.com/mudler/LocalAI / setUp

Method setUp

backend/python/mlx/test_mlx_cache.py:222–223  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

220 """Tests for LRU eviction behavior."""
221
222 def setUp(self):
223 self.cache = ThreadSafeLRUPromptCache(max_size=3)
224
225 def test_evicts_oldest_when_full(self):
226 """Should evict least recently used entry when capacity exceeded."""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected