cachex-caching

Installation
SKILL.md

Cachex Caching

RULES — Follow these with no exceptions

  1. Set TTL on every cached entry — never cache indefinitely unless data is truly immutable
  2. Use Cachex.fetch/3 for get-or-set — never check-then-set (race condition risk)
  3. Invalidate on writes — call Cachex.del/2 after any data mutation
  4. Enable stats: true — without stats you cannot measure cache effectiveness
  5. Use cache warmers for startup — pre-populate expensive data when application starts
  6. Handle cache failures gracefully — fall back to database on cache errors

End-to-End Workflow

Follow this sequence when adding caching to a feature:

Installs
2
First Seen
2 days ago
cachex-caching — igmarin/elixir-phoenix-skills