redis

package
v0.0.0-...-2c8e3b4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Rdb

type Rdb struct {
	*redis.Client
}

func NewClient

func NewClient(c *config.RedisConfig) *Rdb

func (*Rdb) DelBotData

func (rdb *Rdb) DelBotData(botId int64)

func (*Rdb) DelComponent

func (rdb *Rdb) DelComponent(botId int64, compId int64) error

func (*Rdb) SetComponent

func (rdb *Rdb) SetComponent(botId int64, comp *model.Component) error

Jump to

Keyboard shortcuts

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