Change the Remote Cache Storage Location
The recommended way to enable the remote cache is to use Nx Replay and have Nx Cloud share the task cache across your organization. For those organizations that are unable to use Nx Cloud, Nx offers official plugins that are enabled by Nx Powerpack to customize your remote cache location in a fast and secure manner.
In Nx 20, the local cache mechanism is getting faster and more secure by storing the cached metadata and project graph in a database instead of directly on the file system. The new cache is faster because it limits the fundamentally slow speed of interacting with the file system. The new cache is more secure because it reduces the amount of information that other processes with file system access could read or modify in the local cache directory. The @nx/powerpack-s3-cache
and @nx/powerpack-shared-fs-cache
plugins enable you to leverage that speed and security with a custom remote cache storage location.
If you have a custom coded method for changing the remote cache location that uses tasksRunnerOptions
, you'll need to choose a migration path. Those properties are deprecated in Nx 20 and will be removed in Nx 21.
Custom Remote Cache Storage Plugins Require Nx Powerpack
The @nx/powerpack-s3-cache
and @nx/powerpack-shared-fs-cache
plugins require an Nx Powerpack license to function. Activating Powerpack is a simple process.
Buy a Powerpack LicenseUnlock all the features of the Nx CLI
Choose Your Storage Solution
Read the individual plugin documentation for specific set up instructions.
Switch to Nx Cloud
These custom remote cache storage solutions only provide the remote cache functionality of Nx Cloud. If you want to leverage distributed task execution, re-running flaky tasks or automatically splitting tasks, you'll need to connect to Nx Cloud and use Nx Cloud's remote cache solution instead.
Connect to Nx CloudEnable task distribution and Atomizer