rir_cache_stats
Monitor in-memory TTL cache performance to prevent repeated RIR queries, respect rate limits, and reduce lookup latency by tracking entry counts and configured TTLs.
Instructions
View the current state of the in-memory TTL cache.
The cache prevents repeated queries to RIRs within short windows, respecting rate limits and reducing latency for repeated lookups.
Returns: str: JSON with cache entry counts (total, alive, expired) and the configured TTL for each query type. Schema: { "cache_stats": {"total_entries": int, "alive": int, "expired": int}, "ttl_seconds": {"ip": int, "asn": int, "org": int, "abuse": int, "bgp": int, "rpki": int} }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |