cache

package
v0.0.0-...-75cde0a Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskCache

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

DiskCache cache response into disk.

func NewDiskCache

func NewDiskCache(dir string) *DiskCache

NewDiskCache new downloader cache

func (*DiskCache) Load

func (c *DiskCache) Load(req *goscrapy.Request) (*goscrapy.Response, error)

Load load response from cache

func (*DiskCache) Store

func (c *DiskCache) Store(resp *goscrapy.Response) (err error)

Store store request

Jump to

Keyboard shortcuts

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