cache

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrAdd

func GetOrAdd(cache Cache, name string, reader io.Reader) (io.ReadCloser, error)

Types

type Cache

type Cache interface {
	Add(string, io.Reader) error
	Get(string) (io.ReadCloser, error)
	Path(string) (string, error)
	Remove(string) error
}

func NewFsCache

func NewFsCache(path string, logger *slog.Logger) Cache

Jump to

Keyboard shortcuts

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