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

Add Cachex.warm/2 to allow manual cache warming #330

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Add Cachex.warm/2 to allow manual cache warming #330

merged 2 commits into from
Mar 19, 2024

Conversation

whitfin
Copy link
Owner

@whitfin whitfin commented Mar 19, 2024

This fixes #299.

This PR will add a new Cachex.warm/2 which performs a lookup on Cachex.Incubator to locate all child warmers and notify them to warm immediately. You can optionally provide the :modules option to restrict to a specific set of cache warmers. The list of modules which actually had warming triggered is returned.

@whitfin whitfin added this to the v3.7.0 milestone Mar 19, 2024
@whitfin whitfin self-assigned this Mar 19, 2024
@whitfin whitfin merged commit 5b108ab into main Mar 19, 2024
15 checks passed
@whitfin whitfin deleted the issue-299 branch March 19, 2024 21:57
@whitfin whitfin modified the milestones: v3.7.0, v4.0.0 Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manually trigger cache warmers
1 participant