caching

package
v0.0.0-...-24ff1af Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 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 CacheClient

type CacheClient struct {
	Storage    *redis.Client
	Expiration time.Duration
}

func NewClient

func NewClient(addr string, passwd string, expiration time.Duration, db int) *CacheClient

func (*CacheClient) Get

func (client *CacheClient) Get(key string) ([]cardsinfo.ScgCardPrice, error)

func (*CacheClient) Set

func (client *CacheClient) Set(key string, prices []cardsinfo.ScgCardPrice)

Jump to

Keyboard shortcuts

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