Categorygithub.com/whosonfirst/go-whosonfirst-cache
repositorypackage
0.1.0
Repository: https://github.com/whosonfirst/go-whosonfirst-cache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

go-whosonfirst-cache

Go package for reading and writing Who's On First documents from a variety of sources.

Install

You will need to have both Go (specifically version 1.12 or higher) and the make programs installed on your computer. Assuming you do just type:

make tools

All of this package's dependencies are bundled with the code in the vendor directory.

Interfaces

type Cache interface {
     	Name() string
	Get(string) (io.ReadCloser, error)
	Set(string, io.ReadCloser) (io.ReadCloser, error)
	Unset(string) error
	Hits() int64
	Misses() int64
	Evictions() int64
	Size() int64
}

See also