cache

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cache provides functions that are used to interact with local cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(extraction *common.Extraction, cache *sync.Map) ([]common.Sample, error)

Check checks if files present in a given extraction are already in the local cache.

func Load

func Load(repoName, cacheDir string) (*sync.Map, error)

Load reads cache entries from a file stored locally. If the file is not present, the cache is created in memory.

func Save

func Save(repoName, cacheDir string, cacheMap *sync.Map) error

Save saves the cache to a local file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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