smart_redis

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RedisType    string   //cluster,alone,sentinel
	StartAddr    []string // Startup nodes
	Active       int
	Idle         int
	Auth         string
	ConnTimeout  time.Duration // Connection timeout
	ReadTimeout  time.Duration // Read timeout
	WriteTimeout time.Duration // Write timeout
	IdleTimeout  time.Duration
}

type SmartRedis

type SmartRedis struct {
	RedisType string
	Client    *redigo.Client
}

func NewSmartRedis

func NewSmartRedis(conf *Config) (*SmartRedis, error)

Jump to

Keyboard shortcuts

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