Nx

Nx Cache

Nx caches task outputs locally based on a hash of inputs (source files, env vars, configuration, and dependencies). Cached tasks are replayed instantly without re-execution. Nx 22.7 introduces worktree-aware caching across git worktrees and faster cache replay (1110 tasks restored in ~1.16s). Cache can be shared with teammates and CI via Nx Cloud remote caching.

API entry from apis.yml

apis.yml Raw ↑
aid: nx-dev:nx-cache
name: Nx Cache
tags:
- Cache
- LocalCache
- Monorepo
humanURL: https://nx.dev/features/cache-task-results
properties:
- url: https://nx.dev/features/cache-task-results
  type: Documentation
- url: https://nx.dev/concepts/how-caching-works
  type: Documentation
description: Nx caches task outputs locally based on a hash of inputs (source files, env vars, configuration,
  and dependencies). Cached tasks are replayed instantly without re-execution. Nx 22.7 introduces worktree-aware
  caching across git worktrees and faster cache replay (1110 tasks restored in ~1.16s). Cache can be shared
  with teammates and CI via Nx Cloud remote caching.