cache

package
v0.0.0-...-d43d553 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 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 ICache

type ICache struct {
	Client *redis.Client
}

func NewClient

func NewClient(conf config.Configs) *ICache

func (*ICache) Get

func (c *ICache) Get(ctx context.Context, key string) (string, error)

func (*ICache) Keys

func (c *ICache) Keys(ctx context.Context, pattern string) ([]string, error)

func (*ICache) Set

func (c *ICache) Set(ctx context.Context, key string, value interface{}, ttl int) error

Jump to

Keyboard shortcuts

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