ttlslice

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slice

type Slice[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Slice[T]

func (*Slice[T]) Append

func (m *Slice[T]) Append(t T, ttl time.Duration)

func (*Slice[T]) List

func (m *Slice[T]) List() []T

Jump to

Keyboard shortcuts

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