cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKey

func BuildKey(base, format, backend string, opts map[string]string) string

Types

type DiskCache

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

func New

func New(dir string) (*DiskCache, error)

func (*DiskCache) Get

func (c *DiskCache) Get(key string, out any) (bool, error)

func (*DiskCache) Set

func (c *DiskCache) Set(key string, ttl time.Duration, value any) error

Jump to

Keyboard shortcuts

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