Context
First consumer of the API cache (depends on the cache infrastructure, VariantEffect/mavedb-deployment#32). This issue delivers the reusable API-side cache module and applies it to the scores/counts CSV hot path so repeat public requests hit cache instead of rebuilding from the DB.
Part of the effort to make /scores & /counts safe to reopen to AI agents.
Scope — reusable cache module
Scope — cache public CSV responses
Acceptance criteria
Dependencies
Context
First consumer of the API cache (depends on the cache infrastructure, VariantEffect/mavedb-deployment#32). This issue delivers the reusable API-side cache module and applies it to the scores/counts CSV hot path so repeat public requests hit cache instead of rebuilding from the DB.
Part of the effort to make
/scores&/countssafe to reopen to AI agents.Scope — reusable cache module
Scope — cache public CSV responses
(urn, namespaces, start, limit, drop_na_columns, include_custom_columns, include_post_mapped_hgvs).assert_permissionper request — never cache or serve private data.Acceptance criteria
Dependencies