cache

package
v0.0.0-...-40aff7f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileNotFound = errors.New("file not found")
)

Functions

func New

func New() *memory

Types

type CreateFunc

type CreateFunc cache.CreateFunc

type Store

type Store interface {
	Clear()
	Entries() int
	Put(path string, file fs.File) error
	Rename(oldPath, newPath string) (file fs.File, found bool)
	Get(path string, create CreateFunc) (file fs.File, err error)
}

Jump to

Keyboard shortcuts

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