Skip to content

Fix bugs and optimize code#10

Merged
suranig merged 1 commit intomasterfrom
cursor/fix-bugs-and-optimize-code-0c38
Jul 11, 2025
Merged

Fix bugs and optimize code#10
suranig merged 1 commit intomasterfrom
cursor/fix-bugs-and-optimize-code-0c38

Conversation

@suranig
Copy link
Copy Markdown
Owner

@suranig suranig commented Jul 11, 2025

Enhance caching system with robust Redis error handling, performance optimizations (L1 cache, Redis fast paths), and improved testability.

This PR addresses several issues including unhandled Redis connection errors, inefficient polling, and potential memory leaks. It introduces performance optimizations like an L1 cache and fast paths for Redis serialization, alongside a memory backend for more reliable testing, and fixes various test failures caused by these changes.

Co-authored-by: pawpilichowski <pawpilichowski@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 11, 2025

Codecov Report

Attention: Patch coverage is 84.61538% with 24 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cache/createCacheHandler.ts 69.69% 10 Missing ⚠️
src/backends/index.ts 78.94% 8 Missing ⚠️
src/cache/fetchWithCache.ts 64.28% 5 Missing ⚠️
src/backends/redis.ts 95.23% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@suranig suranig merged commit 8431e76 into master Jul 11, 2025
3 of 4 checks passed
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