redis

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	kv.Provider `yaml:",inline" export:"true"`

	TLS      *types.ClientTLS `description:"Enable TLS support." json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" export:"true"`
	Username string           `` /* 137-byte string literal not displayed */
	Password string           `` /* 137-byte string literal not displayed */
	DB       int              `` /* 129-byte string literal not displayed */
	Sentinel *Sentinel        `description:"Enable Sentinel support." json:"sentinel,omitempty" toml:"sentinel,omitempty" yaml:"sentinel,omitempty"`
}

Provider holds configurations of the provider.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider.

func (*Provider) SetDefaults

func (p *Provider) SetDefaults()

SetDefaults sets the default values.

type Sentinel

type Sentinel struct {
	MasterName string `` /* 131-byte string literal not displayed */
	Username   string `` /* 143-byte string literal not displayed */
	Password   string `` /* 143-byte string literal not displayed */

	LatencyStrategy bool `` /* 261-byte string literal not displayed */
	RandomStrategy  bool `` /* 256-byte string literal not displayed */
	ReplicaStrategy bool `` /* 243-byte string literal not displayed */

	UseDisconnectedReplicas bool `` /* 224-byte string literal not displayed */
}

Sentinel holds the Redis Sentinel configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL