Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
whosonfirstPublic archive

About

There are many caching interfaces. This one is ours.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

go-whosonfirst-cache

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

Important

This package has been officially deprecated. Please use the go-cache package instead.

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

About

There are many caching interfaces. This one is ours.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址