cache

package
v0.0.0-...-abc809d Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreCache

func StoreCache(name string, url string, modCacheDir string) bool

Types

type ModuleCache

type ModuleCache struct {
	Cache gcache.Cache
	// contains filtered or unexported fields
}

func Newmc

func Newmc(csize int, HomeDir string, ModuleCacheDir string) ModuleCache

type RequestData

type RequestData struct {
	Cache     gcache.Cache
	CacheSize int
}

func Newrdc

func Newrdc(csize int) RequestData

func (RequestData) Store

func (rdc RequestData) Store(key string, value interface{})

Jump to

Keyboard shortcuts

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