lruobjcache

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 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 LRU

type LRU struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(capacity int64) *LRU

func (*LRU) Available

func (l *LRU) Available() int64

func (*LRU) Capacity

func (l *LRU) Capacity() int64

func (*LRU) Flush

func (l *LRU) Flush()

func (*LRU) Get

func (l *LRU) Get(key any, preloading bool) (value []byte, size int64, ok bool)

func (*LRU) Set

func (l *LRU) Set(key any, value []byte, size int64, preloading bool)

func (*LRU) Used

func (l *LRU) Used() int64

Jump to

Keyboard shortcuts

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