vcache

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(cache Cache, fsys fs.FS, log log.Interface) fs.FS

Types

type Cache

type Cache interface {
	Has(path string) (ok bool)
	Get(path string) (entry virtual.Entry, ok bool)
	Set(path string, entry virtual.Entry)
	Delete(path string)
	Range(fn func(path string, entry virtual.Entry) bool)
	Clear()
}
var Discard Cache = discard{}

func New

func New() Cache

Jump to

Keyboard shortcuts

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