Skip to content

feat: cache size distribution stats and largest entries#56

Merged
eclectic-coding merged 2 commits into
mainfrom
feat/cache-size-distribution
May 26, 2026
Merged

feat: cache size distribution stats and largest entries#56
eclectic-coding merged 2 commits into
mainfrom
feat/cache-size-distribution

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds Size Distribution table to the Solid Cache overview page — 5 byte-range buckets (< 1 KB, 1–10 KB, 10–100 KB, 100 KB–1 MB, > 1 MB) with entry counts and proportional inline bars
  • Adds Largest Entries table (top 10 by byte size) with links to entry detail pages
  • Both sections are hidden when the cache is empty
  • Backed by a new CacheSizeStats PORO

Closes #27

Test plan

  • bundle exec rake passes (227 examples, 0 failures)
  • /cache with no entries shows only the stat cards, no distribution or largest sections
  • /cache with entries shows both sections
  • Distribution bars are proportional to entry counts across buckets
  • Each key in Largest Entries links to its detail page

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 26, 2026 10:01
Adds two sections to the Solid Cache overview page (hidden when empty):
- Size Distribution table with 5 byte-range buckets and proportional
  inline bars showing % of total entries per bucket
- Largest Entries table (top 10 by byte_size) with links to detail pages

Backed by CacheSizeStats PORO; distribution bars use --purple to match
the cache colour theme.

Closes #27

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 7f6d26c into main May 26, 2026
5 checks passed
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.

[v0.5.0] Cache: size distribution stats

1 participant