Skip to content

Design batch reads and invalidations without one Redis script per key #46

Description

@lan17

Priority

P3 — Low — later or demand-driven enhancement.

Problem

The public wrapper and semantic Redis boundary are scalar. Fetching or invalidating many IDs therefore causes one network/script operation per key even when the source of truth supports batching.

Evidence:

Open design

Produce a typed API proposal and coordinate it with the cache-definition-handle work in #21 before implementation.

Acceptance criteria

  • Define loader behavior, ordering, misses, partial failures, and fail-open semantics.
  • Preserve runtime policy, ramping, local cache, coalescing, serializers, and tracked invalidation.
  • Group Redis Cluster operations by slot and handle tracked/untracked keys correctly.
  • Define a capability fallback for scalar-only custom adapters.
  • Benchmark batches of 10, 100, and 1,000 against scalar Promise.all.
  • Obtain explicit API approval before implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions