cache

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheMiss = errors.New("cache: key is missing")
)

Functions

func UnifiedKey

func UnifiedKey(key string) string

Types

type Cache

type Cache interface {
	Get(context.Context, string, interface{}) error
	Set(context.Context, string, interface{}, time.Duration) error
	Clear(context.Context, string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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