Skip to content

fix: adapt RedisCacheService to StackExchange.Redis 2.13 Expiration API - #210

Merged
chi-trung merged 1 commit into
mainfrom
fix/redis-expiration-api
Sep 5, 2026
Merged

fix: adapt RedisCacheService to StackExchange.Redis 2.13 Expiration API#210
chi-trung merged 1 commit into
mainfrom
fix/redis-expiration-api

Conversation

@chi-trung

Copy link
Copy Markdown
Owner

Description

Prepares the codebase for the StackExchange.Redis 2.8.16 -> 2.13.17 bump in #209, which currently breaks the backend build (CS1503: StringSetAsync now takes StackExchange.Redis.Expiration instead of TimeSpan?).

What's inside

  • RedisCacheService.SetAsync (both overloads): pass Expiration - implicit conversion from TimeSpan when a TTL is given, Expiration.Default otherwise (preserves the old no-TTL behavior).

Verification

  • Full solution build clean on Redis 2.13.17 (0 errors, 0 warnings)
  • 436/436 unit tests pass

🤖 Generated with Claude Code

fix: adapt RedisCacheService to StackExchange.Redis 2.13 Expiration API
StringSetAsync no longer takes TimeSpan? — pass Expiration (implicit
from TimeSpan, Expiration.Default when no TTL). Prepares for dependabot
PR #209; local solution build + 436 unit tests pass on 2.13.17.
Co-Authored-By: Claude Code <noreply@anthropic.com>
@
CopilotAI lite review requested due to automatic review settings September 5, 2026 06:19
@vercel

vercelBot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated
devflow-platformReadyReadyPreviewSep 5, 2026 6:19am UTC

@coderabbitai

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 3b7eeb1f-e5b2-47bc-93e9-20e5163917f1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is narrowly scoped to the known breaking API surface and the updated calls preserve prior expiration semantics.

Pull request overview

Updates DevFlow’s infrastructure caching layer to stay compatible with the StackExchange.Redis 2.13.x API change around key expiration, unblocking the dependency bump referenced in #209.

Changes:

  • Bump StackExchange.Redis NuGet package from 2.8.16 to 2.13.17.
  • Update RedisCacheService.SetAsync overloads to pass StackExchange.Redis.Expiration (using Expiration.Default when no TTL is provided).
File summaries
FileDescription
src/DevFlow.Infrastructure/DevFlow.Infrastructure.csprojUpdates StackExchange.Redis dependency to 2.13.17.
src/DevFlow.Infrastructure/Caching/RedisCacheService.csMigrates StringSetAsync calls from TimeSpan? to Expiration while preserving no-TTL behavior.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chi-trung
chi-trung merged commit ec7a2ac into mainSep 5, 2026
6 checks passed
@chi-trung
chi-trung deleted the fix/redis-expiration-api branch September 5, 2026 06:22
Sign up for freeto 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

@chi-trung