redis

package
v0.0.0-...-f5948c0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 2 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 {
	Addr        string
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
	Index       int
}

func (*Config) Build

func (conf *Config) Build() *redis.Client

type Redis

type Redis struct {
	*redis.Client
	Conf Config
}

func (*Redis) Close

func (db *Redis) Close() error

func (*Redis) Config

func (db *Redis) Config() any

func (*Redis) SetEntity

func (db *Redis) SetEntity()

Jump to

Keyboard shortcuts

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