Skip to content

Class level cache#271

Merged
phoet merged 2 commits intomicke:mainfrom
weg-li:class_level_cache
Feb 12, 2025
Merged

Class level cache#271
phoet merged 2 commits intomicke:mainfrom
weg-li:class_level_cache

Conversation

@phoet
Copy link
Collaborator

@phoet phoet commented Feb 12, 2025

as mentioned here #256 (comment) by @natematykiewicz it seems like the cache not actually doing anything right now.

i've pulled out the DNS handling and moved caching to a class-level, so this should be fixed.

i have kept most of the caching specs in place so it's easy to follow the changes. they are quite verbose and repetitive. i think they should be refactored in another step.

@phoet phoet requested a review from micke February 12, 2025 19:47
Copy link
Owner

@micke micke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, caching sure is hard when you don't persist the cache! 😂
You've got some failing specs but once those are fixed this looks good to go!

@phoet phoet force-pushed the class_level_cache branch 10 times, most recently from 243e32f to bf40e93 Compare February 12, 2025 21:40
@phoet phoet force-pushed the class_level_cache branch from bf40e93 to 9347e3e Compare February 12, 2025 21:43
@phoet
Copy link
Collaborator Author

phoet commented Feb 12, 2025

@micke yeah well that took some back and forth to get it fixed in the matrix tests. good that it's already lined up, it would have blown up in older ruby versions.

@phoet phoet merged commit 41e9d59 into micke:main Feb 12, 2025
8 checks passed
phoet added a commit that referenced this pull request Feb 13, 2025
* use debug gem for proper stepping and such

* pull out dns and use a class level cache
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.

2 participants