redis

package
v0.0.0-...-2734c1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPool

func NewPool(cfg *config.Conf) (*redis.Pool, error)

Types

type Handler

type Handler struct {
	NewPool *redis.Pool
	CFG     *config.Conf
}

func New

func New(newpool *redis.Pool, cfg *config.Conf) Handler

func (Handler) AddNewKey

func (h Handler) AddNewKey(c *gin.Context)

func (Handler) DelOneKey

func (h Handler) DelOneKey(c *gin.Context)

func (Handler) GetOneKey

func (h Handler) GetOneKey(c *gin.Context)

func (Handler) KeyExists

func (h Handler) KeyExists(k string) bool

Jump to

Keyboard shortcuts

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