cache

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForgeCache

func NewForgeCache(backend types.GitForge, logger *slog.Logger) types.GitForgeCacher

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func (*Cache) FetchGroupContent

func (c *Cache) FetchGroupContent(ctx context.Context, source types.RepositoryGroupSource) (types.RepositoryGroupContent, error)

func (*Cache) FetchRootGroupContent

func (c *Cache) FetchRootGroupContent(ctx context.Context) (map[string]types.RepositoryGroupSource, error)

func (*Cache) InvalidateCache

func (c *Cache) InvalidateCache(source types.RepositoryGroupSource)

type CachedContent

type CachedContent struct {
	GetContent func() (types.RepositoryGroupContent, error)
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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