-
Notifications
You must be signed in to change notification settings - Fork 0
Performance Caching
Fernando Prieto Moyano edited this page Dec 27, 2025
·
2 revisions
Implements intelligent LRU (Least Recently Used) cache with TTL expiration that automatically caches GET requests, delivering 13.7x speedup (92% faster) on repeated requests. Inspired by Bruno API client, the cache is thread-safe, limits memory usage to 100 entries, and expires data after 5 minutes to balance performance with data freshness.
Benchmark Results (10 identical GET requests):
- Without Cache: 1537ms (153ms per request)
- With Cache: 112ms (11ms per request)
- Speedup: 13.7x faster with 9/10 requests served from cache
Inspired by Bruno API client, the cache is thread-safe, limits memory usage to 100 entries, and expires data after 5 minutes to balance performance with data freshness.