Skip to content

Swap ResourceCache find vs create blocks #1320

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

Merged
merged 2 commits into from
Jul 11, 2025

Conversation

DanRStevens
Copy link
Collaborator

Small bit of cleanup that may make it easier to work on the ResourceCache factory function idea.

Related:

If we update how objects are created to allow for factory functions, then we should perhaps not assume an equivalent iterator will be available, or is the best way to get a reference to the new object. Maybe better to assume we can directly return a reference to the newly created object.
It makes more sense to associate the code that returns an existing cached object with the code to `find` that object. The code to create a new object can have it's own way to return a reference to the newly created resource.
@DanRStevens DanRStevens merged commit d9e5711 into main Jul 11, 2025
8 checks passed
@DanRStevens DanRStevens deleted the swapResourceCacheFindCreateBlocks branch July 11, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant