Skip to content

Conversation

@TrayserCassa
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds the ability to override Redis cache configuration using a DSN (Data Source Name) field instead of specifying individual connection parameters (host, port, index). This provides more flexibility for users who have pre-configured Redis DSN strings.

Key Changes:

  • Added RedisDsn field to RedisSpec struct for specifying Redis connection as a complete DSN string
  • Updated cache configuration logic to prioritize DSN when provided, falling back to individual fields otherwise
  • Applied DSN support consistently across AppCache, SessionCache, and Worker configurations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.

File Description
api/v1/store.go Adds RedisDsn field to RedisSpec struct to support DSN-based Redis configuration
api/v1/store_env.go Updates getAppCache(), getSessionCache(), and getWorker() to use DSN when provided, otherwise build from individual fields

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@renaudhager renaudhager left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants