cache

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesystemCache

func NewFilesystemCache(cachePath string, client *http.Client) client.Fetcher

NewFilesystemCache returns a client.Fetcher implementation that uses a local filesystem to cache Catalog contents. When fetching the Catalog contents it will: - Check if the Catalog is cached

  • IF !cached it will fetch from the catalogd HTTP server and cache the response
  • IF cached it will verify the cache is up to date. If it is up to date it will return the cached contents, if not it will fetch the new contents from the catalogd HTTP server and update the cached contents.

Types

This section is empty.

Jump to

Keyboard shortcuts

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