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

Remove fallback options from cache states #372

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Remove fallback options from cache states #372

merged 3 commits into from
Sep 19, 2024

Conversation

whitfin
Copy link
Owner

@whitfin whitfin commented Sep 18, 2024

This fixes #371.

This will remove :fallback from the cache state, as well as the ability to add state to fallback functions. This simplifies handling, removes error checking in favour of guards, and makes the cache state smaller to copy.

If people require that :state be added back in future, this is not off the table and has been documented as such. I am fairly confident that it will not be required due to it being kinda anti-OTP (most people will have separate processes for their state, so they can just use the :name).

@whitfin whitfin added this to the v4.0.0 milestone Sep 18, 2024
@whitfin whitfin self-assigned this Sep 18, 2024
@whitfin whitfin merged commit e244408 into main Sep 19, 2024
16 checks passed
@whitfin whitfin deleted the issue-371 branch September 19, 2024 01:23
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.

Remove fallbacks from a cache state
1 participant