Александр Толстихин
c8d21b4ef4
1. Replace redis.Client to redis.UniversalClient 2. Replace ClusterConfig to UniversalConfig closes #113 Co-authored-by: Aleksandr Tolstikhin <atolstikhin@mtsbank.ru> Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org> Reviewed-on: #114 Reviewed-by: Василий Толстов <v.tolstov@unistack.org> Co-authored-by: Александр Толстихин <tolstihin1996@mail.ru> Co-committed-by: Александр Толстихин <tolstihin1996@mail.ru>
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)
|
|
}
|