cache

package
v1.34.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidConfig = errors.New("invalid config")
)

Functions

func Module

func Module() fx.Option

Types

type Cache

type Cache = cache.Cache

type Config

type Config struct {
	URL string
}

Config controls the cache backend via a URL (e.g., "memory://", "redis://...").

type Factory

type Factory interface {
	New(name string) (Cache, error)
}

func NewFactory

func NewFactory(config Config) (Factory, error)

Jump to

Keyboard shortcuts

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