expiry

package
v0.13.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disabled

type Disabled[K comparable, V any] struct{}

func NewDisabled

func NewDisabled[K comparable, V any]() *Disabled[K, V]

func (*Disabled[K, V]) Add

func (d *Disabled[K, V]) Add(n node.Node[K, V])

func (*Disabled[K, V]) Clear

func (d *Disabled[K, V]) Clear()

func (*Disabled[K, V]) Delete

func (d *Disabled[K, V]) Delete(n node.Node[K, V])

func (*Disabled[K, V]) DeleteExpired

func (d *Disabled[K, V]) DeleteExpired()

type Fixed

type Fixed[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewFixed

func NewFixed[K comparable, V any](deleteNode func(node.Node[K, V])) *Fixed[K, V]

func (*Fixed[K, V]) Add

func (f *Fixed[K, V]) Add(n node.Node[K, V])

func (*Fixed[K, V]) Clear

func (f *Fixed[K, V]) Clear()

func (*Fixed[K, V]) Delete

func (f *Fixed[K, V]) Delete(n node.Node[K, V])

func (*Fixed[K, V]) DeleteExpired

func (f *Fixed[K, V]) DeleteExpired()

type Variable

type Variable[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewVariable

func NewVariable[K comparable, V any](nodeManager *node.Manager[K, V], deleteNode func(node.Node[K, V])) *Variable[K, V]

func (*Variable[K, V]) Add

func (v *Variable[K, V]) Add(n node.Node[K, V])

Add schedules a timer event for the node.

func (*Variable[K, V]) Clear

func (v *Variable[K, V]) Clear()

func (*Variable[K, V]) Delete

func (v *Variable[K, V]) Delete(n node.Node[K, V])

Delete removes a timer event for this entry if present.

func (*Variable[K, V]) DeleteExpired

func (v *Variable[K, V]) DeleteExpired()

Jump to

Keyboard shortcuts

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