Versions in this module Expand all Collapse all v0 v0.6.1 Apr 29, 2026 v0.6.0 Apr 29, 2026 v0.5.4 Apr 25, 2026 v0.5.3 Apr 20, 2026 Changes in this version + type Binding struct + Profile string + func NewBinding(profile string) Binding + type Config struct + Addrs []string + Database int + DialTimeout int + EnableCluster bool + Host string + MaxActive int + MaxIdle int + MinIdleConns int + Password string + PoolTimeout int + Port int + ReadTimeout int + SSLInsecureSkipVerify bool + Timeout int + UseSSL bool + Username string + WriteTimeout int + func CloneConfig(cfg *Config) *Config + func MergeConfig(base, override *Config) *Config + type Handle struct + func NewHandle(profile string, config *Config) *Handle + func (h *Handle) Client() goredis.UniversalClient + func (h *Handle) Close() error + func (h *Handle) Config() *Config + func (h *Handle) Connect() error + func (h *Handle) HealthCheck(ctx context.Context) error + func (h *Handle) Profile() string + type Option func(*Registry) + func WithFallbackOnMissing(enabled bool) Option + func WithProfileObserver(observer observability.ProfileObserver) Option + type ProfileState string + const ProfileStateAvailable + const ProfileStateMissing + const ProfileStateUnavailable + type ProfileStatus struct + Err error + Name string + NextRetryAt time.Time + State ProfileState + type RedisProfile struct + Config Config + Name string + Status ProfileStatus + type Registry struct + func New(defaultConfig *Config, profiles map[string]*Config, opts ...Option) *Registry + func (r *Registry) Bind(name string) (*Handle, error) + func (r *Registry) ByProfile(name string) (*Handle, error) + func (r *Registry) Client(name string) (goredis.UniversalClient, error) + func (r *Registry) Close() error + func (r *Registry) Connect() error + func (r *Registry) Default() (*Handle, error) + func (r *Registry) HasConnections() bool + func (r *Registry) HealthCheck(ctx context.Context) error + func (r *Registry) Profiles() []RedisProfile + func (r *Registry) Status(name string) ProfileStatus + func (r *Registry) Statuses() map[string]ProfileStatus + type Runtime interface + Bind func(name string) (*Handle, error) + ByProfile func(name string) (*Handle, error) + Client func(name string) (goredis.UniversalClient, error) + Close func() error + Connect func() error + Default func() (*Handle, error) + HasConnections func() bool + HealthCheck func(ctx context.Context) error + Profiles func() []RedisProfile + Status func(name string) ProfileStatus + Statuses func() map[string]ProfileStatus