ttl

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make[K comparable, V any](maker map_cache.Maker[K, ExpirableItem[V]], n int) *ttlMap[K, V]

func MakeSafe

func MakeSafe[K comparable, V any](maker map_cache.SafeMaker[K, ExpirableItem[V]], n int) *safeTTLMap[K, V]

Types

type ExpirableItem

type ExpirableItem[V any] struct {
	Value V
	// contains filtered or unexported fields
}

func NewItem

func NewItem[V any](value V, ttl time.Duration) ExpirableItem[V]

Jump to

Keyboard shortcuts

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