litestar-stores
Installation
SKILL.md
Stores
Use this skill when the problem is Litestar's interchangeable key-value store layer, not relational data modeling.
Execution Workflow
- Decide whether the feature really belongs in a Litestar store: cache, session, rate limit, or other ephemeral/shared key-value state.
- Choose the backend based on process model, durability, latency, and cleanup needs.
- Decide whether stores should be wired explicitly by name, created lazily through
StoreRegistry, or derived from a namespaced default factory. - Define key naming, namespacing boundaries, TTL policy, and any renewal-on-read behavior.
- Wire integrations such as response caching, sessions, or rate limiting to named stores intentionally.
- Plan cleanup and shutdown behavior, especially for
FileStoreexpiry cleanup and Redis client ownership. - Verify expiry, isolation, and multi-worker behavior before relying on the store in production.