(cache, num_to_trim)
| 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, |