MCPcopy
hub / github.com/mudler/LocalAI / mock_trim

Method mock_trim

backend/python/mlx/test_mlx_cache.py:122–125  ·  view source on GitHub ↗
(cache, num_to_trim)

Source from the content-addressed store, hash-verified

120 return True
121
122 def mock_trim(cache, num_to_trim):
123 self.trim_calls.append(num_to_trim)
124 # Simulate trimming by modifying the cache
125 cache.append(f"trimmed_{num_to_trim}")
126
127 self.cache = ThreadSafeLRUPromptCache(
128 max_size=10,

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected