cache

package
v0.0.0-...-aa656b0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Cache for storing commits we've already diff-ed and parsed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCachingEnabled

func IsCachingEnabled() bool

Types

type Backend

type Backend interface {
	Name() string
	Open() error
	Close() error
	Get(revs []string) (iter.Seq[git.Commit], func() error)
	Add(commits []git.Commit) error
	Clear() error
}

type Cache

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

func GetCache

func GetCache(gitRootPath string, configFiles config.SupplementalFiles) Cache

func NewCache

func NewCache(backend Backend) Cache

func (*Cache) Add

func (c *Cache) Add(commits []git.Commit) error

func (*Cache) Clear

func (c *Cache) Clear() error

func (*Cache) Close

func (c *Cache) Close() (err error)

func (*Cache) Get

func (c *Cache) Get(revs []string) (iter.Seq[git.Commit], func() error)

func (*Cache) Name

func (c *Cache) Name() string

func (*Cache) Open

func (c *Cache) Open() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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