Skip to content

Conversation

@jeqo
Copy link
Contributor

@jeqo jeqo commented Nov 20, 2025

Add a new limiting configuration for cache sizing based on bytes instead of entries.

Historically, previous caching library only supported sizing based on entries. With Caffeine, sizing can now be defined by both entries and max bytes using weigther.

Depends on #453

jeqo added 2 commits November 20, 2025 14:12
Instead of creating yet another metrics instance, reuse the storage
metrics instance used by storage layer, as caching is a related module.

This will change the metric name prefix from:
`io.aiven.inkless.cache.caffeine` to `io.aiven.inkless.storage`
Add a new limiting configuration for cache sizing based on bytes instead
of entries.

Historically, previous caching library only supported sizing based on
entries. With Caffeine, sizing can now be defined by both entries and
max bytes using weigther.
@jeqo jeqo requested a review from jjaakola-aiven November 24, 2025 13:37
@jeqo jeqo force-pushed the jeqo/reuse-storage-metrics branch 3 times, most recently from 46cfe26 to da50d9c Compare November 25, 2025 10:41
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.

2 participants