Vasiliy Tolstov
617f0f7811
Some checks failed
codeql / analyze (go) (pull_request) Failing after 13s
prbuild / test (pull_request) Failing after 15s
automerge / automerge (pull_request) Failing after 15s
dependabot-automerge / automerge (pull_request) Has been skipped
autoapprove / autoapprove (pull_request) Failing after 13s
prbuild / lint (pull_request) Failing after 21s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
13 lines
251 B
Go
13 lines
251 B
Go
package redis
|
|
|
|
import (
|
|
"github.com/redis/go-redis/v9"
|
|
"go.unistack.org/micro/v4/options"
|
|
)
|
|
|
|
type universalConfigKey struct{}
|
|
|
|
func UniversalConfig(c *redis.UniversalOptions) options.Option {
|
|
return options.ContextOption(universalConfigKey{}, c)
|
|
}
|