gredisconf

package
v0.0.0-...-92b010d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClusterConfig

type RedisClusterConfig struct {
	Addrs              []string
	Username           string
	Password           string
	MinIdleConns       int
	PoolSize           int
	MaxRetries         int
	ReadTimeoutSecond  int
	WriteTimeoutSecond int
	ConnMaxLifeSecond  int
	ConnMaxIdleSecond  int
	TLS                bool
}

func (*RedisClusterConfig) ConvertToGRedisClusterOpts

func (c *RedisClusterConfig) ConvertToGRedisClusterOpts() *redis.ClusterOptions

type RedisConfig

type RedisConfig struct {
	Addr               string
	Username           string
	Password           string
	MinIdleConns       int
	PoolSize           int
	MaxRetries         int
	ReadTimeoutSecond  int
	WriteTimeoutSecond int
	ConnMaxLifeSecond  int
	ConnMaxIdleSecond  int
	DB                 int
	TLS                bool
}

func (*RedisConfig) ConvertToGRedisOpts

func (c *RedisConfig) ConvertToGRedisOpts() *redis.Options

Jump to

Keyboard shortcuts

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