ttlmap

package
v0.0.121 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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() *TtlMap

func (*TtlMap) Get

func (t *TtlMap) Get(key string) any

func (*TtlMap) Set

func (t *TtlMap) Set(key string, value any, ttl time.Duration)

func (*TtlMap) SetSpecific

func (t *TtlMap) SetSpecific(key string, value any, expireAt int64)

Jump to

Keyboard shortcuts

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