vcache

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 2 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 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