Skip to content

Feature: ReadThrough mode #381

@bartelink

Description

@bartelink

The current AllowStale option will use any cached state as held

Being able to constrain it to only use the state if it's within a certain age range will enable users to trigger periodic re-reads to freshen the state

To facilitate heavy usage as a read-through cache, reads under this mode should be concentrated internally via an AsyncCacheCell in order to ensure a timeout does not read to a flurry of concurrent update attempts

NOTE just letting the underlying entry in the MemoryCache expire is insufficient - we still need to have the entry be usable as base state for the read (e.g. in order to allow etag checked reads) and to be able to use it to control the single reader gating

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions