cached_queryQuery result was served from cache
Cache hit detected, reducing database load. Result served without a database round-trip.
What triggers this signal
typescript
// Arsenic detects cache hits when your adapter reports a cached result
// Example — manual cache-aside with arsenic monitoring
const monitor = createMonitor({
emitPositiveSignals: true,
exporter: (event) => {
if (event.signals.includes('cached_query')) {
metrics.increment('db.cache.hit', { model: event.model });
}
},
});
// Track your cache hit ratio over time
// High ratio = caching is working
// Sudden drop = cache was flushed or TTL is too short