cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyEntityStatement = "entity_statement"
	KeyOPMetadata      = "op_metadata"
)

Variables

This section is empty.

Functions

func EntityStmtCacheKey

func EntityStmtCacheKey(subID, issID string) string

func Get

func Get(key string) (any, bool)

func Key

func Key(subsystem string, subkey string) string

func Set

func Set(key string, value any, duration time.Duration)

func SetCache

func SetCache(cache Cache)

Types

type Cache

type Cache interface {
	Get(key string) (any, bool)
	Set(key string, value any, expiration time.Duration)
}

Jump to

Keyboard shortcuts

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