ttlmap

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

README

TTLMap is a simple map that expires entries after a certain time interval.

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
}

TTLMap type

func NewTTLMap

func NewTTLMap(duration time.Duration) *TTLMap

NewTTLMap comments

func (*TTLMap) Get

func (m *TTLMap) Get(key interface{}) (interface{}, bool)

Get comment

func (*TTLMap) Set

func (m *TTLMap) Set(key interface{}, value interface{})

Set sets a key value pair in my TTLMap

Jump to

Keyboard shortcuts

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