fifomap

package module
v0.0.0-...-3a28f6d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FIFOMap

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

先进先出(FIFO)的 map 实现

func NewFIFOMap

func NewFIFOMap() *FIFOMap

func (*FIFOMap) Count

func (m *FIFOMap) Count() int

func (*FIFOMap) Get

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

func (*FIFOMap) Keys

func (m *FIFOMap) Keys() []string

func (*FIFOMap) RemoveOldest

func (m *FIFOMap) RemoveOldest()

func (*FIFOMap) Set

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

Jump to

Keyboard shortcuts

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