Overview
LemonData automatically manages caching to optimize performance and reduce costs. While there is no public endpoint to clear cache entries, you have full control over caching behavior through request-level controls.Bypassing Cache
To get fresh responses without using cache, use thecache_control parameter in your request:
Cache Control Options
| Type | Effect |
|---|---|
no_cache | Skip cache lookup, always get fresh response |
no_store | Don’t store this response in cache |
response_only | Only use exact match cache (skip semantic) |
semantic_only | Only use semantic cache (skip exact match) |
Cache Feedback
If you receive an incorrect cached response, you can report it:Use Cases
Testing fresh responses
Testing fresh responses
During development, use
cache_control: {"type": "no_cache"} to ensure you’re getting fresh API responses.Time-sensitive queries
Time-sensitive queries
For real-time data like stock prices or weather, always use
no_cache to get current information.Debugging
Debugging
When debugging unexpected responses, use
no_cache to rule out cached results.For more details on caching, see the Caching Guide.