Skip to content

Include hit bucket layer in logger output#34

Merged
grischaerbe merged 3 commits into
masterfrom
grischaerbe/log-bucket-on-hit
Apr 29, 2026
Merged

Include hit bucket layer in logger output#34
grischaerbe merged 3 commits into
masterfrom
grischaerbe/log-bucket-on-hit

Conversation

@grischaerbe

Copy link
Copy Markdown
Owner

Summary

  • Log lines for cache HITs now report which cascade layer served the entry, e.g. Cacheable "api:puzzles:en": HIT (L1) 1.8ms, using a 1-indexed L<n> tag.
  • Threads the hit bucket index through #runPolicy and the #cascadeRead / #cascadeResolve helpers; MISS lines and the silent-no-logger path are unchanged.
  • Updates README, ILogger JSDoc, and the HIT regex in the existing logging tests.

Test plan

  • npx vitest run (72/72 pass)

🤖 Generated with Claude Code

grischaerbe and others added 3 commits April 30, 2026 00:50
Log lines for HIT now report the 1-indexed bucket layer that served
the entry, e.g. `Cacheable "api:puzzles:en": HIT (L1) 1.8ms`, so it's
clear which cascade tier responded.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@grischaerbe grischaerbe merged commit d6be5f0 into master Apr 29, 2026
5 checks passed
@grischaerbe grischaerbe deleted the grischaerbe/log-bucket-on-hit branch April 29, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant