cache

package
v0.0.0-...-967a65d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Client *redis.Client
}

func NewCache

func NewCache(ctx context.Context, addr, passwd string) (*Cache, error)

func (*Cache) DeleteCache

func (c *Cache) DeleteCache(ctx context.Context, key string) error

func (*Cache) GetCache

func (c *Cache) GetCache(ctx context.Context, key string) ([]*models.User, error)

func (*Cache) SetCache

func (c *Cache) SetCache(ctx context.Context, key string, users []*models.User) error

Jump to

Keyboard shortcuts

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