Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Store map[string]string
	// contains filtered or unexported fields
}

Cache represents the cache

func New

func New(path string) (*Cache, error)

New creates a new cache

func (*Cache) Get

func (c *Cache) Get(path string) string

Get returns the hash for the given path

func (*Cache) Load

func (c *Cache) Load() error

Load loads the cache from disk

func (*Cache) Save

func (c *Cache) Save() error

Save saves the cache to disk

func (*Cache) Set

func (c *Cache) Set(path, hash string)

Set sets the hash for the given path

Jump to

Keyboard shortcuts

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