ttlmap

package
v0.1.112 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 3 Imported by: 0

README

Map which expires its values

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TTLMap

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

func New

func New(ctx context.Context, maxTTL int) (m *TTLMap)

func (*TTLMap) Delete added in v0.1.100

func (m *TTLMap) Delete(k string) (v interface{})

func (*TTLMap) Get

func (m *TTLMap) Get(k string) (v interface{})

func (*TTLMap) Len

func (m *TTLMap) Len() int

func (*TTLMap) Put

func (m *TTLMap) Put(k string, v interface{})

Jump to

Keyboard shortcuts

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