lru

package
v0.0.0-...-5cefb41 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 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 Segment

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

func NewSegment

func NewSegment(c int) *Segment

func (*Segment) Delete

func (s *Segment) Delete(key string) bool

func (*Segment) Exists

func (s *Segment) Exists(key string) bool

func (*Segment) Get

func (s *Segment) Get(key string) (val interface{}, ok bool)

func (*Segment) Len

func (s *Segment) Len() int

func (*Segment) Set

func (s *Segment) Set(key string, val interface{}) interface{}

Jump to

Keyboard shortcuts

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