filecache

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileCache

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

FileCache is a file cache

func NewFileCache

func NewFileCache(folder string) (*FileCache, error)

NewFileCache creates a new file cache

func (*FileCache) Close

func (c *FileCache) Close() error

Close closes the file cache

func (*FileCache) Get

func (c *FileCache) Get(ctx context.Context, key string) (scrapemate.Response, error)

Get gets a value from the cache

func (*FileCache) Set

func (c *FileCache) Set(ctx context.Context, key string, value scrapemate.Response) error

Set sets a value to the cache

Jump to

Keyboard shortcuts

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