cachemap

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheMap

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

func New

func New(maxSize int) *CacheMap

func (*CacheMap) Add

func (m *CacheMap) Add(key interface{}, item interface{})

func (*CacheMap) Clear

func (m *CacheMap) Clear()

func (*CacheMap) Contains

func (m *CacheMap) Contains(key interface{}) bool

func (*CacheMap) Empty

func (m *CacheMap) Empty() bool

func (*CacheMap) Get

func (m *CacheMap) Get(key interface{}) interface{}

func (*CacheMap) GetValues

func (m *CacheMap) GetValues() []interface{}

func (*CacheMap) Remove

func (m *CacheMap) Remove(key interface{})

func (*CacheMap) Size

func (m *CacheMap) Size() int

func (*CacheMap) String

func (m *CacheMap) String() string

Jump to

Keyboard shortcuts

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