cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HitCacheDir added in v0.2.0

func HitCacheDir() (string, error)

Types

type Cache added in v0.2.0

type Cache interface {
	Get(key string) (interface{}, error)
	Save(req parser.Request, resp *http.Response) error
	Flush() error
}

type DiskCache added in v0.2.0

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

func Get added in v0.2.0

func Get() *DiskCache

func (*DiskCache) Flush added in v0.2.0

func (c *DiskCache) Flush() error

func (*DiskCache) Get added in v0.2.0

func (c *DiskCache) Get(key string) (interface{}, error)

func (*DiskCache) Save added in v0.2.0

func (c *DiskCache) Save(req parser.Request, resp *http.Response) error

Jump to

Keyboard shortcuts

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