cache_index

package
v0.0.0-...-13f148b Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags(f []cli.Flag) []cli.Flag

Types

type CacheIndex

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

func New

func New(c *cli.Context, pg *cs.PG) *CacheIndex

func (*CacheIndex) IsCached

func (s *CacheIndex) IsCached(ctx context.Context, resourceID, path string) ([]models.CacheIndexResult, error)

IsCached returns a list of backend types and their last seen times for a given resource and path

func (*CacheIndex) MarkAsCached

func (s *CacheIndex) MarkAsCached(ctx context.Context, backendType models.StreamingBackendType, path, resourceID string) error

MarkAsCached updates the last_seen_at for a cache entry via LazyMap

func (*CacheIndex) RunCleanup

func (s *CacheIndex) RunCleanup(ctx context.Context)

RunCleanup removes old cache entries from the database

Jump to

Keyboard shortcuts

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