redisdb

package
v2.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisConf

func GetRedisConf(name string) (*recconf.RedisConfig, error)

func Load

func Load(config *recconf.RecommendConfig)

Types

type Redis

type Redis struct {
	Pool     *redis.Pool
	Host     string
	Port     int
	Password string
	MaxIdle  int
	DbNum    int
	// contains filtered or unexported fields
}

func GetRedis

func GetRedis(name string) (*Redis, error)

func (*Redis) Get

func (r *Redis) Get() redis.Conn

func (*Redis) Init

func (r *Redis) Init() error

Jump to

Keyboard shortcuts

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