redis

package
v0.0.0-...-ad31fdb Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, addr string, poolSize int) (*Redis, error)

func (*Redis) FindSkinByUserId

func (db *Redis) FindSkinByUserId(id int) (*model.Skin, error)

func (*Redis) FindSkinByUsername

func (db *Redis) FindSkinByUsername(username string) (*model.Skin, error)

func (*Redis) GetUuid

func (db *Redis) GetUuid(username string) (string, bool, error)

func (*Redis) Ping

func (db *Redis) Ping() error

func (*Redis) RemoveSkinByUserId

func (db *Redis) RemoveSkinByUserId(id int) error

func (*Redis) RemoveSkinByUsername

func (db *Redis) RemoveSkinByUsername(username string) error

func (*Redis) SaveSkin

func (db *Redis) SaveSkin(skin *model.Skin) error

func (*Redis) StoreUuid

func (db *Redis) StoreUuid(username string, uuid string) error

Jump to

Keyboard shortcuts

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