redis

package
v0.0.0-...-4f48353 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSession

func GetSession(cookie string) (bool, error)

func InitRedis

func InitRedis(cfg *Conf) (*redis.Client, error)

func ResetSession

func ResetSession(cookie string) error

Types

type Conf

type Conf struct {
	Address  string `mapstructure:"addr"`
	Password string `mapstructure:"password"`
	PoolSize int    `mapstructure:"300"`
}

Jump to

Keyboard shortcuts

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