cache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableCaching

func EnableCaching(validatiy time.Duration, resetCache bool)

func Flush

func Flush() error

func Get

func Get(context string, key string) []string

func Get0

func Get0(context string, key string) string

func Put

func Put(context string, key string, values []string)

func Put0

func Put0(context string, key string, value string)

Types

type Provider

type Provider interface {
	Get(key string) []string
	Put(key string, values []string, validity time.Duration)
	Flush() error
}

Jump to

Keyboard shortcuts

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