cache

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Get(key string, project *domain.Project) (bool, error)
	Save(key string, project domain.Project) error
	Flush(project domain.Project) error
}

func NewCacheClient

func NewCacheClient(name string) (Cacher, error)

type Client

type Client string
const (
	ClientFile Client = "file"
)

type File

type File struct {
	Version   string         `json:"version"`
	Timestamp string         `json:"timestamp"`
	Checksum  string         `json:"checksum"`
	Project   domain.Project `json:"project"`
}

func (*File) Flush

func (cf *File) Flush(project domain.Project) error

func (*File) Get

func (cf *File) Get(key string, project *domain.Project) (bool, error)

func (*File) Save

func (cf *File) Save(key string, project domain.Project) error

Jump to

Keyboard shortcuts

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