cache

package
v0.0.0-...-bd14a77 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//FullInfoTTL ...
	FullInfoTTL = 3 * 24 * time.Hour

	//CachePrefix ...
	CachePrefix = "cache"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheInteface

type CacheInteface interface {
	Get(ctx context.Context, key string) (interface{}, error)
	Set(ctx context.Context, key string, value interface{}) error
}

CacheInteface ...

type RedisCache

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

RedisCache ...

func NewRedisCacheRepo

func NewRedisCacheRepo() *RedisCache

NewRedisCacheRepo ...

func (*RedisCache) Get

func (r *RedisCache) Get(ctx context.Context, key string) (model interface{}, err error)

Get ...

func (*RedisCache) Set

func (r *RedisCache) Set(ctx context.Context, key string, value interface{}) error

Set ...

Jump to

Keyboard shortcuts

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