kataras / kataras/iris

[FEATURE REQUEST] redis sentinel support

Open
#2,256 0 comments 0 reactions 1 assignee Claimed by @kataras View on GitHub
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the solution you'd like**
not sure how to use sentinel with go-redis in iris.

[connect function](https://github.com/kataras/iris/blob/main/sessions/sessiondb/redis/driver_goredis.go#L125) seems only to support cluster and standalone redis:
```
// Connect initializes the redis client.
func (r *GoRedisDriver) Connect(c Config) error {
if r.Client != nil { // if a custom one was given through SetClient.
return nil
}

if len(c.Clusters) > 0 {
r.Client = redis.NewClusterClient(r.mergeClusterOptions(c))
} else {
r.Client = redis.NewClient(r.mergeClientOptions(c))
}

return nil
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.