Skip to content

feat(aci): Add CacheMapping helper#107821

Draft
kcons wants to merge 3 commits intomasterfrom
kcons/getmany
Draft

feat(aci): Add CacheMapping helper#107821
kcons wants to merge 3 commits intomasterfrom
kcons/getmany

Conversation

@kcons
Copy link
Member

@kcons kcons commented Feb 7, 2026

CacheAccess is ok for single key interactions, but it makes bulk operations (which should in many cases be the default) painful.
CacheMapping is a bit more intuitive, offers safe(ish) bulk operations, and can generate a CacheAccess when single-item interaction is more convenient.

This also has a concept of namespacing; we had a bug in the past where two cache interactions were unintentionally using the same prefix. By using module-level CacheMapping with the namespace explicitly provided, this should be a non-issue. It's not perfect, but the more is provided at framework level, the more leeway we have to validate this sort of thing.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant