2021-01-16 03:00:25 +03:00
|
|
|
package redis
|
|
|
|
|
|
|
|
import (
|
2023-10-20 23:51:29 +03:00
|
|
|
"github.com/redis/go-redis/v9"
|
2023-10-21 00:57:12 +03:00
|
|
|
"go.unistack.org/micro/v4/options"
|
2021-01-16 03:00:25 +03:00
|
|
|
)
|
|
|
|
|
2024-10-04 00:20:23 +03:00
|
|
|
type universalConfigKey struct{}
|
2021-01-16 03:00:25 +03:00
|
|
|
|
2024-10-04 00:20:23 +03:00
|
|
|
func UniversalConfig(c *redis.UniversalOptions) options.Option {
|
|
|
|
return options.ContextOption(universalConfigKey{}, c)
|
2021-01-16 03:00:25 +03:00
|
|
|
}
|