cache

package
v0.0.0-...-dbb7d7a Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FifoCache

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

/A simple, thread safe, size limit cache / The size must be greater than the max number of concurrent threads that / can set data in the cache

func NewFifoCache

func NewFifoCache(size int) *FifoCache

func (*FifoCache) Find

func (p *FifoCache) Find(key string) (value interface{}, found bool)

func (*FifoCache) Set

func (p *FifoCache) Set(key string, value interface{})

Jump to

Keyboard shortcuts

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