# Cache Contract

> A technique for declaring what a cache entry is keyed by, how long it lives and what invalidates it.

Record: `lexicon:cache-contract`
Kind: technique
Layer: [Performance Core](https://banes-lab.com/records/layer/performance-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-cache-contract

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Warm-Up Latency](https://banes-lab.com/records/lexicon/warm-up-latency.md) and before [Context-Keyed Cache](https://banes-lab.com/records/lexicon/context-keyed-cache.md).

## Category

- [Scalability / Performance / Optimization](https://banes-lab.com/records/lexicon-category/scalability-performance-optimization.md)

## Refactors

- [Cache Poisoning by Design](https://banes-lab.com/records/architecture/cache-poisoning-by-design.md)

## Linked from

- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
