caching

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache[T any] interface {
	Set(key string, value T)

	Get(key string) (T, bool)

	Contains(key string) bool
}

type Option

type Option func(opts *Options)

func WithSize

func WithSize(size uint) Option

type Options

type Options struct {
	Size uint
}

func NewOptions

func NewOptions(setters ...Option) *Options

Jump to

Keyboard shortcuts

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