cache

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cache implements local cached storage of part data.

Currently only cache pruning is supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prune

func Prune(ctx context.Context, root string, maxSize int64) error

Prune implements CachePruner.

Types

type Pruner

type Pruner func(ctx context.Context, root string, maxSize int64) error

Pruner removes files from a cache until the total size is less than or equal to maxSize.

Jump to

Keyboard shortcuts

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