keyvaluedatabase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertCache = &sync.Map{}

Functions

func NewKeyValueDBConnection

func NewKeyValueDBConnection() error

Types

type KeyValueDBConfig

type KeyValueDBConfig struct {
	Address         string
	Password        string
	ConnMaxIdleTime time.Duration
	PoolFIFO        bool
	PoolSize        int
	MinIdleConns    int
	MaxIdleConns    int
	DB              int
	ReplicaAddress  string
	PeerId          string
}

type KeyValueDBConnection

type KeyValueDBConnection struct {
	Client        *redis.Client
	ReplicaClient *redis.Client
	PeerId        string
}

func GetKeyValueDBConnection

func GetKeyValueDBConnection() (*KeyValueDBConnection, error)

Jump to

Keyboard shortcuts

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