Skip to content

Enhance cache backend with Redis error handling and memory fallback

17ecd8c
Select commit
Loading
Failed to load commit list.
Merged

Fix bugs and optimize code #10

Enhance cache backend with Redis error handling and memory fallback
17ecd8c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jul 11, 2025 in 1s

84.61% of diff hit (target 80.00%)

View this Pull Request on Codecov

84.61% of diff hit (target 80.00%)

Annotations

Check warning on line 50 in src/backends/index.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/backends/index.ts#L49-L50

Added lines #L49 - L50 were not covered by tests

Check warning on line 56 in src/backends/index.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/backends/index.ts#L54-L56

Added lines #L54 - L56 were not covered by tests

Check warning on line 73 in src/backends/index.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/backends/index.ts#L73

Added line #L73 was not covered by tests

Check warning on line 85 in src/backends/index.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/backends/index.ts#L84-L85

Added lines #L84 - L85 were not covered by tests

Check warning on line 36 in src/backends/redis.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/backends/redis.ts#L36

Added line #L36 was not covered by tests

Check warning on line 90 in src/cache/createCacheHandler.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/cache/createCacheHandler.ts#L88-L90

Added lines #L88 - L90 were not covered by tests

Check warning on line 253 in src/cache/createCacheHandler.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/cache/createCacheHandler.ts#L247-L253

Added lines #L247 - L253 were not covered by tests

Check warning on line 42 in src/cache/fetchWithCache.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/cache/fetchWithCache.ts#L38-L42

Added lines #L38 - L42 were not covered by tests