cache

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(x interface{}) (interface{}, bool)
	Add(key, value interface{})
	Keys() []interface{}
	Delete(key interface{})
}

type LRU added in v1.10.2

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

func NewLRU added in v1.10.2

func NewLRU(size int) (*LRU, error)

func (*LRU) Add added in v1.10.2

func (c *LRU) Add(key, value interface{})

func (*LRU) Delete added in v1.10.2

func (c *LRU) Delete(key interface{})

func (*LRU) Get added in v1.10.2

func (c *LRU) Get(key interface{}) (interface{}, bool)

func (*LRU) Keys added in v1.10.2

func (c *LRU) Keys() []interface{}

Jump to

Keyboard shortcuts

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