redis

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	RedisClient *redis.Client
}

func NewManager

func NewManager(client *redis.Client) *Manager

func (*Manager) GetProfile

func (r *Manager) GetProfile(c context.Context, aid id.AccountID) (*base.Profile, error)

func (*Manager) InsertProfile

func (r *Manager) InsertProfile(c context.Context, aid id.AccountID, p *base.Profile) error

func (*Manager) RemoveProfile

func (r *Manager) RemoveProfile(c context.Context, aid id.AccountID) error

Jump to

Keyboard shortcuts

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