cache

package
v0.0.0-...-1a191da Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conv

func Conv(file string) error

func NewDiskCache

func NewDiskCache(path string) (diskCache, error)

Types

type Cache

type Cache interface {
	Get(headers http.Header, key string) ([]byte, http.Header, error)
	Set(key string, value []byte) error
	Prune(n uint) (uint, error)
	Peek(key string) (bool, error)
}

Jump to

Keyboard shortcuts

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