Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: persistent cache #8687

Merged
merged 2 commits into from
Dec 13, 2024
Merged

feat: persistent cache #8687

merged 2 commits into from
Dec 13, 2024

Conversation

jerrykingxyz
Copy link
Collaborator

@jerrykingxyz jerrykingxyz commented Dec 12, 2024

Summary

This PR will

  • Associating persistent cache components (storage, snapshot, occasion), make persistent cache usable.
  • Add the "experiments.cache" configuration on the Nodejs side. The documentation will be added in another PR.
type ExperimentCacheOptions =
	| boolean
	| {
			type: "memory";
	  }
	| {
			type: "persistent";
			buildDependencies?: string[];
			version?: string;
			snapshot?: {
				immutablePaths?: Array<string | RegExp>;
				unmanagedPaths?: Array<string | RegExp>;
				managedPaths?: Array<string | RegExp>;
			};
			storage: {
				type: "filesystem";
				directory?: string;
			};
	  };

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit a79aa58
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/675bca4469997a0008e1cf32

@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Dec 12, 2024
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Dec 12, 2024
@jerrykingxyz jerrykingxyz merged commit 2e65ed6 into main Dec 13, 2024
34 checks passed
@jerrykingxyz jerrykingxyz deleted the jerry/cache branch December 13, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants