redis

package
v0.0.0-...-768fa91 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRedisClients

func AppendRedisClients(config *RedisClientConfig)

func CloseRedisClients

func CloseRedisClients() error

func GetRedisClient

func GetRedisClient() *redis.Client

func InitRedisClient

func InitRedisClient(c *RedisClientConfig)

Types

type RedisClientConfig

type RedisClientConfig struct {
	Address            string `json:"address"`
	Password           string `json:"password"`
	DB                 int    `json:"db"`
	DialTimeout        int    `json:"dial_timeout"`
	ReadTimeout        int    `json:"read_timeout"`
	WriteTimeout       int    `json:"write_timeout"`
	IdleTimeout        int    `json:"idle_timeout"`
	PoolTimeout        int    `json:"pool_timeout"`
	MaxConnAge         int    `json:"max_conn_age"`
	MaxRetry           int    `json:"max_retry"`
	PoolSize           int    `json:"pool_size"`
	MinIdleConns       int    `json:"min_idle_conns"`
	IdleCheckFrequency int    `json:"idle_check_frequency"`
	MaxRetryBackoff    int    `json:"max_retry_backoff"`
}

Jump to

Keyboard shortcuts

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