bootstrap-nebulex
Installation
SKILL.md
Bootstrap Nebulex Cache
Add Nebulex application caching to a Phoenix 1.8 app with a local (single-node) in-memory adapter, sensible GC/memory defaults, a helper module with common cache patterns, and test configuration.
What Gets Created/Configured
- mix.exs —
{:nebulex, "~> 2.6"}dependency - lib//cache.ex — Cache module using
Nebulex.Adapters.Local - lib//cache_helpers.ex — Convenience functions (get-or-store, bulk invalidation, key namespacing)
- lib//application.ex — Cache added to supervision tree
- config/config.exs — GC interval, max size, allocated memory defaults
- config/test.exs — Shorter GC interval for tests
- test/support/cache_case.ex — (Optional) ExUnit case template that flushes cache between tests
- test//cache_test.exs — Basic smoke tests