cache

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReadOnlyCache

func NewReadOnlyCache() (*readOnlyCache, error)

func NewReadWriteCache

func NewReadWriteCache() (*readWriteCache, error)

Types

type Cache

type Cache interface {
	Index() (int64, error)
	Get(path []byte) (string, []byte)
}

type CachedInstance

type CachedInstance struct {
	RelativePath string
	AbsolutePath string
	Data         []byte
	ContentType  string
	LoadTime     time.Time
}

type IndexFunc

type IndexFunc = func(absolutePath string, cleanedPath string) int64

Jump to

Keyboard shortcuts

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