cache

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache[T any] interface {
	Update(key string, value T) error
	Read(key string) ([]T, error)
	Stop() error
}

func New

func New[T any](ct CacheType, origin string, l logger.Logger) (Cache[T], error)

type CacheType

type CacheType int8
const (
	MemoryCacheType CacheType = iota
	BadgerCacheType
)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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