util

package
Version: v0.0.0-...-945c0d7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpiredMap

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

func NewExpiredMap

func NewExpiredMap() *ExpiredMap

func (*ExpiredMap) Clear

func (e *ExpiredMap) Clear()

func (*ExpiredMap) Close

func (e *ExpiredMap) Close()

func (*ExpiredMap) Delete

func (e *ExpiredMap) Delete(key interface{})

func (*ExpiredMap) DoForEach

func (e *ExpiredMap) DoForEach(handler func(interface{}, interface{}))

func (*ExpiredMap) DoForEachWithBreak

func (e *ExpiredMap) DoForEachWithBreak(handler func(interface{}, interface{}) bool)

func (*ExpiredMap) Get

func (e *ExpiredMap) Get(key interface{}) (found bool, value interface{})

func (*ExpiredMap) Length

func (e *ExpiredMap) Length() int

func (*ExpiredMap) Remove

func (e *ExpiredMap) Remove(key interface{})

func (*ExpiredMap) Set

func (e *ExpiredMap) Set(key, value interface{}, expireSeconds int64)

func (*ExpiredMap) Size

func (e *ExpiredMap) Size() int

func (*ExpiredMap) Stop

func (e *ExpiredMap) Stop()

func (*ExpiredMap) TTL

func (e *ExpiredMap) TTL(key interface{}) int64

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL