utils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 ExpiringMap

type ExpiringMap struct {
	// contains filtered or unexported fields
}

func NewExpiringMap

func NewExpiringMap(ttl time.Duration) *ExpiringMap

func (*ExpiringMap) Del

func (em *ExpiringMap) Del(key, value string)

func (*ExpiringMap) Get

func (em *ExpiringMap) Get(key string) (value string, ok bool)

func (*ExpiringMap) Set

func (em *ExpiringMap) Set(key, value string)

Jump to

Keyboard shortcuts

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