cache

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKey added in v0.4.0

func CreateKey(platformKey string, lockFileHash string, precacheCommand string) (string, error)

func NewMinioCache

func NewMinioCache(endpoint string, accessKeyID string, secretAccessKey string, bucket string, useTLS bool, insecureTLS bool) *minioCache

NewMinioCache creates a new Minio Cache

Types

type Cacher

type Cacher interface {
	Has(key string) (bool, error)
	Put(key string, reader io.Reader) error
	Get(key string) (io.Reader, error)
	String() string
}

Cacher represents a cache

func NewLocalCache

func NewLocalCache(dir string) (Cacher, error)

NewLocalCache creates a Cacher, which stores data locally in a directory

Jump to

Keyboard shortcuts

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