leveldbcache

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDBCache

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

LevelDBCache is a cache that uses LevelDB as a backend.

func NewLevelDBCache

func NewLevelDBCache(path string) (*LevelDBCache, error)

NewLevelDBCache creates a new LevelDBCache.

func (*LevelDBCache) Close

func (c *LevelDBCache) Close() error

Close closes the LevelDBCache.

func (*LevelDBCache) Get

Get gets a value from the cache.

func (*LevelDBCache) Set

func (c *LevelDBCache) Set(_ 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