cache

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemStore

func NewMemStore() *hashmap.Map[string, []byte]

Types

type Module

type Module struct {
	Cache string `json:"cache"`
	// contains filtered or unexported fields
}

func (*Module) AdaptTransport

func (m *Module) AdaptTransport(t http.RoundTripper) http.RoundTripper

func (*Module) Finalize

func (m *Module) Finalize()

func (Module) ModuleInfo

func (Module) ModuleInfo() flyscrape.ModuleInfo

func (*Module) Provision

func (m *Module) Provision(ctx flyscrape.Context)

type SQLiteStore

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

func NewSQLiteStore

func NewSQLiteStore(file string) *SQLiteStore

func (*SQLiteStore) Close

func (s *SQLiteStore) Close()

func (*SQLiteStore) Get

func (s *SQLiteStore) Get(key string) ([]byte, bool)

func (*SQLiteStore) Set

func (s *SQLiteStore) Set(key string, value []byte)

type Store

type Store interface {
	Get(key string) ([]byte, bool)
	Set(key string, value []byte)
}

Jump to

Keyboard shortcuts

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