cache

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

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

func NewCacher

func NewCacher(cacheSize int) Cacher

func (Cacher) Del

func (c Cacher) Del(key string) bool

func (Cacher) Get

func (c Cacher) Get(key string) (*types.URL, error)

func (Cacher) Store added in v0.1.5

func (c Cacher) Store(u *types.URL)

Jump to

Keyboard shortcuts

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