Documentation Index
Fetch the complete documentation index at: https://docs.hexr.dev/llms.txt
Use this file to discover all available pages before exploring further.
hexr cache lets you inspect and manage the three-tier credential cache that powers hexr_tool() calls inside your agents. The cache operates at three levels — L1 in-memory, L2 in Valkey, and L3 full exchange with the cloud provider — and is designed to keep cloud credential round-trips below 1 ms for hot paths. Use hexr cache when you need to diagnose credential latency, force a full re-exchange after rotating secrets, or pull cache performance metrics for observability pipelines.
Usage
Subcommands
hexr cache status
Show the current state of each cached credential, including which cache tier is holding it, its TTL, and when it expires:hexr cache clear
Evict all entries from L1 and L2. The nexthexr_tool() call for any service will perform a full L3 credential exchange:
hexr cache metrics
Export detailed cache performance metrics for the past 24 hours. Useful for dashboards, alerting, and debugging unexpected latency spikes:Cache tier reference
| Tier | Storage | Typical latency | Purpose |
|---|---|---|---|
| L1 | In-process memory | ~0.001 ms | Fastest path for hot credentials |
| L2 | Valkey (shared) | ~2 ms | Cross-process sharing within the pod |
| L3 | Cloud provider exchange | ~142 ms | Full SPIFFE-to-cloud credential exchange |