fifo_cache

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 0 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
}

func New

func New(size int) *FIFOCache

func (*FIFOCache) Add

func (a *FIFOCache) Add(keyValue KeyValue)

func (*FIFOCache) Add2 added in v0.5.0

func (a *FIFOCache) Add2(key []byte, value interface{})

func (FIFOCache) Cap

func (a FIFOCache) Cap() int

func (*FIFOCache) Exists

func (a *FIFOCache) Exists(key []byte) bool

func (*FIFOCache) Get

func (a *FIFOCache) Get(key []byte) (value interface{}, ok bool)

func (FIFOCache) Len

func (a FIFOCache) Len() int

type KeyValue

type KeyValue interface {
	Key() []byte
	Value() interface{}
}

Jump to

Keyboard shortcuts

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