cache

package
v0.0.0-...-727416a Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.NewWithCode("not implemented", 501)

Functions

func Get

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

func Set

func Set(ctx context.Context, key string, value string) error

func SetGlobal

func SetGlobal(cache ICache)

Types

type ICache

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

ICache is an interface that defines cache operations

func Global

func Global() ICache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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