cache

package
v0.0.0-...-f05cc18 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultMaxSize        = 10000
	DefaultExpirationTime = time.Hour
)

Variables

This section is empty.

Functions

func New

func New(client client.Client, options ...option) *cache

func WithExpirationTime

func WithExpirationTime(expirationTime time.Duration) option

func WithMaxSize

func WithMaxSize(maxSize int) option

Types

This section is empty.

Jump to

Keyboard shortcuts

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