mapcache

package
v0.0.4-0...-6021268 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CacheVersion = 1

CacheVersion is incremented when the structure of the cache changes such that it is no longer compatible.

Variables

View Source
var (
	// ErrCacheMiss is an error when a valid cache is not found
	ErrCacheMiss = errors.New("cache miss")
)

Functions

This section is empty.

Types

type MapCache

type MapCache struct {
	// contains filtered or unexported fields
}

func New

func New(sqlfile *os.File) *MapCache

func (*MapCache) Get

func (m *MapCache) Get() (sqlread.SummaryTree, error)

func (*MapCache) Store

func (m *MapCache) Store(s sqlread.SummaryTree) error

Jump to

Keyboard shortcuts

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