Skip to content

common_auth.stores.memory

Bounded process-local storage using the shared versioned operation pipeline.

Classes

MemoryStore

Bases: BaseStore

Carries private records and per-key locks; closing clears all held values.

Tombstones count toward capacity so old revisions can never be reused. Capacity exhaustion rejects new keys; active or consumed records are never evicted. Separate instances intentionally do not share state or locks.

__init__

def __init__(config: MemoryStoreConfig | Mapping[str, object] | None = None) -> None

Fields and properties declared here; inherited members belong to the bases above.

config

config = config if isinstance(config, MemoryStoreConfig) else MemoryStoreConfig.model_validate(config or {})