Quick start
CacheCore is library-first. The shortest useful path is to run the example, and then optionally boot the admin API if you want the operational surface too.
Prerequisites
Section titled “Prerequisites”- Node
24.x - pnpm
10.33.x - Redis if you want the official adapter path
Local bootstrap
Section titled “Local bootstrap”cp .env.example .envdocker compose up -d redispnpm installpnpm dev:admin-apiLocal surfaces:
- Admin API:
http://localhost:3040 - Redis:
localhost:6379
First useful checks
Section titled “First useful checks”curl http://127.0.0.1:3040/healthcurl http://127.0.0.1:3040/readycurl http://127.0.0.1:3040/metricsFirst embedded flow
Section titled “First embedded flow”pnpm example:http-cacheThe example:
- warms a cache entry
- serves a stale read once
- refreshes in the background
- invalidates by tag
- prints cache metrics
What you should understand after 5 minutes
Section titled “What you should understand after 5 minutes”- CacheCore is primarily meant to be embedded in another backend
- namespacing and tags are part of the product contract, not incidental details
- stale-while-revalidate is explicit and observable
- the admin API is an optional operational companion, not the center of the architecture